Libksieve

sieveimapinstance.cpp
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "sieveimapinstance.h"
8 using namespace KSieveUi;
9 SieveImapInstance::SieveImapInstance()
10 {
11 }
12 
13 QString SieveImapInstance::name() const
14 {
15  return mName;
16 }
17 
18 void SieveImapInstance::setName(const QString &name)
19 {
20  mName = name;
21 }
22 
23 QString SieveImapInstance::identifier() const
24 {
25  return mIdentifier;
26 }
27 
28 void SieveImapInstance::setIdentifier(const QString &identifier)
29 {
30  mIdentifier = identifier;
31 }
32 
33 KSieveUi::SieveImapInstance::Status SieveImapInstance::status() const
34 {
35  return mStatus;
36 }
37 
38 void SieveImapInstance::setStatus(Status status)
39 {
40  mStatus = status;
41 }
42 
43 QStringList SieveImapInstance::mimeTypes() const
44 {
45  return mMimeTypes;
46 }
47 
48 void SieveImapInstance::setMimeTypes(const QStringList &mimeTypes)
49 {
50  mMimeTypes = mimeTypes;
51 }
52 
53 QStringList SieveImapInstance::capabilities() const
54 {
55  return mCapabilities;
56 }
57 
58 void SieveImapInstance::setCapabilities(const QStringList &capabilities)
59 {
60  mCapabilities = capabilities;
61 }
62 
63 bool SieveImapInstance::operator==(const SieveImapInstance &other) const
64 {
65  return (name() == other.name()) && (identifier() == other.identifier()) && (status() == other.status()) && (mimeTypes() == other.mimeTypes())
66  && (capabilities() == other.capabilities());
67 }
The SieveImapInstance class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.