--- 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