Libksieve

vacationmailactionwidget.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "vacation/vacationutils.h"
10 #include <QWidget>
11 class QStackedWidget;
12 namespace KSieveUi
13 {
14 class AbstractMoveImapFolderWidget;
15 class SieveImapAccountSettings;
16 class AbstractSelectEmailLineEdit;
17 class VacationMailActionWidget : public QWidget
18 {
19  Q_OBJECT
20 public:
21  explicit VacationMailActionWidget(QWidget *parent = nullptr);
22  ~VacationMailActionWidget() override;
23 
24  void setSieveImapAccountSettings(const KSieveUi::SieveImapAccountSettings &account);
25  void mailActionChanged(KSieveUi::VacationUtils::MailAction action);
26 
27  Q_REQUIRED_RESULT QString mailActionRecipient(bool &valid) const;
28  void setMailAction(VacationUtils::MailAction action, const QString &recipient);
29 
30 Q_SIGNALS:
31  void wasChanged();
32 
33 private:
34  void selectMailActionWidget(VacationUtils::MailAction action);
35  void setText(const QString &recipient);
36 
37  QStackedWidget *mStackedWidget = nullptr;
38  AbstractMoveImapFolderWidget *mMoveImapFolderWidget = nullptr;
39  AbstractSelectEmailLineEdit *mSelectEmailLineEdit = nullptr;
40  QWidget *mMailActionRecipient = nullptr;
41 };
42 }
43 
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
The SieveImapAccountSettings class.
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.