File indexing completed on 2024-05-19 05:08:12

0001 /*
0002     SPDX-FileCopyrightText: 2008 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KLOADTEMPLATEDLG_H
0008 #define KLOADTEMPLATEDLG_H
0009 
0010 #include "kmm_templates_export.h"
0011 
0012 // ----------------------------------------------------------------------------
0013 // QT Includes
0014 
0015 #include <QDialog>
0016 
0017 // ----------------------------------------------------------------------------
0018 // KDE Includes
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 template <typename T> class QList;
0024 
0025 namespace Ui {
0026 class KLoadTemplateDlg;
0027 }
0028 
0029 class MyMoneyTemplate;
0030 class KLoadTemplateDlgPrivate;
0031 
0032 /// This dialog lets the user load more account templates
0033 class KMM_TEMPLATES_EXPORT KLoadTemplateDlg : public QDialog
0034 {
0035     Q_OBJECT
0036     Q_DISABLE_COPY(KLoadTemplateDlg)
0037     Q_DECLARE_PRIVATE(KLoadTemplateDlg)
0038 
0039 public:
0040     explicit KLoadTemplateDlg(QWidget *parent = nullptr);
0041     ~KLoadTemplateDlg();
0042 
0043     QList<MyMoneyTemplate> templates() const;
0044 
0045 private Q_SLOTS:
0046     void slotHelp();
0047 
0048 private:
0049     KLoadTemplateDlgPrivate * const d_ptr;
0050 };
0051 
0052 #endif