diff options
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchWindow.h')
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.h | 43 |
1 files changed, 7 insertions, 36 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.h b/Swift/QtUI/UserSearch/QtUserSearchWindow.h index a9a9ffa..6c90731 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.h +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.h @@ -9,47 +9,16 @@ #include <QWizard> #include <Swift/QtUI/UserSearch/ui_QtUserSearchWizard.h> -#include <Swift/QtUI/UserSearch/ui_QtUserSearchFirstPage.h> -#include <Swift/QtUI/UserSearch/ui_QtUserSearchFieldsPage.h> -#include <Swift/QtUI/UserSearch/ui_QtUserSearchResultsPage.h> - #include <Swift/Controllers/UIInterfaces/UserSearchWindow.h> - namespace Swift { class UserSearchModel; class UserSearchDelegate; class UserSearchResult; class UIEventStream; - - class QtUserSearchFirstPage : public QWizardPage, public Ui::QtUserSearchFirstPage { - Q_OBJECT - public: - QtUserSearchFirstPage(UserSearchWindow::Type type, const QString& title); - virtual bool isComplete() const; - public slots: - void emitCompletenessCheck(); - }; - - class QtUserSearchFieldsPage : public QWizardPage, public Ui::QtUserSearchFieldsPage { - Q_OBJECT - public: - QtUserSearchFieldsPage(); - virtual bool isComplete() const; - public slots: - void emitCompletenessCheck(); - }; - - class QtUserSearchResultsPage : public QWizardPage, public Ui::QtUserSearchResultsPage { - Q_OBJECT - public: - QtUserSearchResultsPage(); - virtual bool isComplete() const; - signals: - void onUserTriggersFinish(); - public slots: - void emitCompletenessCheck(); - }; + class QtUserSearchFirstPage; + class QtUserSearchFieldsPage; + class QtUserSearchResultsPage; class QtUserSearchWindow : public QWizard, public UserSearchWindow, private Ui::QtUserSearchWizard { Q_OBJECT @@ -75,15 +44,17 @@ namespace Swift { private: void clearForm(); void setError(const QString& error); - JID searchServer(); + JID getServerToSearch(); void handleSearch(); + + private: + UIEventStream* eventStream_; UserSearchWindow::Type type_; UserSearchModel* model_; UserSearchDelegate* delegate_; QtUserSearchFirstPage* firstPage_; QtUserSearchFieldsPage* fieldsPage_; QtUserSearchResultsPage* resultsPage_; - UIEventStream* eventStream_; JID myServer_; int lastPage_; }; |