Libksieve

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

KDE's Doxygen guidelines are available online.