File indexing completed on 2024-10-27 04:51:10
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 #include "kmail_private_export.h" 0009 #include <KSieveCore/SieveImapPasswordProvider> 0010 #include <qt6keychain/keychain.h> 0011 class KMAILTESTS_TESTS_EXPORT KMSieveImapPasswordProvider : public KSieveCore::SieveImapPasswordProvider 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit KMSieveImapPasswordProvider(QObject *parent = nullptr); 0016 ~KMSieveImapPasswordProvider() override; 0017 0018 void passwords(const QString &identifier) override; 0019 0020 private: 0021 void readSieveServerPasswordFinished(QKeychain::Job *baseJob); 0022 void readSieveServerCustomPasswordFinished(QKeychain::Job *baseJob); 0023 QString mIdentifier; 0024 QString mSievePassword; 0025 QString mSieveCustomPassword; 0026 };