File indexing completed on 2024-05-12 16:42:03

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 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 // ----------------------------------------------------------------------------
0014 // KDE Includes
0015 
0016 #include <QDialog>
0017 
0018 // ----------------------------------------------------------------------------
0019 // Project Includes
0020 
0021 namespace Ui
0022 {
0023 class KAvailableCurrencyDlg;
0024 }
0025 
0026 class KTreeWidgetSearchLineWidget;
0027 class QTreeWidgetItem;
0028 class KAvailableCurrencyDlg : public QDialog
0029 {
0030     Q_OBJECT
0031 public:
0032     explicit KAvailableCurrencyDlg(const QList<QString>& usedCurrencies, QWidget* parent = nullptr);
0033     ~KAvailableCurrencyDlg();
0034 
0035     QList<QTreeWidgetItem *> selectedItems() const;
0036 
0037 protected Q_SLOTS:
0038     void slotLoadCurrencies(const QList<QString>& usedCurrencies);
0039     void slotItemSelectionChanged();
0040 
0041 private:
0042     Ui::KAvailableCurrencyDlg*    ui;
0043     KTreeWidgetSearchLineWidget*  m_searchWidget;
0044 };
0045 
0046 #endif