diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-05 03:29:50 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-05 03:29:50 +0200 |
commit | 183a7351456940d01f14a49112ddeb68ffc4693a (patch) | |
tree | 579aeb0b8670e634de4f083e54b3c826bf548ec9 /backend/OneSixVersion.cpp | |
parent | 005a010ee6a67191ec24583780310fcf217ff30c (diff) | |
download | MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.gz MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.lz MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.tar.xz MultiMC-183a7351456940d01f14a49112ddeb68ffc4693a.zip |
Runnable 1.6 instances!
Diffstat (limited to 'backend/OneSixVersion.cpp')
-rw-r--r-- | backend/OneSixVersion.cpp | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/backend/OneSixVersion.cpp b/backend/OneSixVersion.cpp index b58870ce..2b2f79f5 100644 --- a/backend/OneSixVersion.cpp +++ b/backend/OneSixVersion.cpp @@ -64,12 +64,51 @@ void Library::finalize() } } +void Library::setName ( QString name ) +{ + m_name = name; +} +void Library::setBaseUrl ( QString base_url ) +{ + m_base_url = base_url; +} +void Library::setIsNative() +{ + m_is_native = true; +} +void Library::addNative ( OpSys os, QString suffix ) +{ + m_is_native = true; + m_native_suffixes[os] = suffix; +} +void Library::setRules ( QList< QSharedPointer< Rule > > rules ) +{ + m_rules = rules; +} +bool Library::isActive() +{ + return m_is_active; +} +bool Library::isNative() +{ + return m_is_native; +} +QString Library::downloadPath() +{ + return m_download_path; +} +QString Library::storagePath() +{ + return m_storage_path; +} + + QList<QSharedPointer<Library> > FullVersion::getActiveNormalLibs() { QList<QSharedPointer<Library> > output; for ( auto lib: libraries ) { - if (lib->getIsActive() && !lib->getIsNative()) + if (lib->isActive() && !lib->isNative()) { output.append(lib); } @@ -82,10 +121,12 @@ QList<QSharedPointer<Library> > FullVersion::getActiveNativeLibs() QList<QSharedPointer<Library> > output; for ( auto lib: libraries ) { - if (lib->getIsActive() && lib->getIsNative()) + if (lib->isActive() && lib->isNative()) { output.append(lib); } } return output; } + + |