File indexing completed on 2024-05-19 05:08:32
0001 /* 0002 SPDX-FileCopyrightText: 2004-2017 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 KMYMONEYACCOUNTCOMPLETION_H 0008 #define KMYMONEYACCOUNTCOMPLETION_H 0009 0010 #include "kmm_base_widgets_export.h" 0011 0012 // ---------------------------------------------------------------------------- 0013 // QT Includes 0014 0015 // ---------------------------------------------------------------------------- 0016 // KDE Includes 0017 0018 // ---------------------------------------------------------------------------- 0019 // Project Includes 0020 0021 #include "kmymoneycompletion.h" 0022 0023 namespace eMyMoney { 0024 namespace Account { 0025 enum class Type; 0026 } 0027 } 0028 0029 class KMyMoneyAccountSelector; 0030 0031 /** 0032 * @author Thomas Baumgart 0033 */ 0034 class KMM_BASE_WIDGETS_EXPORT KMyMoneyAccountCompletion : public KMyMoneyCompletion 0035 { 0036 Q_OBJECT 0037 Q_DISABLE_COPY(KMyMoneyAccountCompletion) 0038 0039 public: 0040 0041 explicit KMyMoneyAccountCompletion(QWidget* parent = nullptr); 0042 ~KMyMoneyAccountCompletion() override; 0043 0044 QStringList accountList(const QList<eMyMoney::Account::Type>& list) const; 0045 QStringList accountList() const; 0046 0047 /** 0048 * reimplemented from KMyMoneyCompletion 0049 */ 0050 KMyMoneyAccountSelector* selector() const; 0051 0052 public Q_SLOTS: 0053 void slotMakeCompletion(const QString& txt); 0054 }; 0055 0056 #endif