searchui/runtimeproviders/searchruntimeprovider/inc/searchruntime.h
changeset 2 208a4ba3894c
parent 0 ccd0fd43f247
child 16 e918432ddd92
equal deleted inserted replaced
0:ccd0fd43f247 2:208a4ba3894c
    16  */
    16  */
    17 
    17 
    18 #ifndef SEARCH_RUNTIMES_DEFAULTRUNTIME_H
    18 #ifndef SEARCH_RUNTIMES_DEFAULTRUNTIME_H
    19 #define SEARCH_RUNTIMES_DEFAULTRUNTIME_H
    19 #define SEARCH_RUNTIMES_DEFAULTRUNTIME_H
    20 
    20 
    21 #include "Search_global.h"
    21 #include "search_global.h"
    22 #include "hsruntime.h"
       
    23 #include <qhash.h>
    22 #include <qhash.h>
       
    23 #include <qstatemachine.h>
    24 
    24 
    25 SEARCH_CLASS(SearchRuntimeProviderTest)
    25 SEARCH_CLASS(SearchRuntimeProviderTest)
    26 
    26 
    27 // Forward declarations
    27 // Forward declarations
    28 class QStateMachine;
    28 class QStateMachine;
    38  * is started.
    38  * is started.
    39  *
    39  *
    40  * @lib ?library
    40  * @lib ?library
    41  * @since S60 ?S60_version
    41  * @since S60 ?S60_version
    42  */
    42  */
    43 class SearchRuntime : public HsRuntime
    43 class SearchRuntime : public QStateMachine
    44     {
    44     {
    45 Q_OBJECT
    45 Q_OBJECT
    46 
    46 
    47 public:
    47 public:
    48 
    48 
    62 private:
    62 private:
    63     /**
    63     /**
    64      * Copy constructor
    64      * Copy constructor
    65      */
    65      */
    66     Q_DISABLE_COPY(SearchRuntime)
    66     Q_DISABLE_COPY(SearchRuntime)
    67 
    67     
    68 public slots:
       
    69 
       
    70     /**
       
    71      * @copydoc HsRuntime::start()
       
    72      */
       
    73     void start();
       
    74 
       
    75     /**
       
    76      * @copydoc HsRuntime::stop()
       
    77      */
       
    78     void stop();
       
    79 
       
    80 private slots:
    68 private slots:
    81 
    69 
    82     /**
    70     /**
    83      * Called after the state machine has started.
    71      * Called after the state machine has started.
    84      * @since S60 ?S60_version.
    72      * @since S60 ?S60_version.
   110      * Creates states
    98      * Creates states
   111      * @since S60 ?S60_version.
    99      * @since S60 ?S60_version.
   112      */
   100      */
   113     void createStates();
   101     void createStates();
   114 
   102 
   115 private:
   103 private:  
   116 
       
   117     /**
       
   118      * Address of state machine instance.
       
   119      * Ownership tranfered to application. Don't remove it.
       
   120      */
       
   121     QStateMachine *mStateMachine;
       
   122 
   104 
   123     /**
   105     /**
   124      * Window to visualize scene
   106      * Window to visualize scene
   125      */
   107      */
   126     HbMainWindow *mWindow;
   108     HbMainWindow *mWindow;   
   127 
       
   128     /**
       
   129      * Contains address of runtime service.
       
   130      * Ownership transfered to application. Don't remove it.
       
   131      */
       
   132     QHash<QString, QObject*> mServices;
       
   133 
   109 
   134 SEARCH_FRIEND_CLASS    (SearchRuntimeProviderTest)
   110 SEARCH_FRIEND_CLASS    (SearchRuntimeProviderTest)
   135 
   111 
   136     };
   112     };
   137 
   113