File indexing completed on 2024-05-19 05:06:49

0001 /*
0002     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0003     SPDX-FileCopyrightText: 2020 Thomas Baumgart <tbaumgart@kde.org>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KAVAILABLECURRENCYDLG_H
0008 #define KAVAILABLECURRENCYDLG_H
0009 
0010 #include "kmm_base_dialogs_export.h"
0011 
0012 // ----------------------------------------------------------------------------
0013 // QT Includes
0014 
0015 // ----------------------------------------------------------------------------
0016 // KDE Includes
0017 
0018 #include <QDialog>
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 namespace Ui
0024 {
0025 class KAvailableCurrencyDlg;
0026 }
0027 
0028 class KTreeWidgetSearchLineWidget;
0029 class QTreeWidgetItem;
0030 class KMM_BASE_DIALOGS_EXPORT KAvailableCurrencyDlg : public QDialog
0031 {
0032     Q_OBJECT
0033 public:
0034     explicit KAvailableCurrencyDlg(const QList<QString>& usedCurrencies, QWidget* parent = nullptr);
0035     ~KAvailableCurrencyDlg();
0036 
0037     QList<QTreeWidgetItem *> selectedItems() const;
0038 
0039 protected Q_SLOTS:
0040     void slotLoadCurrencies(const QList<QString>& usedCurrencies);
0041     void slotItemSelectionChanged();
0042 
0043 private:
0044     Ui::KAvailableCurrencyDlg*    ui;
0045     KTreeWidgetSearchLineWidget*  m_searchWidget;
0046 };
0047 
0048 #endif