mailtransport
#include <transporttype.h>
Classes | |
class | Private |
Public Types | |
typedef QList< TransportType > | List |
Public Member Functions | |
TransportType () | |
TransportType (const TransportType &other) | |
~TransportType () | |
Akonadi::AgentType | agentType () const |
QString | description () const |
bool | isValid () const |
QString | name () const |
TransportType & | operator= (const TransportType &other) |
bool | operator== (const TransportType &other) const |
TransportBase::EnumType::type | type () const |
Detailed Description
A representation of a transport type.
Represents an available transport type. SMTP and Sendmail are available, as well as a number of Akonadi-based types. Each Akonadi-based type corresponds to an Akonadi resource type that supports sending messages.
This class provides information about the type, such as name and description. Additionally, for Akonadi types, it provides the corresponding Akonadi AgentType.
All available transport types can be retrieved via TransportManager::types().
- Since
- 4.4
Definition at line 51 of file transporttype.h.
Member Typedef Documentation
Describes a list of transport types.
Definition at line 62 of file transporttype.h.
Constructor & Destructor Documentation
TransportType::TransportType | ( | ) |
Constructs a new TransportType.
Definition at line 28 of file transporttype.cpp.
TransportType::TransportType | ( | const TransportType & | other | ) |
Creates a copy of the other
TransportType.
Definition at line 33 of file transporttype.cpp.
TransportType::~TransportType | ( | ) |
Destroys the TransportType.
Definition at line 38 of file transporttype.cpp.
Member Function Documentation
Akonadi::AgentType TransportType::agentType | ( | ) | const |
Returns the corresponding Akonadi::AgentType that this transport type represents.
Only valid if type() is Transport::EnumType::Akonadi.
Definition at line 86 of file transporttype.cpp.
QString TransportType::description | ( | ) | const |
Returns a description of the transport type.
Definition at line 81 of file transporttype.cpp.
bool TransportType::isValid | ( | ) | const |
Returns whether the transport type is valid.
Definition at line 59 of file transporttype.cpp.
QString TransportType::name | ( | ) | const |
Returns the i18n'ed name of the transport type.
Definition at line 76 of file transporttype.cpp.
TransportType & TransportType::operator= | ( | const TransportType & | other | ) |
Replaces the transport type by the other
.
Definition at line 42 of file transporttype.cpp.
bool TransportType::operator== | ( | const TransportType & | other | ) | const |
Compares the transport type with the other
.
Definition at line 50 of file transporttype.cpp.
TransportBase::EnumType::type TransportType::type | ( | ) | const |
Returns the type of the transport.
Definition at line 71 of file transporttype.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.