selectimaplineeditcompletermodel.h 757 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
/*
2
   SPDX-FileCopyrightText: 2017-2020 Laurent Montel <montel@kde.org>
Laurent Montel's avatar
Laurent Montel committed
3

4
   SPDX-License-Identifier: GPL-2.0-or-later
Laurent Montel's avatar
Laurent Montel committed
5
6
7
8
9
10
11
12
*/

#ifndef SELECTIMAPLINEEDITCOMPLETERMODEL_H
#define SELECTIMAPLINEEDITCOMPLETERMODEL_H

#include <QObject>
class KDescendantsProxyModel;
class QAbstractProxyModel;
Laurent Montel's avatar
Laurent Montel committed
13
namespace KSieveUi {
Laurent Montel's avatar
Laurent Montel committed
14
15
16
17
18
19
20
21
22
class SieveImapAccountSettings;
}
class SelectImapLineEditCompleterModel : public QObject
{
    Q_OBJECT
public:
    explicit SelectImapLineEditCompleterModel(const KSieveUi::SieveImapAccountSettings &account, QObject *parent = nullptr);
    ~SelectImapLineEditCompleterModel();

23
    Q_REQUIRED_RESULT QAbstractProxyModel *completerModel() const;
Laurent Montel's avatar
Laurent Montel committed
24
private:
25
    KDescendantsProxyModel *const mFlatProxy;
Laurent Montel's avatar
Laurent Montel committed
26
27
28
};

#endif // SELECTIMAPLINEEDITCOMPLETERMODEL_H