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 
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 
56 bool TransportType::isAkonadiResource() const
57 {
58  return d->mIsAkonadiResource;
59 }
bool isValid() const
Returns whether the transport type is valid.
QString identifier() const
Returns a plugin identifier.
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.
QString name() const
Returns the i18n'ed name of the transport type.
TransportType & operator=(const TransportType &other)
Replaces the transport type by the other.
TransportType()
Constructs a new TransportType.
QString description() const
Returns a description of the transport type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Oct 6 2022 04:11:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.