MailTransport

transporttype.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "transporttype.h"
8#include "transporttype_p.h"
9
10using namespace MailTransport;
11
13 : d(new TransportTypePrivate)
14{
15}
16
18
19 = default;
20
22
24{
25 if (this != &other) {
26 d = other.d;
27 }
28 return *this;
29}
30
32{
33 return d->mIdentifier == other.d->mIdentifier;
34}
35
37{
38 return !d->mIdentifier.isEmpty();
39}
40
42{
43 return d->mName;
44}
45
47{
48 return d->mDescription;
49}
50
52{
53 return d->mIdentifier;
54}
55
57{
58 return d->mIsAkonadiResource;
59}
60
61#include "moc_transporttype.cpp"
A representation of a transport type.
bool operator==(const TransportType &other) const
Compares the transport type with the other.
TransportType & operator=(const TransportType &other)
Replaces the transport type by the other.
QString name
This property holds the i18n'ed name of the transport type.
TransportType()
Constructs a new TransportType.
QString identifier
This property holds the plugin identifier.
~TransportType()
Destroys the TransportType.
bool isAkonadiResource
This property holds whether this transport is an akonadi resource.
bool isValid
This property holds whether the transport type is valid.
QString description
This property holds the transport type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.