Akonadi

agentconfigurationwidget.h
1/*
2 SPDX-FileCopyrightText: 2018 Daniel Vrátil <dvratil@kde.org>
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
15namespace Akonadi
16{
17class AgentInstance;
18class AgentConfigurationDialog;
19class AgentConfigurationWidgetPrivate;
20
21/**
22 * @brief A widget for displaying agent configuration in applications.
23 *
24 * To implement an agent configuration widget, see AgentConfigurationBase.
25 */
26class AKONADIWIDGETS_EXPORT AgentConfigurationWidget : public QWidget
27{
28 Q_OBJECT
29public:
30 explicit AgentConfigurationWidget(const Akonadi::AgentInstance &instance, QWidget *parent = nullptr);
32
33 void load();
34 void save();
35 [[nodiscard]] QSize restoreDialogSize() const;
36 void saveDialogSize(QSize size);
37 [[nodiscard]] QDialogButtonBox::StandardButtons standardButtons() const;
38
39Q_SIGNALS:
40 void enableOkButton(bool enabled);
41
42protected:
43 void childEvent(QChildEvent *event) override;
44
45private:
46 friend class AgentConfigurationWidgetPrivate;
47 friend class AgentConfigurationDialog;
48 std::unique_ptr<AgentConfigurationWidgetPrivate> const d;
49};
50
51}
Represents one agent instance and takes care of communication with it.
A widget for displaying agent configuration in applications.
A representation of an agent instance.
Helper integration between Akonadi and Qt.
typedef StandardButtons
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:51:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.