diff -r 4bc7b118b3df -r 397d00875918 homescreensrv_plat/contentstorage_api/casoftwareregistry.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homescreensrv_plat/contentstorage_api/casoftwareregistry.h Thu May 27 13:11:12 2010 +0300 @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: ?Description + * + */ + +#ifndef CA_SOFTWARE_REGISTRY_H +#define CA_SOFTWARE_REGISTRY_H + +#include +#include +#include +#include + +#include "caclient_global.h" + +//FORWARD DECLARATIONS +class CaSoftwareRegistryPrivate; + +/** + * Class provides Usif specific services + */ +class CACLIENT_EXPORT CaSoftwareRegistry: public QObject +{ + +Q_OBJECT + + explicit CaSoftwareRegistry(QObject *parent = 0); + + ~CaSoftwareRegistry(); + +public: + + static QSharedPointer create(); + + typedef QHash DetailMap; + + DetailMap entryDetails(int componentId) const; + + static QString componentNameKey(); + static QString componentVersionKey(); + static QString componentVendorKey(); + static QString componentDriveInfoKey(); + static QString componentSizeKey(); + static QString componentTypeKey(); +private: + /** + * Pointer to a private implementation. + */ + CaSoftwareRegistryPrivate *const m_d; + + /** + * The static pointer to the instance of CaSoftwareRegistry. + */ + static QWeakPointer m_instance; + + friend class CaSoftwareRegistryPrivate; + friend class QtSharedPointer::ExternalRefCount; + + Q_DISABLE_COPY(CaSoftwareRegistry) + +}; + +#endif // CA_SOFTWARE_REGISTRY_H