File indexing completed on 2025-01-05 04:53:58

0001 /*
0002     SPDX-FileCopyrightText: 2010 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "sieveimapinterface/kmailsieveimapinstanceinterface.h"
0008 #include "sieveimapinterface/kmsieveimappasswordprovider.h"
0009 #include <KSieveCore/SieveImapInstanceInterfaceManager>
0010 #include <KSieveUi/ManageSieveScriptsDialog>
0011 #include <QApplication>
0012 
0013 int main(int argc, char **argv)
0014 {
0015     QApplication app(argc, argv);
0016     QApplication::setApplicationName(QStringLiteral("managersievescriptsdialogtest"));
0017     QApplication::setApplicationVersion(QStringLiteral("1.0"));
0018 
0019     KSieveCore::SieveImapInstanceInterfaceManager::self()->setSieveImapInstanceInterface(new KMailSieveImapInstanceInterface);
0020     KMSieveImapPasswordProvider provider(nullptr);
0021     auto dlg = KSieveUi::ManageSieveScriptsDialog(&provider);
0022     dlg.show();
0023     return app.exec();
0024 }