Libksieve

vacationhelperjob.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-only
5 */
6 
7 #pragma once
8 
9 #include <QUrl>
10 
11 #include <QObject>
12 namespace KManageSieve
13 {
14 class SieveJob;
15 }
16 
17 namespace KSieveUi
18 {
19 class VacationHelperJob : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit VacationHelperJob(const QUrl &url, QObject *parent = nullptr);
24  ~VacationHelperJob() override;
25 
26  void searchActiveJob();
27 
28 Q_SIGNALS:
29  void canNotGetScriptList();
30  void resourceHasNotSieveSupport();
31  void scriptListResult(const QStringList &scriptList, const QString &activeScript, bool hasIncludeSupport);
32 
33 private:
34  Q_DISABLE_COPY(VacationHelperJob)
35  void slotGetScriptList(KManageSieve::SieveJob *job, bool success, const QStringList &scriptList, const QString &activeScript);
36  void killJob();
37  const QUrl mUrl;
38  KManageSieve::SieveJob *mSieveJob = nullptr;
39 };
40 }
41 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.