homescreenapp/hsdomainmodel/inc/hswidgetcomponent.h
changeset 62 341166945d65
parent 55 03646e8da489
equal deleted inserted replaced
57:2e2dc3d30ca8 62:341166945d65
    22 #include <QTranslator>
    22 #include <QTranslator>
    23 
    23 
    24 #include "hsdomainmodel_global.h"
    24 #include "hsdomainmodel_global.h"
    25 
    25 
    26 #include "hstest_global.h"
    26 #include "hstest_global.h"
    27 HOMESCREEN_TEST_CLASS(TestRuntimeServices)
    27 HOMESCREEN_TEST_CLASS(TestHsDomainModel)
    28 
    28 
    29 class HSDOMAINMODEL_EXPORT HsWidgetComponent : public QObject
    29 class HSDOMAINMODEL_EXPORT HsWidgetComponent : public QObject
    30 {
    30 {
    31     Q_OBJECT
    31     Q_OBJECT
    32 	Q_PROPERTY(QString rootPath READ rootPath)
    32 	Q_PROPERTY(QString rootPath READ rootPath)
    47 	void available();
    47 	void available();
    48 private:
    48 private:
    49     Q_DISABLE_COPY(HsWidgetComponent)
    49     Q_DISABLE_COPY(HsWidgetComponent)
    50 	HsWidgetComponent(const QString &uri, QObject *parent = 0);
    50 	HsWidgetComponent(const QString &uri, QObject *parent = 0);
    51 
    51 
    52 	void resolveRootPath();
    52 	void resolveRootPathAndTranslationFilename();
    53     void installTranslator();
    53     void installTranslator();
    54 	void uninstallTranslator();
    54 	void uninstallTranslator();
    55 	
    55 	
    56 	void emitAboutToUninstall();
    56 	void emitAboutToUninstall();
    57 	void emitUninstalled();
    57 	void emitUninstalled();
    63 	QString mUri;
    63 	QString mUri;
    64 	
    64 	
    65 	QString mRootPath;
    65 	QString mRootPath;
    66 	QString mDrive;
    66 	QString mDrive;
    67 	State mState;
    67 	State mState;
       
    68 	QString mTranslationFilename;
    68 	friend class HsWidgetComponentRegistry;
    69 	friend class HsWidgetComponentRegistry;
    69 
    70 
    70     HOMESCREEN_TEST_FRIEND_CLASS(TestRuntimeServices)
    71     HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel)
    71 };
    72 };
    72 
    73 
    73 #endif // HSWIDGETCOMPONENT_H
    74 #endif // HSWIDGETCOMPONENT_H