Libksieve

vacationhelperjob.h
1 /*
2  Copyright (C) 2013-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef VACATIONHELPERJOB_H
19 #define VACATIONHELPERJOB_H
20 
21 #include <QUrl>
22 
23 #include <QObject>
24 namespace KManageSieve {
25 class SieveJob;
26 }
27 
28 namespace KSieveUi {
29 class VacationHelperJob : public QObject
30 {
31  Q_OBJECT
32 public:
33  explicit VacationHelperJob(const QUrl &url, QObject *parent = nullptr);
34  ~VacationHelperJob();
35 
36  void searchActiveJob();
37 
38 Q_SIGNALS:
39  void canNotGetScriptList();
40  void resourceHasNotSieveSupport();
41  void scriptListResult(const QStringList &scriptList, const QString &activeScript, bool hasIncludeSupport);
42 
43 private:
44  Q_DISABLE_COPY(VacationHelperJob)
45  void slotGetScriptList(KManageSieve::SieveJob *job, bool success, const QStringList &scriptList, const QString &activeScript);
46  void killJob();
47  QUrl mUrl;
48  KManageSieve::SieveJob *mSieveJob = nullptr;
49 };
50 }
51 
52 #endif // VACATIONHELPERJOB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 23:06:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.