homescreensrv_plat/contentstorage_api/casoftwareregistry.h
changeset 102 8b8b34fa9751
parent 98 d2f833ab7940
child 107 b34d53f6acdf
equal deleted inserted replaced
100:0920c6a9b6c8 102:8b8b34fa9751
    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;
    75 
    85 
    76     friend class CaSoftwareRegistryPrivate;
    86     friend class CaSoftwareRegistryPrivate;
    77     friend class QtSharedPointer::ExternalRefCount<CaSoftwareRegistry>;
    87     friend class QtSharedPointer::ExternalRefCount<CaSoftwareRegistry>;
    78 
    88 
    79     Q_DISABLE_COPY(CaSoftwareRegistry)
    89     Q_DISABLE_COPY(CaSoftwareRegistry)
    80     
    90 
    81 };
    91 };
    82 
    92 
    83 #endif // CA_SOFTWARE_REGISTRY_H
    93 #endif // CA_SOFTWARE_REGISTRY_H