1 /*************************************************************************** 2 konlineupdatewizardpage - description 3 ------------------- 4 begin : Sun Jul 4 2010 5 copyright : (C) 2010 by Fernando Vilas 6 email : kmymoney-devel@kde.org 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 ADDITIONALFEESWIZARDPAGE_H 19 #define ADDITIONALFEESWIZARDPAGE_H 20 21 // ---------------------------------------------------------------------------- 22 // QT Includes 23 24 #include <QWizardPage> 25 26 // ---------------------------------------------------------------------------- 27 // KDE Includes 28 29 // ---------------------------------------------------------------------------- 30 // Project Includes 31 32 namespace Ui { class AdditionalFeesWizardPage; } 33 34 class MyMoneyAccount; 35 36 /** 37 * This class implements the Additional Fees page of the 38 * @ref KNewLoanWizard. 39 */ 40 41 class AdditionalFeesWizardPage : public QWizardPage 42 { 43 Q_OBJECT 44 public: 45 explicit AdditionalFeesWizardPage(QWidget *parent = nullptr); 46 ~AdditionalFeesWizardPage(); 47 48 void updatePeriodicPayment(const MyMoneyAccount& account); 49 50 Q_SIGNALS: 51 /** 52 * This signal is emitted, when a new category name has been 53 * entered by the user and this name is not known as account 54 * by the MyMoneyFile object. 55 * Before the signal is emitted, a MyMoneyAccount is constructed 56 * by this object and filled with the desired name. All other members 57 * of MyMoneyAccount will remain in their default state. Upon return, 58 * the connected slot should have created the object in the MyMoneyFile 59 * engine and filled the member @p id. 60 * 61 * @param acc reference to MyMoneyAccount object that caries the name 62 * and will return information about the created category. 63 */ 64 void newCategory(MyMoneyAccount& acc); 65 66 protected Q_SLOTS: 67 virtual void slotAdditionalFees(); 68 69 private: 70 Ui::AdditionalFeesWizardPage *ui; 71 }; 72 73 #endif 74