File indexing completed on 2024-06-23 05:15:12

0001 /*
0002     SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "transporttype.h"
0008 #include "transporttype_p.h"
0009 
0010 using namespace MailTransport;
0011 
0012 TransportType::TransportType()
0013     : d(new TransportTypePrivate)
0014 {
0015 }
0016 
0017 TransportType::TransportType(const TransportType &other)
0018 
0019     = default;
0020 
0021 TransportType::~TransportType() = default;
0022 
0023 TransportType &TransportType::operator=(const TransportType &other)
0024 {
0025     if (this != &other) {
0026         d = other.d;
0027     }
0028     return *this;
0029 }
0030 
0031 bool TransportType::operator==(const TransportType &other) const
0032 {
0033     return d->mIdentifier == other.d->mIdentifier;
0034 }
0035 
0036 bool TransportType::isValid() const
0037 {
0038     return !d->mIdentifier.isEmpty();
0039 }
0040 
0041 QString TransportType::name() const
0042 {
0043     return d->mName;
0044 }
0045 
0046 QString TransportType::description() const
0047 {
0048     return d->mDescription;
0049 }
0050 
0051 QString TransportType::identifier() const
0052 {
0053     return d->mIdentifier;
0054 }
0055 
0056 bool TransportType::isAkonadiResource() const
0057 {
0058     return d->mIsAkonadiResource;
0059 }
0060 
0061 #include "moc_transporttype.cpp"