mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Put PackageUpdateList into its own file
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@904 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+11
-3
@@ -18,6 +18,13 @@ DECLARE_POINTER_TYPE(PackageDescription);
|
||||
DECLARE_POINTER_TYPE(DownloadableInstaller);
|
||||
DECLARE_POINTER_TYPE(InstallablePackage);
|
||||
|
||||
// The installer system consists of several layers:
|
||||
// - Installer = an actual package available in memory, containing packages to be installed
|
||||
// - DownloadableInstaller = an installar (possibly) not yet available, i.e. just its URL
|
||||
// - PackageDescription = description of a package version
|
||||
// - InstallablePackage = the complete status of a package, both local and remote
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : Installer
|
||||
|
||||
/// A package that contains other packages that can be installed
|
||||
@@ -125,12 +132,13 @@ inline bool flag(int flags, int flag) { return (flags & flag) == flag; }
|
||||
/// A package that can be installed, or is already installed
|
||||
class InstallablePackage : public IntrusivePtrVirtualBase {
|
||||
public:
|
||||
//InstallablePackage();
|
||||
/// A new package
|
||||
InstallablePackage(const PackageDescriptionP&, const DownloadableInstallerP&);
|
||||
InstallablePackage(const PackageVersionP&, const PackageDescriptionP&);
|
||||
/// An installed package
|
||||
InstallablePackage(const PackageDescriptionP&, const PackageVersionP&);
|
||||
|
||||
PackageVersionP installed; ///< The information of the installed package (if installed)
|
||||
PackageDescriptionP description; ///< The details of the package. Either from the installed package or from an installer
|
||||
PackageVersionP installed; ///< The information of the installed package (if installed)
|
||||
DownloadableInstallerP installer; ///< The installer to install from (if updates are available)
|
||||
PackageStatus status; ///< Status of installation
|
||||
PackageAction action; ///< What to do with this package?
|
||||
|
||||
Reference in New Issue
Block a user