1 /*************************************************************************** 2 kinstitutionpage.h 3 ------------------- 4 begin : Tue Sep 25 2007 5 copyright : (C) 2007 Thomas Baumgart 6 email : Thomas Baumgart <ipwizard@users.sourceforge.net> 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef KINSTITUTION_H 19 #define KINSTITUTION_H 20 21 // ---------------------------------------------------------------------------- 22 // QT Includes 23 24 #include <QWidget> 25 26 // ---------------------------------------------------------------------------- 27 // KDE Includes 28 29 // ---------------------------------------------------------------------------- 30 // Project Includes 31 32 #include "wizardpage.h" 33 34 class MyMoneyInstitution; 35 36 namespace NewAccountWizard 37 { 38 class Wizard; 39 40 class InstitutionPagePrivate; 41 class InstitutionPage : public QWidget, public WizardPage<Wizard> 42 { 43 Q_OBJECT 44 Q_DISABLE_COPY(InstitutionPage) 45 46 public: 47 explicit InstitutionPage(Wizard* parent); 48 ~InstitutionPage() override; 49 KMyMoneyWizardPage* nextPage() const override; 50 51 QWidget* initialFocusWidget() const override; 52 53 /** 54 * Returns the information about an institution if entered by 55 * the user. If the id field is empty, then he did not enter 56 * such information. 57 */ 58 const MyMoneyInstitution& institution() const; 59 60 void selectExistingInstitution(const QString& id); 61 62 private Q_SLOTS: 63 void slotLoadWidgets(); 64 void slotNewInstitution(); 65 void slotSelectInstitution(int index); 66 67 private: 68 Q_DECLARE_PRIVATE_D(WizardPage<Wizard>::d_ptr, InstitutionPage) 69 friend class Wizard; 70 friend class AccountSummaryPage; 71 friend class BrokeragePage; 72 }; 73 } // namespace 74 75 #endif 76