Libksieve

akonadiimapsettinginterface.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 "akonadiimapsettinginterface.h"
8 #include "imapresourcesettings.h"
9 
10 using namespace KSieveUi;
11 
12 AkonadiImapSettingInterface::AkonadiImapSettingInterface(std::unique_ptr<OrgKdeAkonadiImapSettingsInterface> &interface)
13  : KSieveUi::AbstractAkonadiImapSettingInterface()
14  , mInterface(interface.release())
15 {
16 }
17 
18 AkonadiImapSettingInterface::~AkonadiImapSettingInterface()
19 {
20 }
21 
22 bool AkonadiImapSettingInterface::sieveSupport() const
23 {
24  return mInterface->sieveSupport();
25 }
26 
27 bool AkonadiImapSettingInterface::sieveReuseConfig() const
28 {
29  return mInterface->sieveReuseConfig();
30 }
31 
32 QString AkonadiImapSettingInterface::imapServer() const
33 {
34  QDBusReply<QString> reply = mInterface->imapServer();
35  if (reply.isValid()) {
36  return reply;
37  }
38  return {};
39 }
40 
41 QString AkonadiImapSettingInterface::userName() const
42 {
43  return mInterface->userName();
44 }
45 
46 int AkonadiImapSettingInterface::sievePort() const
47 {
48  return mInterface->sievePort();
49 }
50 
51 QString AkonadiImapSettingInterface::sieveCustomUsername() const
52 {
53  return mInterface->sieveCustomUsername();
54 }
55 
56 QString AkonadiImapSettingInterface::sieveCustomAuthentification() const
57 {
58  return mInterface->sieveCustomAuthentification();
59 }
60 
61 QString AkonadiImapSettingInterface::sieveVacationFilename() const
62 {
63  return mInterface->sieveVacationFilename();
64 }
65 
66 QString AkonadiImapSettingInterface::safety() const
67 {
68  return mInterface->safety();
69 }
70 
71 int AkonadiImapSettingInterface::alternateAuthentication() const
72 {
73  return mInterface->alternateAuthentication();
74 }
75 
76 int AkonadiImapSettingInterface::authentication() const
77 {
78  return mInterface->authentication();
79 }
80 
81 QString KSieveUi::AkonadiImapSettingInterface::sieveAlternateUrl() const
82 {
83  return mInterface->sieveAlternateUrl();
84 }
85 
86 int KSieveUi::AkonadiImapSettingInterface::imapPort() const
87 {
88  return mInterface->imapPort();
89 }
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.