File indexing completed on 2024-11-24 04:44:03

0001 /*
0002     SPDX-FileCopyrightText: 2007 Till Adam <adam@kde.org>
0003     SPDX-FileCopyrightText: 2008 Omat Holding B.V. <info@omat.nl>
0004     SPDX-FileCopyrightText: 2009 Kevin Ottens <ervin@kde.org>
0005 
0006     SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
0007     SPDX-FileContributor: Kevin Ottens <kevin@kdab.com>
0008 
0009     SPDX-License-Identifier: LGPL-2.0-or-later
0010 */
0011 
0012 #pragma once
0013 
0014 #include "imapresourcebase.h"
0015 
0016 class ImapResource : public ImapResourceBase
0017 {
0018     Q_OBJECT
0019     Q_CLASSINFO("D-Bus Interface", "org.kde.Akonadi.Imap.Resource")
0020 
0021 public:
0022     explicit ImapResource(const QString &id);
0023     ~ImapResource() override;
0024 
0025     QDialog *createConfigureDialog(WId windowId) override;
0026 
0027 protected:
0028     QString defaultName() const override;
0029     QByteArray clientId() const override;
0030 
0031 private:
0032     void onConfigurationDone(int result);
0033 };