Libksieve

checkkolabkep14supportjob.h
1 /*
2  * Copyright (c) 2015 Sandro KnauƟ <[email protected]>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef CHECKKOLABKEP14SUPPORTJOB_H
21 #define CHECKKOLABKEP14SUPPORTJOB_H
22 
23 #include <QObject>
24 #include <QStringList>
25 
26 #include "ksieveui_export.h"
27 
28 #include <QUrl>
29 
30 namespace KManageSieve {
31 class SieveJob;
32 }
33 
34 namespace KSieveUi {
35 class CheckKolabKep14SupportJobPrivate;
36 
59 class KSIEVEUI_EXPORT CheckKolabKep14SupportJob : public QObject
60 {
61  Q_OBJECT
62 public:
63  explicit CheckKolabKep14SupportJob(QObject *parent = nullptr);
65 
66  void start();
67 
68  void setServerUrl(const QUrl &url);
69  void setServerName(const QString &name);
70  Q_REQUIRED_RESULT QString serverName() const;
71 
72  Q_REQUIRED_RESULT QStringList availableScripts() const;
73  Q_REQUIRED_RESULT bool hasKep14Support() const;
74  Q_REQUIRED_RESULT QUrl serverUrl() const;
75 
76 Q_SIGNALS:
77  void result(KSieveUi::CheckKolabKep14SupportJob *, bool);
78 
79 private:
80  CheckKolabKep14SupportJobPrivate *const d;
81 
82 private:
83  Q_DISABLE_COPY(CheckKolabKep14SupportJob)
84  void slotCheckKep14Support(KManageSieve::SieveJob *job, bool success, const QStringList &availableScripts, const QString &activeScript);
85 };
86 }
87 
88 #endif // CHECKKOLABKEP14SUPPORTJOB_H
Checks for support of Non-conflicting edits of Sieve scripts by multiple editors (KEP:14) ...
A job to manage sieve scripts.
Definition: sievejob.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:12:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.