Libksieve

sievewidgetpageabstract.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QWidget>
10 
11 namespace KSieveUi
12 {
13 class SieveWidgetPageAbstract : public QWidget
14 {
15  Q_OBJECT
16 public:
17  enum PageType { BlockIf = 0, BlockElsIf = 1, BlockElse = 2, Include = 3, ForEveryPart = 4, GlobalVariable = 5 };
18 
19  explicit SieveWidgetPageAbstract(QWidget *parent = nullptr);
20  ~SieveWidgetPageAbstract() override;
21 
22  virtual void generatedScript(QString &script, QStringList &required, bool inForEveryPartLoop) = 0;
23 
24  virtual void setPageType(PageType type);
25  Q_REQUIRED_RESULT PageType pageType() const;
26 
27 Q_SIGNALS:
28  void valueChanged();
29 
30 private:
31  PageType mType = BlockIf;
32 };
33 }
34 
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
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.