filemanager/src/filemanager/src/fmfindthread.h
changeset 37 15bc28c9dd51
parent 14 1957042d8c7e
child 40 4167eb56f30d
--- a/filemanager/src/filemanager/src/fmfindthread.h	Mon May 03 12:24:39 2010 +0300
+++ b/filemanager/src/filemanager/src/fmfindthread.h	Tue Aug 24 10:24:14 2010 +0800
@@ -30,7 +30,7 @@
 {
     Q_OBJECT
 public:
-    explicit FmFindThread( QStringList *r, QObject *parent = 0 );
+    explicit FmFindThread( QObject *parent = 0 );
     ~FmFindThread();
 
     QString findPath() const;
@@ -44,7 +44,7 @@
     void stop();
 
 signals:
-    void found( int );
+    void found( const QStringList &dataList );
 
 protected:
     void run();
@@ -58,8 +58,9 @@
     QString mFindPath;
     QTime time;
     QRegExp findPattern;
-    QStringList *mResult;
     QStringList mLastResult;
+    // Used to store temp search result. if emit found, the result will be cleared.
+    QStringList tempResultList;
 };
 
 #endif