searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h
changeset 3 6832643895f7
parent 2 208a4ba3894c
child 5 3bc31ad99ee7
equal deleted inserted replaced
2:208a4ba3894c 3:6832643895f7
    26 #include <hbicon.h>
    26 #include <hbicon.h>
    27 #include <displaymode.h>
    27 #include <displaymode.h>
    28 #include <xqappmgr.h>
    28 #include <xqappmgr.h>
    29 #include <xqaiwrequest.h>
    29 #include <xqaiwrequest.h>
    30 #include "search_global.h"
    30 #include "search_global.h"
       
    31 #include <f32file.h>
    31 
    32 
    32 //Uncomment to enable performance measurements.
    33 //Uncomment to enable performance measurements.
    33 //#define OST_TRACE_COMPILER_IN_USE
    34 //#define OST_TRACE_COMPILER_IN_USE
    34 
    35 
    35 #ifdef OST_TRACE_COMPILER_IN_USE
    36 #ifdef OST_TRACE_COMPILER_IN_USE
    59 #define PERF_CAT_GETDOC_TIME_ACCUMULATE 
    60 #define PERF_CAT_GETDOC_TIME_ACCUMULATE 
    60 #define PERF_CAT_GETDOC_ACCUMULATOR_RESET
    61 #define PERF_CAT_GETDOC_ACCUMULATOR_RESET
    61 #define PERF_CAT_GETDOC_ACCUMULATOR_ENDLOG
    62 #define PERF_CAT_GETDOC_ACCUMULATOR_ENDLOG
    62 
    63 
    63 #endif //OST_TRACE_COMPILER_IN_USE
    64 #endif //OST_TRACE_COMPILER_IN_USE
    64 
       
    65 class HbMainWindow;
    65 class HbMainWindow;
    66 class HbView;
    66 class HbView;
    67 class HbListView;
    67 class HbListView;
    68 class HbDocumentLoader;
    68 class HbDocumentLoader;
    69 class QStandardItemModel;
    69 class QStandardItemModel;
    70 class HbSearchPanel;
    70 class HbSearchPanel;
    71 class CFbsBitmap;
    71 class CFbsBitmap;
    72 class InDeviceHandler;
    72 class InDeviceHandler;
    73 class QCPixDocument;
    73 class QCPixDocument;
    74 
    74 class NotesEditor;
       
    75 class EventViewerPluginInterface;
    75 SEARCH_CLASS( SearchStateProviderTest)
    76 SEARCH_CLASS( SearchStateProviderTest)
    76 /** @ingroup group_searchstateprovider
    77 /** @ingroup group_searchstateprovider
    77  * @brief The state where progressive search state is shown
    78  * @brief The state where progressive search state is shown
    78  *
    79  *
    79  * @see StateMachine
    80  * @see StateMachine
   148      * @since S60 ?S60_version.
   149      * @since S60 ?S60_version.
   149      */
   150      */
   150     void setSelectedCategories();
   151     void setSelectedCategories();
   151 public slots:
   152 public slots:
   152 
   153 
   153    
       
   154 
       
   155     /**
   154     /**
   156      * slot connects to CSearchHandler to get the status of search result asynchronously 
   155      * slot connects to CSearchHandler to get the status of search result asynchronously 
   157      * @since S60 ?S60_version.
   156      * @since S60 ?S60_version.
   158      * @param aError error code.
   157      * @param aError error code.
   159      * @param aResultCount number of results
   158      * @param aResultCount number of results
   224      * slot connects to model  for rows delete completion
   223      * slot connects to model  for rows delete completion
   225      * @since S60 ?S60_version.
   224      * @since S60 ?S60_version.
   226      */
   225      */
   227     void getrowsRemoved();
   226     void getrowsRemoved();
   228     /**
   227     /**
   229         * slot added for Application manager
   228      * slot added for Application manager
   230         * @since S60 ?S60_version.
   229      * @since S60 ?S60_version.
   231         */
   230      */
   232 
   231 
   233     void handleOk(const QVariant& var);
   232     void handleOk(const QVariant& var);
   234     
   233 
   235     /**
   234     /**
   236       * slot added for Application manager
   235      * slot added for Application manager
   237       * @since S60 ?S60_version.
   236      * @since S60 ?S60_version.
   238       */
   237      */
   239 
   238 
   240     void handleError(int ret, const QString& var);
   239     void handleError(int ret, const QString& var);
   241     
   240 
   242     /**
   241     /**
   243       * Slot implemented for particular category search 
   242      * Slot implemented to delete the calenderviewer plugin  
   244       * @since S60 ?S60_version.
   243      * @since S60 ?S60_version.
   245       */
   244      */
   246 
   245 
   247     
   246     void _viewingCompleted();
   248     QString filterDoc(const QCPixDocument* aDoc,const QString& filter);
       
   249 private:
   247 private:
   250 
   248 
   251     /**
   249     /**
   252      * initiate the fresh search for selected category separately 
   250      * initiate the fresh search for selected category separately 
   253      * 
   251      * 
   285      * Function to convert the s60 based CFbsBitmap into Qt specific QPixmap
   283      * Function to convert the s60 based CFbsBitmap into Qt specific QPixmap
   286      *  @param aBitmap Bitmap to be converted.
   284      *  @param aBitmap Bitmap to be converted.
   287      */
   285      */
   288     QPixmap fromSymbianCFbsBitmap(CFbsBitmap *aBitmap);
   286     QPixmap fromSymbianCFbsBitmap(CFbsBitmap *aBitmap);
   289 
   287 
       
   288     /**
       
   289      * Function to retrive drive number from the provided mediaId
       
   290      *  @param aMediaId Unique media Id.
       
   291      */
       
   292     QString getDrivefromMediaId(QString aMediaId);
       
   293 
       
   294     /**
       
   295      * Function to launch the result item for application category 
       
   296      *  @param aUid Unique app Id.
       
   297      */
       
   298     void LaunchApplicationL(const TUid aUid);
       
   299 
       
   300     /**
       
   301      * Function to parse the  QCPixDocument with the given filter       
       
   302      */
       
   303     QString filterDoc(const QCPixDocument* aDoc, const QString& filter);
       
   304 
       
   305     /**
       
   306      * Function to parse the  QCPixDocument with the given filters       
       
   307      */
       
   308     QStringList filterDoc(const QCPixDocument* aDoc, const QString& filter1,
       
   309             const QString& filter2, const QString& filter3 = QString());
       
   310 
   290 signals:
   311 signals:
   291 
   312 
   292     /**
   313     /**
   293      * Signalled when user selects an to switch the settings state
   314      * Signalled when user selects an to switch the settings state
   294      * setting state will be  activated.
   315      * setting state will be  activated.
   320     /**
   341     /**
   321      * The searchpanel widget.
   342      * The searchpanel widget.
   322      * Own.
   343      * Own.
   323      */
   344      */
   324     HbSearchPanel* mSearchPanel;
   345     HbSearchPanel* mSearchPanel;
   325   
   346 
   326     /**
   347     /**
   327      * model for list view
   348      * model for list view
   328      * Own.
   349      * Own.
   329      */
   350      */
   330     QStandardItemModel* mModel;
   351     QStandardItemModel* mModel;
   391      * 
   412      * 
   392      */
   413      */
   393     bool loadSettings;
   414     bool loadSettings;
   394     QList<HbIcon> mIconArray;
   415     QList<HbIcon> mIconArray;
   395     HbIcon mIcon;
   416     HbIcon mIcon;
   396 	
   417     RFs iFs;
       
   418 
       
   419     EventViewerPluginInterface *calAgandaViewerPluginInstance;
       
   420     NotesEditor *notesEditor;
   397 private:
   421 private:
   398     XQApplicationManager* mAiwMgr;
   422     XQApplicationManager* mAiwMgr;
   399     XQAiwRequest* mRequest;
   423     XQAiwRequest* mRequest;
   400 	
   424     QSize mListViewIconSize;
   401 #ifdef OST_TRACE_COMPILER_IN_USE
   425 #ifdef OST_TRACE_COMPILER_IN_USE
   402     QTime m_totalSearchUiTime;
   426     QTime m_totalSearchUiTime;
   403     QTime m_categorySearchUiTime;
   427     QTime m_categorySearchUiTime;
   404     QTime m_categorySearchApiTime;
   428     QTime m_categorySearchApiTime;
   405     QTime m_categoryGetDocumentApiTime;
   429     QTime m_categoryGetDocumentApiTime;