File indexing completed on 2024-11-24 04:49:53

0001 /*
0002    SPDX-FileCopyrightText: 2017 Albert Astals Cid <aacid@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ksievecore_export.h"
0010 #include <QObject>
0011 class QString;
0012 
0013 namespace KSieveCore
0014 {
0015 /**
0016  * @brief The SieveImapPasswordProvider class
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 class KSIEVECORE_EXPORT SieveImapPasswordProvider : public QObject
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit SieveImapPasswordProvider(QObject *parent = nullptr);
0024 
0025     ~SieveImapPasswordProvider() override = default;
0026     virtual void passwords(const QString &identifier) = 0;
0027 Q_SIGNALS:
0028     void passwordsRequested(const QString &sievePassword, const QString &sieveCustomPassword);
0029 };
0030 }