32 /** |
32 /** |
33 * Class provides Usif specific services |
33 * Class provides Usif specific services |
34 */ |
34 */ |
35 class CACLIENT_EXPORT CaSoftwareRegistry: public QObject |
35 class CACLIENT_EXPORT CaSoftwareRegistry: public QObject |
36 { |
36 { |
37 |
37 |
38 Q_OBJECT |
38 Q_OBJECT |
39 |
39 |
40 explicit CaSoftwareRegistry(QObject *parent = 0); |
40 explicit CaSoftwareRegistry(QObject *parent = 0); |
41 |
41 |
42 ~CaSoftwareRegistry(); |
42 ~CaSoftwareRegistry(); |
43 |
43 |
44 public: |
44 public: |
45 |
45 |
46 static QSharedPointer<CaSoftwareRegistry> create(); |
46 static QSharedPointer<CaSoftwareRegistry> create(); |
47 |
47 |
48 typedef QHash<QString, QString> DetailMap; |
48 typedef QHash<QString, QString> DetailMap; |
49 |
49 |
50 bool getUninstallDetails(int componentId, |
50 bool getUninstallDetails(int componentId, |
51 QString &componentName, |
51 QString &componentName, |
52 QStringList &applicationsUids, |
52 QStringList &applicationsUids, |
53 QString &confirmationMessage); |
53 QString &confirmationMessage); |
54 |
54 |
55 bool getApplicationsUids(int componentId, QStringList &applicationsUids); |
55 bool getApplicationsUids(int componentId, QStringList &applicationsUids); |
56 |
56 |
57 DetailMap entryDetails(int componentId) const; |
57 DetailMap entryDetails(int componentId) const; |
58 |
58 |
|
59 QList<DetailMap> retrieveLogEntries() const; |
|
60 |
59 static QString componentNameKey(); |
61 static QString componentNameKey(); |
60 static QString componentVersionKey(); |
62 static QString componentVersionKey(); |
61 static QString componentVendorKey(); |
63 static QString componentVendorKey(); |
62 static QString componentDriveInfoKey(); |
64 static QString componentDriveInfoKey(); |
|
65 static QString componentProtectionDomainKey(); |
63 static QString componentSizeKey(); |
66 static QString componentSizeKey(); |
64 static QString componentTypeKey(); |
67 static QString componentTypeKey(); |
|
68 static QString componentDescriptionKey(); |
|
69 static QString componentTimeKey(); |
|
70 static QString componentOperationTypeKey(); |
|
71 static QString componentInstallValue(); |
|
72 static QString componentUninstallValue(); |
|
73 static QString componentUpgradeValue(); |
|
74 static QString componentHiddenValue(); |
65 private: |
75 private: |
66 /** |
76 /** |
67 * Pointer to a private implementation. |
77 * Pointer to a private implementation. |
68 */ |
78 */ |
69 CaSoftwareRegistryPrivate *const m_d; |
79 CaSoftwareRegistryPrivate *const m_d; |