searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h
changeset 16 e918432ddd92
parent 15 df6898e696c6
child 18 1edf350003c5
equal deleted inserted replaced
15:df6898e696c6 16:e918432ddd92
   142      * Constructing cpix handlers  .
   142      * Constructing cpix handlers  .
   143      * @since S60 ?S60_version.
   143      * @since S60 ?S60_version.
   144      */
   144      */
   145     void constructHandlers();
   145     void constructHandlers();
   146 
   146 
       
   147     InDeviceHandler* constructHandlers(int mDatabase);
       
   148 
   147     /**
   149     /**
   148      * setting the categories .
   150      * setting the categories .
   149      * @since S60 ?S60_version.
   151      * @since S60 ?S60_version.
   150      */
   152      */
   151     void setSelectedCategories();
   153     void setSelectedCategories();
   152     
   154 
       
   155     /**
       
   156      * parse the result documents.
       
   157      * @since S60 ?S60_version.
       
   158      */
       
   159     void parseDocument(CpixDocument* aDoc);
       
   160 
   153 public slots:
   161 public slots:
   154 
   162 
   155     /**
   163     /**
   156      * slot connects to CSearchHandler to get the status of search result asynchronously 
   164      * slot connects to CSearchHandler to get the status of search result asynchronously 
   157      * @since S60 ?S60_version.
   165      * @since S60 ?S60_version.
   167      * @param aDoc result item
   175      * @param aDoc result item
   168      */
   176      */
   169     void onGetDocumentComplete(int aError, CpixDocument* aDoc);
   177     void onGetDocumentComplete(int aError, CpixDocument* aDoc);
   170 
   178 
   171     /**
   179     /**
       
   180      * slot connects to CSearchHandler to get the result item asynchronously 
       
   181      * @since S60 ?S60_version.
       
   182      * @param aError error code.
       
   183      * @param aDoc result item
       
   184      */
       
   185     void onGetBatchDocumentComplete(int aError, int aCount,
       
   186             CpixDocument** aDoc);
       
   187 
       
   188     /**
   172      * slot connects to list view to launch the respective application
   189      * slot connects to list view to launch the respective application
   173      * @since S60 ?S60_version.
   190      * @since S60 ?S60_version.
   174      * @param aIndex index of the activated item.
   191      * @param aIndex index of the activated item.
   175      */
   192      */
   176     void openResultitem(HbListWidgetItem * item);
   193     void openResultitem(HbListWidgetItem * item);
   250     /**
   267     /**
   251      * Slot to notify when theme is changed
   268      * Slot to notify when theme is changed
   252      * @since S60 ?S60_version.
   269      * @since S60 ?S60_version.
   253      */
   270      */
   254     void slotPrepareResultIcons();
   271     void slotPrepareResultIcons();
   255 
       
   256 private:
   272 private:
   257 
   273 
   258     /**
   274     /**
   259      * initiate the fresh search for selected category separately 
   275      * initiate the fresh search for selected category separately 
   260      * 
   276      * 
   490     QSize mListViewIconSize;
   506     QSize mListViewIconSize;
   491 
   507 
   492     SearchUiLoader* mUiLoader;
   508     SearchUiLoader* mUiLoader;
   493 
   509 
   494     bool mStateStatus;
   510     bool mStateStatus;
       
   511 
       
   512     bool mValidateHandlerCreation;
       
   513 
   495 #ifdef OST_TRACE_COMPILER_IN_USE
   514 #ifdef OST_TRACE_COMPILER_IN_USE
   496     QTime m_totalSearchUiTime;
   515     QTime m_totalSearchUiTime;
   497     QTime m_categorySearchUiTime;
   516     QTime m_categorySearchUiTime;
   498     QTime m_categorySearchApiTime;
   517     QTime m_categorySearchApiTime;
   499     QTime m_categoryGetDocumentApiTime;
   518     QTime m_categoryGetDocumentApiTime;
   500     QTime m_resultItemLaunchTime;
   519     QTime m_resultItemLaunchTime;
   501     //use long to safeguard overflow from long running operations.
   520     //use long to safeguard overflow from long running operations.
   502     long m_getDocumentCatergoryTimeAccumulator;
   521     long m_getDocumentCatergoryTimeAccumulator;
   503 #endif
   522 #endif
   504 
   523 
   505 SEARCH_FRIEND_CLASS    (SearchStateProviderTest)
   524     SEARCH_FRIEND_CLASS (SearchStateProviderTest)
   506 
   525 
   507     };
   526     };
   508 
   527 
   509 #endif //PROGRESSIVE_SEARCH_STATE_H
   528 #endif //PROGRESSIVE_SEARCH_STATE_H