homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/src/hswidgethost_mock.cpp
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
    24 #include <QPropertyAnimation>
    24 #include <QPropertyAnimation>
    25 #include <QGraphicsDropShadowEffect>
    25 #include <QGraphicsDropShadowEffect>
    26 #include <QGraphicsSceneResizeEvent>
    26 #include <QGraphicsSceneResizeEvent>
    27 #include <QGesture>
    27 #include <QGesture>
    28 #include <QGraphicsScene>
    28 #include <QGraphicsScene>
    29 
       
    30 #include <qservicemanager.h>
    29 #include <qservicemanager.h>
    31 #include <qservicefilter.h>
    30 #include <qservicefilter.h>
    32 #include <qserviceinterfacedescriptor.h>
    31 #include <qserviceinterfacedescriptor.h>
    33 
       
    34 #include <HbInstantFeedback>
    32 #include <HbInstantFeedback>
    35 
    33 
    36 #include "hsdatabase.h"
    34 #include "hsdatabase.h"
    37 #include "hsdomainmodeldatastructures.h"
    35 #include "hsdomainmodeldatastructures.h"
    38 #include "hsscene.h"
    36 #include "hsscene.h"
   143 bool HsWidgetHost::removePresentation(Qt::Orientation orientation)
   141 bool HsWidgetHost::removePresentation(Qt::Orientation orientation)
   144 {
   142 {
   145     Q_UNUSED(orientation)
   143     Q_UNUSED(orientation)
   146     return true;
   144     return true;
   147 }
   145 }
   148 
       
   149 
       
   150 
   146 
   151 void HsWidgetHost::startWidget(bool show)
   147 void HsWidgetHost::startWidget(bool show)
   152 {
   148 {
   153     if (show) {
   149     if (show) {
   154         emit event_startAndShow();
   150         emit event_startAndShow();
   364 {
   360 {
   365     return true;
   361     return true;
   366 }
   362 }
   367 
   363 
   368 void HsWidgetHost::action_connectComponent()
   364 void HsWidgetHost::action_connectComponent()
   369 {    
   365 {
   370 }
   366 }
   371 
   367 
   372 void HsWidgetHost::action_disconnectComponent()
   368 void HsWidgetHost::action_disconnectComponent()
   373 {
   369 {
   374 }
   370 }
   387 
   383 
   388     setMethod("onInitialize()", mOnInitializeMethod);
   384     setMethod("onInitialize()", mOnInitializeMethod);
   389     setMethod("onUninitialize()", mOnUninitializeMethod);
   385     setMethod("onUninitialize()", mOnUninitializeMethod);
   390     
   386     
   391     setProperty("isOnline", mIsOnlineProperty);
   387     setProperty("isOnline", mIsOnlineProperty);
   392 	setProperty("rootPath", mRootPathProperty);
   388     setProperty("rootPath", mRootPathProperty);
   393     
   389     
   394     if (hasSignal("setPreferences(const QStringList&)")) {
   390     if (hasSignal("setPreferences(const QStringList&)")) {
   395         connect(mWidget, SIGNAL(setPreferences(QStringList)),
   391         connect(mWidget, SIGNAL(setPreferences(QStringList)),
   396                 SLOT(onSetPreferences(QStringList)));
   392                 SLOT(onSetPreferences(QStringList)));
   397     }
   393     }
   426     mOnInitializeMethod = QMetaMethod();
   422     mOnInitializeMethod = QMetaMethod();
   427     mOnShowMethod = QMetaMethod();
   423     mOnShowMethod = QMetaMethod();
   428     mOnHideMethod = QMetaMethod();
   424     mOnHideMethod = QMetaMethod();
   429     mOnUninitializeMethod = QMetaMethod();
   425     mOnUninitializeMethod = QMetaMethod();
   430     mIsOnlineProperty = QMetaProperty();
   426     mIsOnlineProperty = QMetaProperty();
   431 	mRootPathProperty = QMetaProperty();    
   427     mRootPathProperty = QMetaProperty();    
   432 }
   428 }
   433 
   429 
   434 void HsWidgetHost::action_initialize()
   430 void HsWidgetHost::action_initialize()
   435 {    
   431 {    
   436     //mRootPathProperty.write(mWidget, mComponent->rootPath());
   432     //mRootPathProperty.write(mWidget, mComponent->rootPath());