Akonadi::AgentTypeModel Class
class Akonadi::AgentTypeModelProvides a data model for agent types. More...
| Header: | #include <Akonadi/AgentTypeModel> |
| CMake: | find_package(KPim6 REQUIRED COMPONENTS AkonadiCore)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCore) |
| Inherits: | QAbstractItemModel |
Public Types
| enum | Roles { TypeRole, NameRole, IconNameRole, IdentifierRole, DescriptionRole, …, UserRole } |
Public Functions
| AgentTypeModel(QObject *parent = nullptr) | |
| virtual | ~AgentTypeModel() override |
Detailed Description
This class provides the interface of a QAbstractItemModel to access all available agent types: their name, identifier, supported mimetypes and capabilities.
Akonadi::AgentTypeModel *model = new Akonadi::AgentTypeModel( this ); QListView *view = new QListView( this ); view->setModel( model );
To show only agent types that match a given mime type or special capabilities, use the AgentFilterProxyModel on top of this model.
Author: Tobias Koenig <tokoe@kde.org>
Member Type Documentation
enum AgentTypeModel::Roles
Describes the roles of this model.
Member Function Documentation
[explicit] AgentTypeModel::AgentTypeModel(QObject *parent = nullptr)
Creates a new agent type model.
[override virtual noexcept] AgentTypeModel::~AgentTypeModel()
Destroys the agent type model.