File indexing completed on 2024-12-22 05:01:15

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/SieveDebugDialog>
0011 
0012 #include <QApplication>
0013 #include <QStandardPaths>
0014 
0015 int main(int argc, char **argv)
0016 {
0017     QApplication app(argc, argv);
0018     app.setQuitOnLastWindowClosed(false);
0019     QApplication::setApplicationName(QStringLiteral("sievedebugdialog"));
0020     QApplication::setApplicationVersion(QStringLiteral("1.0"));
0021     QStandardPaths::setTestModeEnabled(true);
0022 
0023     KSieveCore::SieveImapInstanceInterfaceManager::self()->setSieveImapInstanceInterface(new KMailSieveImapInstanceInterface);
0024     KMSieveImapPasswordProvider provider(nullptr);
0025     auto dlg = KSieveUi::SieveDebugDialog(&provider);
0026     dlg.exec();
0027     return 0;
0028 }