Akonadi

core/agenttype.h
1 /*
2  SPDX-FileCopyrightText: 2008 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_AGENTTYPE_H
8 #define AKONADI_AGENTTYPE_H
9 
10 #include "akonadicore_export.h"
11 
12 #include <QMetaType>
13 #include <QSharedDataPointer>
14 
15 class QIcon;
16 class QString;
17 #include <QStringList>
18 class QVariant;
20 
21 namespace Akonadi
22 {
23 
44 class AKONADICORE_EXPORT AgentType
45 {
46  friend class AgentManager;
47  friend class AgentManagerPrivate;
48 
49 public:
54 
58  AgentType();
59 
63  AgentType(const AgentType &other);
64 
68  ~AgentType();
69 
73  Q_REQUIRED_RESULT bool isValid() const;
74 
78  Q_REQUIRED_RESULT QString identifier() const;
79 
83  Q_REQUIRED_RESULT QString name() const;
84 
88  Q_REQUIRED_RESULT QString description() const;
89 
93  Q_REQUIRED_RESULT QString iconName() const;
94 
98  Q_REQUIRED_RESULT QIcon icon() const;
99 
103  Q_REQUIRED_RESULT QStringList mimeTypes() const;
104 
108  Q_REQUIRED_RESULT QStringList capabilities() const;
109 
114  Q_REQUIRED_RESULT QVariantMap customProperties() const;
115 
120  AgentType &operator=(const AgentType &other);
121 
126  bool operator==(const AgentType &other) const;
127 
128 private:
129  //@cond PRIVATE
130  class Private;
132  //@endcond
133 };
134 
135 }
136 
137 Q_DECLARE_TYPEINFO(Akonadi::AgentType, Q_MOVABLE_TYPE);
138 
139 Q_DECLARE_METATYPE(Akonadi::AgentType)
140 
141 #endif
typedef QVariantMap
Provides an interface to retrieve agent types and manage agent instances.
QVector< AgentType > List
Describes a list of agent types.
A representation of an agent type.
Helper integration between Akonadi and Qt.
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.