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 #ifndef AKONADI_AGENTCONFIGURATIONWIDGET_H
8 #define AKONADI_AGENTCONFIGURATIONWIDGET_H
9 
10 #include <QDialogButtonBox>
11 #include <QWidget>
12 #include "akonadiwidgets_export.h"
13 
14 namespace Akonadi {
15 
16 class AgentInstance;
17 class AgentConfigurationDialog;
23 class AKONADIWIDGETS_EXPORT AgentConfigurationWidget : public QWidget
24 {
25  Q_OBJECT
26 public:
27  explicit AgentConfigurationWidget(const Akonadi::AgentInstance &instance, QWidget *parent = nullptr);
28  ~AgentConfigurationWidget() override;
29 
30  void load();
31  void save();
32  QSize restoreDialogSize() const;
33  void saveDialogSize(QSize size);
34  QDialogButtonBox::StandardButtons standardButtons() const;
35 
36 Q_SIGNALS:
37  void enableOkButton(bool enabled);
38 
39 protected:
40  void childEvent(QChildEvent *event) override;
41 
42 private:
43  class Private;
44  friend class Private;
45  friend class AgentConfigurationDialog;
47 };
48 
49 }
50 
51 
52 #endif
Represents one agent instance and takes care of communication with it.
typedef StandardButtons
A widget for displaying agent configuration in applications.
Helper integration between Akonadi and Qt.
A representation of an agent instance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 07:17:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.