File indexing completed on 2024-05-12 16:44:00

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