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  : d(other.d)
19 {
20 }
21 
23 {
24 }
25 
27 {
28  if (this != &other) {
29  d = other.d;
30  }
31  return *this;
32 }
33 
34 bool TransportType::operator==(const TransportType &other) const
35 {
36  return d->mIdentifier == other.d->mIdentifier;
37 }
38 
40 {
41  return !d->mIdentifier.isEmpty();
42 }
43 
45 {
46  return d->mName;
47 }
48 
50 {
51  return d->mDescription;
52 }
53 
55 {
56  return d->mIdentifier;
57 }
58 
59 bool TransportType::isAkonadiResource() const
60 {
61  return d->mIsAkonadiResource;
62 }
A representation of a transport type.
Definition: transporttype.h:30
QString name() const
Returns the i18n&#39;ed name of the transport type.
~TransportType()
Destroys the TransportType.
bool isValid() const
Returns whether the transport type is valid.
QString identifier() const
Returns a plugin identifier.
QString description() const
Returns a description of the transport type.
TransportType & operator=(const TransportType &other)
Replaces the transport type by the other.
TransportType()
Constructs a new TransportType.
bool operator==(const TransportType &other) const
Compares the transport type with the other.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Oct 24 2021 23:20:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.