49 * search results class. |
49 * search results class. |
50 */ |
50 */ |
51 class SearchResults |
51 class SearchResults |
52 { |
52 { |
53 public: |
53 public: |
54 int mNumberOfFoundFiles; |
54 int mNumberOfFoundFiles; |
55 QStringList* mFoundFilesList; |
55 QStringList *mFoundFilesList; |
56 }; |
56 }; |
57 |
57 |
58 class SearchView : public HbView |
58 class SearchView : public HbView |
59 { |
59 { |
60 Q_OBJECT |
60 Q_OBJECT |
61 |
61 |
62 public: |
62 public: |
63 SearchView(HbView &mainView, HbMainWindow &mainWindow, EngineWrapper &engineWrapper); |
63 explicit SearchView(EngineWrapper &engineWrapper); |
64 ~SearchView(); |
64 ~SearchView(); |
65 void open(const QString &path); |
65 void open(const QString &path); |
66 |
66 |
|
67 signals: |
|
68 void finished(bool ok); |
67 |
69 |
68 private slots: |
70 private slots: |
69 void backButtonClicked(); |
71 void accept(); |
70 void startFileSearch(); |
72 void reject(); |
|
73 |
|
74 private: |
|
75 void initDataForm(); |
|
76 void createToolbar(); |
71 void loadAttributes(); |
77 void loadAttributes(); |
72 void readFormItems(); |
78 void readFormItems(); |
73 |
79 |
74 private: |
80 void startFileSearch(); |
75 void fileSearchResults(); |
81 void fileSearchResults(); |
76 |
82 |
77 /* Main Window of folderbrowser */ |
83 private: |
78 HbMainWindow &mMainWindow; |
|
79 /* Main View of folderbrowser*/ |
|
80 HbView &mMainView; |
|
81 /* EngineWrapper */ |
84 /* EngineWrapper */ |
82 EngineWrapper &mEngineWrapper; |
85 EngineWrapper &mEngineWrapper; |
83 |
86 |
84 /* Search attributes */ |
87 /* Search attributes */ |
85 SearchAttributes mAttributes; |
88 SearchAttributes mAttributes; |