Akonadi::AgentType

Search for usage in LXR

Akonadi::AgentType Class Reference

#include <agenttype.h>

Public Types

using List = QList< AgentType >
 

Public Member Functions

 AgentType ()
 
 AgentType (const AgentType &other)
 
 ~AgentType ()
 
QStringList capabilities () const
 
QVariantMap customProperties () const
 
QString description () const
 
QIcon icon () const
 
QString iconName () const
 
QString identifier () const
 
bool isValid () const
 
QStringList mimeTypes () const
 
QString name () const
 
AgentTypeoperator= (const AgentType &other)
 
bool operator== (const AgentType &other) const
 

Detailed Description

A representation of an agent type.

The agent type is a representation of an available agent, that can be started as an agent instance. It provides all information about the type.

All available agent types can be retrieved from the AgentManager.

for ( const Akonadi::AgentType &type : types ) {
qDebug() << "Name:" << type.name() << "(" << type.identifier() << ")";
}
Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org

Definition at line 44 of file core/agenttype.h.

Member Typedef Documentation

◆ List

Describes a list of agent types.

Definition at line 53 of file core/agenttype.h.

Constructor & Destructor Documentation

◆ AgentType() [1/2]

AgentType::AgentType ( )

Creates a new agent type.

Definition at line 25 of file akonadicontrol/agenttype.cpp.

◆ AgentType() [2/2]

AgentType::AgentType ( const AgentType other)

Creates an agent type from an other agent type.

Definition at line 19 of file core/agenttype.cpp.

◆ ~AgentType()

AgentType::~AgentType ( )

Destroys the agent type.

Definition at line 24 of file core/agenttype.cpp.

Member Function Documentation

◆ capabilities()

QStringList AgentType::capabilities ( ) const

Returns the list of supported capabilities of the agent type.

Definition at line 63 of file core/agenttype.cpp.

◆ customProperties()

QVariantMap AgentType::customProperties ( ) const

Returns a Map of custom properties of the agent type.

Since
4.12

Definition at line 68 of file core/agenttype.cpp.

◆ description()

QString AgentType::description ( ) const

Returns the description of the agent type.

Definition at line 43 of file core/agenttype.cpp.

◆ icon()

QIcon AgentType::icon ( ) const

Returns the icon of the agent type.

Definition at line 53 of file core/agenttype.cpp.

◆ iconName()

QString AgentType::iconName ( ) const

Returns the name of the icon of the agent type.

Definition at line 48 of file core/agenttype.cpp.

◆ identifier()

QString AgentType::identifier ( ) const

Returns the unique identifier of the agent type.

Definition at line 33 of file core/agenttype.cpp.

◆ isValid()

bool AgentType::isValid ( ) const

Returns whether the agent type is valid.

Definition at line 28 of file core/agenttype.cpp.

◆ mimeTypes()

QStringList AgentType::mimeTypes ( ) const

Returns the list of supported mime types of the agent type.

Definition at line 58 of file core/agenttype.cpp.

◆ name()

QString AgentType::name ( ) const

Returns the i18n'ed name of the agent type.

Definition at line 38 of file core/agenttype.cpp.

◆ operator=()

AgentType & AgentType::operator= ( const AgentType other)
Parameters
otherother agent type

Definition at line 73 of file core/agenttype.cpp.

◆ operator==()

bool AgentType::operator== ( const AgentType other) const
Parameters
otherother agent type

Definition at line 82 of file core/agenttype.cpp.


The documentation for this class was generated from the following files:
A representation of an agent type.
QStringList types(Mode mode=Writing)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
static AgentManager * self()
Returns the global instance of the agent manager.
AgentType::List types() const
Returns the list of all available agent types.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:01:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.