searchui/stateproviders/searchstateprovider/inc/searchonlinestate.h
changeset 17 7d8c8d8f5eab
parent 12 993ab30e92fc
equal deleted inserted replaced
12:993ab30e92fc 17:7d8c8d8f5eab
    19 #include <qstate.h>
    19 #include <qstate.h>
    20 #include "search_global.h"
    20 #include "search_global.h"
    21 #include <hbicon.h>
    21 #include <hbicon.h>
    22 SEARCH_CLASS( SearchStateProviderTest)
    22 SEARCH_CLASS( SearchStateProviderTest)
    23 
    23 
    24 class HbDocumentLoader;
    24 class HbListWidget;
    25 class HbView;
    25 class HbView;
    26 class HbSearchPanel;
    26 class HbSearchPanel;
    27 class HbMainWindow;
    27 class HbMainWindow;
    28 class OnlineHandler;
    28 class OnlineHandler;
       
    29 class SearchUiLoader;
       
    30 
    29 /** @ingroup group_searchonlinestate
    31 /** @ingroup group_searchonlinestate
    30  * @brief The state handles wizard activation and interaction.
    32  * @brief The state handles wizard activation and interaction.
    31  *
    33  *
    32  * @see StateMachine
    34  * @see StateMachine
    33  *
    35  *
    76     /**
    78     /**
    77      * activates the signals .
    79      * activates the signals .
    78      * @since S60 ?S60_version.
    80      * @since S60 ?S60_version.
    79      */
    81      */
    80     void activateSignals();
    82     void activateSignals();
    81     
    83 
    82     void createui();
       
    83 public slots:
    84 public slots:
    84 
    85 
    85     /**
    86     /**
    86      * slot connects to search panel to initiate the online search
    87      * slot connects to search panel to initiate the online search
    87      * @since S60 ?S60_version.
    88      * @since S60 ?S60_version.
   152      * Signalled when user change the state to progressive state
   153      * Signalled when user change the state to progressive state
   153      * setting state will be  activated.
   154      * setting state will be  activated.
   154      */
   155      */
   155     void onlineSearchQuery(QString);
   156     void onlineSearchQuery(QString);
   156 
   157 
       
   158     /**
       
   159      * Signalled when UI is ready on online state        
       
   160      */
       
   161     void applicationReady();
       
   162 
   157 private:
   163 private:
   158     HbMainWindow* mMainWindow;
   164     HbMainWindow* mMainWindow;
   159     /**
   165     /**
   160      * main view.
   166      * main view.
   161      * Own.
   167      * Own.
   167      * Own.
   173      * Own.
   168      */
   174      */
   169     HbSearchPanel* mSearchPanel;
   175     HbSearchPanel* mSearchPanel;
   170 
   176 
   171     /**
   177     /**
   172      * HbDocumentLoader instance.
   178      * The List View widget.    
   173      */
   179      */
   174     HbDocumentLoader* mDocumentLoader;
   180     HbListWidget* mListView;
   175 
   181 
   176     /**
   182     /**
   177      * OnlineHandler instance.
   183      * OnlineHandler instance.
   178      */
   184      */
   179     OnlineHandler* mInternetHandler;
   185     OnlineHandler* mInternetHandler;
       
   186 
       
   187     SearchUiLoader* mUiLoader;
   180 
   188 
   181     /**
   189     /**
   182      * search keyword.
   190      * search keyword.
   183      */
   191      */
   184     QString mSearchQuery;
   192     QString mSearchQuery;
   185     bool mSearchReady;
   193     bool mSearchReady;
   186     bool mIndeviceQueryAvailable;
   194     bool mIndeviceQueryAvailable;
   187     bool mIsUICreated;
   195    
   188     /**
   196     /**
   189      * friend class for unit testing
   197      * friend class for unit testing
   190      */
   198      */
   191     SEARCH_FRIEND_CLASS (SearchStateProviderTest)
   199     SEARCH_FRIEND_CLASS (SearchStateProviderTest)
   192     };
   200     };