Diffstat (limited to 'noncore/settings/packagemanager/opackage.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/opackage.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/noncore/settings/packagemanager/opackage.h b/noncore/settings/packagemanager/opackage.h index 1e2e49f..fbd9ec0 100644 --- a/noncore/settings/packagemanager/opackage.h +++ b/noncore/settings/packagemanager/opackage.h | |||
@@ -37,38 +37,45 @@ | |||
37 | 37 | ||
38 | class OPackage | 38 | class OPackage |
39 | { | 39 | { |
40 | public: | 40 | public: |
41 | enum Command { Install, Remove, Update, Upgrade, Download, Info, Files, Version, NotDefined }; | 41 | enum Command { Install, Remove, Update, Upgrade, Download, Info, Files, Version, NotDefined }; |
42 | 42 | ||
43 | OPackage( const QString &name = 0x0, | 43 | OPackage( const QString &name= QString::null, |
44 | const QString &version = 0x0, const QString &versionInstalled = 0x0, | 44 | const QString &version= QString::null, const QString &versionInstalled= QString::null, |
45 | const QString &source = 0x0, const QString &destination = 0x0, | 45 | const QString &source= QString::null, const QString &destination= QString::null, |
46 | const QString &category = "misc" ); | 46 | const QString &category = "misc", const QString &information = QString::null, |
47 | const QString &files = QString::null ); | ||
47 | 48 | ||
48 | const QString &name() { return m_name; } | 49 | const QString &name() { return m_name; } |
49 | const QString &version() { return m_version; } | 50 | const QString &version() { return m_version; } |
50 | const QString &versionInstalled() { return m_versionInstalled; } | 51 | const QString &versionInstalled() { return m_versionInstalled; } |
51 | const QString &source() { return m_source; } | 52 | const QString &source() { return m_source; } |
52 | const QString &destination() { return m_destination; } | 53 | const QString &destination() { return m_destination; } |
53 | const QString &category() { return m_category; } | 54 | const QString &category() { return m_category; } |
55 | const QString &information() { return m_information; } | ||
56 | const QString &files() { return m_files; } | ||
54 | 57 | ||
55 | void setName( const QString &name ) { m_name = name; } | 58 | void setName( const QString &name ) { m_name = name; } |
56 | void setVersion( const QString &version ) { m_version = version; } | 59 | void setVersion( const QString &version ) { m_version = version; } |
57 | void setVersionInstalled( const QString &version ) { m_versionInstalled = version; } | 60 | void setVersionInstalled( const QString &version ) { m_versionInstalled = version; } |
58 | void setSource( const QString &source ) { m_source = source; } | 61 | void setSource( const QString &source ) { m_source = source; } |
59 | void setDestination( const QString &destination ) { m_destination = destination; } | 62 | void setDestination( const QString &destination ) { m_destination = destination; } |
60 | void setCategory( const QString &category ) { m_category = category; } | 63 | void setCategory( const QString &category ) { m_category = category; } |
64 | void setInformation( const QString &information ) { m_information = information; } | ||
65 | void setFiles( const QString &files ) { m_files = files; } | ||
61 | 66 | ||
62 | private: | 67 | private: |
63 | QString m_name; // Name of item | 68 | QString m_name; // Name of item |
64 | QString m_version; // Available version number of item | 69 | QString m_version; // Available version number of item |
65 | QString m_versionInstalled; // Installed version number of item, null if not installed | 70 | QString m_versionInstalled; // Installed version number of item, null if not installed |
66 | QString m_source; // Source feed of available version | 71 | QString m_source; // Source feed of available version |
67 | QString m_destination; // Location item is installed to, null if not installed | 72 | QString m_destination; // Location item is installed to, null if not installed |
68 | QString m_category; // Item category | 73 | QString m_category; // Item category |
74 | QString m_information; // Package information | ||
75 | QString m_files; // File list information | ||
69 | }; | 76 | }; |
70 | 77 | ||
71 | typedef QList<OPackage> OPackageList; | 78 | typedef QList<OPackage> OPackageList; |
72 | typedef QListIterator<OPackage> OPackageListIterator; | 79 | typedef QListIterator<OPackage> OPackageListIterator; |
73 | 80 | ||
74 | #endif | 81 | #endif |