Akonadi

agentconfigurationwidget.h
1 /*
2  SPDX-FileCopyrightText: 2018 Daniel Vr├ítil <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadiwidgets_export.h"
10 #include <QDialogButtonBox>
11 #include <QWidget>
12 
13 #include <memory>
14 
15 namespace Akonadi
16 {
17 class AgentInstance;
18 class AgentConfigurationDialog;
19 class AgentConfigurationWidgetPrivate;
20 
21 /**
22  * @brief A widget for displaying agent configuration in applications.
23  *
24  * To implement an agent configuration widget, see AgentConfigurationBase.
25  */
26 class AKONADIWIDGETS_EXPORT AgentConfigurationWidget : public QWidget
27 {
28  Q_OBJECT
29 public:
30  explicit AgentConfigurationWidget(const Akonadi::AgentInstance &instance, QWidget *parent = nullptr);
31  ~AgentConfigurationWidget() override;
32 
33  void load();
34  void save();
35  Q_REQUIRED_RESULT QSize restoreDialogSize() const;
36  void saveDialogSize(QSize size);
37  Q_REQUIRED_RESULT QDialogButtonBox::StandardButtons standardButtons() const;
38 
39 Q_SIGNALS:
40  void enableOkButton(bool enabled);
41 
42 protected:
43  void childEvent(QChildEvent *event) override;
44 
45 private:
46  friend class AgentConfigurationWidgetPrivate;
47  friend class AgentConfigurationDialog;
48  std::unique_ptr<AgentConfigurationWidgetPrivate> const d;
49 };
50 
51 }
52 
Represents one agent instance and takes care of communication with it.
typedef StandardButtons
A widget for displaying agent configuration in applications.
A representation of an agent instance.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.