File indexing completed on 2024-05-12 16:42:09
0001 /* 0002 SPDX-FileCopyrightText: 2000-2002 Michael Edwardes <mte@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KNEWBANKDLG_H 0008 #define KNEWBANKDLG_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 #include <QDialog> 0014 0015 // ---------------------------------------------------------------------------- 0016 // KDE Includes 0017 0018 // ---------------------------------------------------------------------------- 0019 // Project Includes 0020 0021 class MyMoneyInstitution; 0022 class KJob; 0023 0024 /// This dialog lets the user create or edit an institution 0025 class KNewBankDlgPrivate; 0026 class KNewBankDlg : public QDialog 0027 { 0028 Q_OBJECT 0029 Q_DISABLE_COPY(KNewBankDlg) 0030 0031 public: 0032 explicit KNewBankDlg(MyMoneyInstitution& institution, QWidget *parent = nullptr); 0033 ~KNewBankDlg(); 0034 const MyMoneyInstitution& institution(); 0035 0036 static void newInstitution(MyMoneyInstitution& institution); 0037 0038 private Q_SLOTS: 0039 void okClicked(); 0040 void institutionNameChanged(const QString &); 0041 void slotUrlChanged(const QString&); 0042 void slotLoadIcon(); 0043 void slotIconLoaded(KJob* job); 0044 void killIconLoad(); 0045 0046 private: 0047 KNewBankDlgPrivate * const d_ptr; 0048 Q_DECLARE_PRIVATE(KNewBankDlg) 0049 }; 0050 0051 #endif