filemanager/src/filemanager/src/fmfindwidget.h
changeset 46 d58987eac7e8
parent 16 ada7962b4308
--- a/filemanager/src/filemanager/src/fmfindwidget.h	Tue Aug 24 10:24:14 2010 +0800
+++ b/filemanager/src/filemanager/src/fmfindwidget.h	Wed Sep 29 10:37:03 2010 +0800
@@ -28,6 +28,7 @@
 class HbListView;
 class HbSearchPanel;
 class HbWidget;
+class HbStackedWidget;
 
 class QGraphicsLinearLayout;
 
@@ -35,26 +36,15 @@
 {
     Q_OBJECT
 public:
-    enum ContentWidgetType
-    {
-        EmptyTipWidget,
-        ResultListView
-    };
     FmFindWidget( QGraphicsItem *parent = 0 );
     ~FmFindWidget();
 
-    void find( const QString &keyword, const QString &path );
+    void find( const QString &keyword, const QStringList &pathList );
     void stopFind();
     void sortFiles( FmFindResultModel::SortFlag sortFlag );
-    
-    void activeSearchPanel();
-    void deActiveSearchPanel();
 
 signals:
-    void finished();
     void activated( const QString &pathName );
-    
-    void startSearch( const QString &targetPath, const QString &criteria );
     void setEmptyMenu( bool isMenuEmpty );
 
 private slots:
@@ -63,14 +53,14 @@
     void on_searchPanel_criteriaChanged( const QString &criteria );
     void on_searchPanel_exitClicked();
 
-    void on_resultModel_finished();
     void on_resultModel_modelCountChanged( int count );
-    void on_resultModel_refresh();
-        
+
+    void on_resultModel_findStarted();
+    void on_resultModel_findFinished();
+    
 private:
     void init();
     void initSearchPanel();
-    void activateContentWidget( ContentWidgetType contentWidgetType );
 
 private:
     HbListView          *mListView;
@@ -78,8 +68,16 @@
     HbWidget            *mEmptyTipWidget;
     
     QGraphicsLinearLayout *mLayout;
-    HbSearchPanel* mSearchPanel;
-    QString mFindTargetPath;
+	
+	// used to stack emptytip widget and list view.
+	// only one widget can be shown at the same time.
+    HbStackedWidget  *mContentWidget;
+	
+    HbSearchPanel*  mSearchPanel;
+	
+	// store the find path list
+	// for example, if start find from drive view. All available drive will be used to find
+    QStringList     mPathList;
 };
 
 #endif