Libksieve

akonadiimapsettinginterface.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 "akonadiimapsettinginterface.h"
8#include <pimcommon/imapresourcesettings.h>
9
10using namespace KSieveCore;
11
12AkonadiImapSettingInterface::AkonadiImapSettingInterface(std::unique_ptr<OrgKdeAkonadiImapSettingsInterface> &interface)
13 : KSieveCore::AbstractAkonadiImapSettingInterface()
14 , mInterface(interface.release())
15{
16}
17
18AkonadiImapSettingInterface::~AkonadiImapSettingInterface() = default;
19
20bool AkonadiImapSettingInterface::sieveSupport() const
21{
22 return mInterface->sieveSupport();
23}
24
25bool AkonadiImapSettingInterface::sieveReuseConfig() const
26{
27 return mInterface->sieveReuseConfig();
28}
29
30QString AkonadiImapSettingInterface::imapServer() const
31{
32 QDBusReply<QString> reply = mInterface->imapServer();
33 if (reply.isValid()) {
34 return reply;
35 }
36 return {};
37}
38
39QString AkonadiImapSettingInterface::userName() const
40{
41 return mInterface->userName();
42}
43
44int AkonadiImapSettingInterface::sievePort() const
45{
46 return mInterface->sievePort();
47}
48
49QString AkonadiImapSettingInterface::sieveCustomUsername() const
50{
51 return mInterface->sieveCustomUsername();
52}
53
54QString AkonadiImapSettingInterface::sieveCustomAuthentification() const
55{
56 return mInterface->sieveCustomAuthentification();
57}
58
59QString AkonadiImapSettingInterface::sieveVacationFilename() const
60{
61 return mInterface->sieveVacationFilename();
62}
63
64QString AkonadiImapSettingInterface::safety() const
65{
66 return mInterface->safety();
67}
68
69int AkonadiImapSettingInterface::alternateAuthentication() const
70{
71 return mInterface->alternateAuthentication();
72}
73
74int AkonadiImapSettingInterface::authentication() const
75{
76 return mInterface->authentication();
77}
78
79QString AkonadiImapSettingInterface::sieveAlternateUrl() const
80{
81 return mInterface->sieveAlternateUrl();
82}
83
84int AkonadiImapSettingInterface::imapPort() const
85{
86 return mInterface->imapPort();
87}
bool isValid() const const
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.