MailTransport

transporttype.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "transporttype.h"
8 #include "transporttype_p.h"
9 
10 using 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 
31 bool TransportType::operator==(const TransportType &other) const
32 {
33  return d->mIdentifier == other.d->mIdentifier;
34 }
35 
36 bool TransportType::isValid() const
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 }
QString description
This property holds the transport type.
Definition: transporttype.h:41
bool operator==(const TransportType &other) const
Compares the transport type with the other.
A representation of a transport type.
Definition: transporttype.h:30
~TransportType()
Destroys the TransportType.
bool isAkonadiResource
This property holds whether this transport is an akonadi resource.
Definition: transporttype.h:47
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.
Definition: transporttype.h:38
TransportType()
Constructs a new TransportType.
bool isValid
This property holds whether the transport type is valid.
Definition: transporttype.h:35
QString identifier
This property holds the plugin identifier.
Definition: transporttype.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:23:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.