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