diff -r 1a2a00e78665 -r f62f87b200ec contentstorage/caclient/stub/inc/hswidgetregistryservice_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contentstorage/caclient/stub/inc/hswidgetregistryservice_p.h Fri Mar 19 09:35:23 2010 +0200 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2009 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: The private implementation of the HsWidgetRegistryService. +* +*/ + + +#ifndef HSWIDGETREGISTRYSERVICE_P_H +#define HSWIDGETREGISTRYSERVICE_P_H + +#include +#include +#include +#include +#include + +#include "hsiwidgetprovider.h" + +class HsWidgetRegistryService; + +class HsWidgetRegistryServicePrivate : public QObject +{ + Q_OBJECT + +public: + + HsWidgetRegistryServicePrivate(const QString &installationPath, + HsWidgetRegistryService *ptrToPublic, QObject *parent=0); + + ~HsWidgetRegistryServicePrivate(); + + QList widgets(); + +private: + + Q_DISABLE_COPY(HsWidgetRegistryServicePrivate) + + IHsWidgetProvider *loadProviderFromPlugin(const QString &pluginName); + + QStringList readManifestDirectories(const QString &path); + + void doWidgetRemove(const QString &path, const QStringList &originalList, + const QStringList ¤tList); + + QList readManifestFile(const QString &path); + + void ensureWidgetRegistryPaths(); + +public slots: + +private slots: + + void directoryChanged(const QString &path); + + void installerStateChanged(int newValue); + +private: + + QString mInstallationPath; + + QMap mManifestDirectories; + + HsWidgetRegistryService *mPublic; +}; + +#endif //HSWIDGETREGISTRYSERVICE_P_H