searchui/runtimeproviders/searchruntimeprovider/src/searchruntime.cpp
changeset 21 708468d5143e
parent 16 e918432ddd92
child 26 367228f82b66
equal deleted inserted replaced
19:08315a312857 21:708468d5143e
    90 
    90 
    91     QState* searchRootState = new QState(guiRootState);
    91     QState* searchRootState = new QState(guiRootState);
    92 
    92 
    93     QState* wizardProgressiveState = stateProvider.createState(
    93     QState* wizardProgressiveState = stateProvider.createState(
    94             wizardProgressiveStateUri);
    94             wizardProgressiveStateUri);
       
    95     connect(wizardProgressiveState,SIGNAL(applicationReady()),this,SLOT(sendMattiEvent()));
    95     // set state specific data
    96     // set state specific data
    96     wizardProgressiveState->setParent(searchRootState);
    97     wizardProgressiveState->setParent(searchRootState);
    97     wizardProgressiveState->setObjectName(wizardProgressiveStateUri);
    98     wizardProgressiveState->setObjectName(wizardProgressiveStateUri);
    98 
    99 
    99     QState* wizardSettingState = stateProvider.createState(
   100     QState* wizardSettingState = stateProvider.createState(
   101     wizardSettingState->setParent(searchRootState);
   102     wizardSettingState->setParent(searchRootState);
   102     wizardSettingState->setObjectName(wizardSettingStateUri);
   103     wizardSettingState->setObjectName(wizardSettingStateUri);
   103 
   104 
   104     QState* wizardOnlineState = stateProvider.createState(
   105     QState* wizardOnlineState = stateProvider.createState(
   105             wizardOnlineStateUri);
   106             wizardOnlineStateUri);
       
   107     connect(wizardOnlineState,SIGNAL(applicationReady()),this,SLOT(sendMattiEvent()));
   106     wizardOnlineState->setParent(searchRootState);
   108     wizardOnlineState->setParent(searchRootState);
   107     wizardOnlineState->setObjectName(wizardOnlineStateUri);
   109     wizardOnlineState->setObjectName(wizardOnlineStateUri);
   108 
   110 
   109     // progressive to settings
   111     // progressive to settings
   110     wizardProgressiveState->addTransition(wizardProgressiveState,
   112     wizardProgressiveState->addTransition(wizardProgressiveState,
   172 
   174 
   173     connect(this, SIGNAL(started()), SLOT(handleStateMachineStarted()));
   175     connect(this, SIGNAL(started()), SLOT(handleStateMachineStarted()));
   174     connect(this, SIGNAL(stopped()), SLOT(handleStateMachineStopped()));
   176     connect(this, SIGNAL(stopped()), SLOT(handleStateMachineStopped()));
   175     connect(this, SIGNAL(finished()), SLOT(handleStateMachineStopped()));
   177     connect(this, SIGNAL(finished()), SLOT(handleStateMachineStopped()));
   176     }
   178     }
       
   179 void SearchRuntime::sendMattiEvent()
       
   180     {
       
   181     emit sentMattiEventSignal();
       
   182     }