1 /*
2     SPDX-FileCopyrightText: 2007 Till Adam <adam@kde.org>
3     SPDX-FileCopyrightText: 2008 Omat Holding B.V. <info@omat.nl>
4     SPDX-FileCopyrightText: 2009 Kevin Ottens <ervin@kde.org>
5 
6     SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
7     SPDX-FileContributor: Kevin Ottens <kevin@kdab.com>
8 
9     SPDX-License-Identifier: LGPL-2.0-or-later
10 */
11 
12 #pragma once
13 
14 #include <imapresourcebase.h>
15 
16 class ImapResource : public ImapResourceBase
17 {
18     Q_OBJECT
19     Q_CLASSINFO("D-Bus Interface", "org.kde.Akonadi.Imap.Resource")
20 
21 public:
22     explicit ImapResource(const QString &id);
23     ~ImapResource() override;
24 
25     QDialog *createConfigureDialog(WId windowId) override;
26 
27 protected:
28     QString defaultName() const override;
29     QByteArray clientId() const override;
30 
31 private Q_SLOTS:
32     void onConfigurationDone(int result);
33 };
34 
35