Akonadi

agenttypewidget.h
1 /*
2  SPDX-FileCopyrightText: 2006-2008 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_AGENTTYPEWIDGET_H
8 #define AKONADI_AGENTTYPEWIDGET_H
9 
10 #include "akonadiwidgets_export.h"
11 
12 #include <QWidget>
13 
14 namespace Akonadi
15 {
16 
17 class AgentFilterProxyModel;
18 class AgentType;
19 
40 class AKONADIWIDGETS_EXPORT AgentTypeWidget : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
50  explicit AgentTypeWidget(QWidget *parent = nullptr);
51 
55  ~AgentTypeWidget();
56 
61  Q_REQUIRED_RESULT AgentType currentAgentType() const;
62 
67  Q_REQUIRED_RESULT AgentFilterProxyModel *agentFilterProxyModel() const;
68 
69 Q_SIGNALS:
76  void currentChanged(const Akonadi::AgentType &current, const Akonadi::AgentType &previous);
77 
82  void activated();
83 
84 private:
85  //@cond PRIVATE
86  class Private;
87  Private *const d;
88  //@endcond
89 };
90 
91 }
92 
93 #endif
Provides a widget that lists all available agent types.
A representation of an agent type.
Helper integration between Akonadi and Qt.
A proxy model for filtering AgentType or AgentInstance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Nov 27 2020 23:19:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.