equal
deleted
inserted
replaced
28 |
28 |
29 class FmFindThread : public QThread |
29 class FmFindThread : public QThread |
30 { |
30 { |
31 Q_OBJECT |
31 Q_OBJECT |
32 public: |
32 public: |
33 explicit FmFindThread( QStringList *r, QObject *parent = 0 ); |
33 explicit FmFindThread( QObject *parent = 0 ); |
34 ~FmFindThread(); |
34 ~FmFindThread(); |
35 |
35 |
36 QString findPath() const; |
36 QString findPath() const; |
37 void setFindPath( const QString &path ); |
37 void setFindPath( const QString &path ); |
38 |
38 |
42 void setLastResult( QStringList r ); |
42 void setLastResult( QStringList r ); |
43 |
43 |
44 void stop(); |
44 void stop(); |
45 |
45 |
46 signals: |
46 signals: |
47 void found( int ); |
47 void found( const QStringList &dataList ); |
48 |
48 |
49 protected: |
49 protected: |
50 void run(); |
50 void run(); |
51 |
51 |
52 private: |
52 private: |
56 volatile bool mStop; |
56 volatile bool mStop; |
57 int count; |
57 int count; |
58 QString mFindPath; |
58 QString mFindPath; |
59 QTime time; |
59 QTime time; |
60 QRegExp findPattern; |
60 QRegExp findPattern; |
61 QStringList *mResult; |
|
62 QStringList mLastResult; |
61 QStringList mLastResult; |
|
62 // Used to store temp search result. if emit found, the result will be cleared. |
|
63 QStringList tempResultList; |
63 }; |
64 }; |
64 |
65 |
65 #endif |
66 #endif |