Akonadi

agenttypewidget.h
1 /*
2  Copyright (c) 2006-2008 Tobias Koenig <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_AGENTTYPEWIDGET_H
21 #define AKONADI_AGENTTYPEWIDGET_H
22 
23 #include "akonadiwidgets_export.h"
24 
25 #include <QWidget>
26 
27 namespace Akonadi
28 {
29 
30 class AgentFilterProxyModel;
31 class AgentType;
32 
53 class AKONADIWIDGETS_EXPORT AgentTypeWidget : public QWidget
54 {
55  Q_OBJECT
56 
57 public:
63  explicit AgentTypeWidget(QWidget *parent = nullptr);
64 
68  ~AgentTypeWidget();
69 
74  Q_REQUIRED_RESULT AgentType currentAgentType() const;
75 
80  Q_REQUIRED_RESULT AgentFilterProxyModel *agentFilterProxyModel() const;
81 
82 Q_SIGNALS:
89  void currentChanged(const Akonadi::AgentType &current, const Akonadi::AgentType &previous);
90 
95  void activated();
96 
97 private:
98  //@cond PRIVATE
99  class Private;
100  Private *const d;
101  //@endcond
102 };
103 
104 }
105 
106 #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 Wed May 27 2020 22:43:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.