Akonadi

agenttypemodel.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_AGENTTYPEMODEL_H
8 #define AKONADI_AGENTTYPEMODEL_H
9 
10 #include "akonadicore_export.h"
11 
12 #include <QAbstractItemModel>
13 
14 namespace Akonadi
15 {
16 
38 class AKONADICORE_EXPORT AgentTypeModel : public QAbstractItemModel
39 {
40  Q_OBJECT
41 
42 public:
46  enum Roles {
47  TypeRole = Qt::UserRole + 1,
52  UserRole = Qt::UserRole + 42
53  };
54 
58  explicit AgentTypeModel(QObject *parent = nullptr);
59 
63  ~AgentTypeModel() override;
64 
65  Q_REQUIRED_RESULT int columnCount(const QModelIndex &parent = QModelIndex()) const override;
66  Q_REQUIRED_RESULT int rowCount(const QModelIndex &parent = QModelIndex()) const override;
67  Q_REQUIRED_RESULT QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
68  Q_REQUIRED_RESULT QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
69  Q_REQUIRED_RESULT QModelIndex parent(const QModelIndex &index) const override;
70  Q_REQUIRED_RESULT Qt::ItemFlags flags(const QModelIndex &index) const override;
71 
72 private:
73  //@cond PRIVATE
74  class Private;
75  Private *const d;
76  //@endcond
77 };
78 
79 }
80 
81 #endif
UserRole
The identifier of the agent type.
A description of the agent type.
Roles
Describes the roles of this model.
Provides a data model for agent types.
Helper integration between Akonadi and Qt.
A list of supported capabilities.
typedef ItemFlags
A list of supported mimetypes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.