Libksieve

akonadiimapsettinginterface.cpp
1 /*
2  Copyright (C) 2017-2020 Laurent Montel <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #include "akonadiimapsettinginterface.h"
21 #include "imapresourcesettings.h"
22 
23 using namespace KSieveUi;
24 
25 AkonadiImapSettingInterface::AkonadiImapSettingInterface(std::unique_ptr<OrgKdeAkonadiImapSettingsInterface> &interface)
26  : KSieveUi::AbstractAkonadiImapSettingInterface()
27  , mInterface(interface.release())
28 {
29 }
30 
31 AkonadiImapSettingInterface::~AkonadiImapSettingInterface()
32 {
33 }
34 
35 bool AkonadiImapSettingInterface::sieveSupport() const
36 {
37  return mInterface->sieveSupport();
38 }
39 
40 bool AkonadiImapSettingInterface::sieveReuseConfig() const
41 {
42  return mInterface->sieveReuseConfig();
43 }
44 
45 QString AkonadiImapSettingInterface::imapServer() const
46 {
47  QDBusReply<QString> reply = mInterface->imapServer();
48  if (reply.isValid()) {
49  return reply;
50  }
51  return {};
52 }
53 
54 QString AkonadiImapSettingInterface::userName() const
55 {
56  return mInterface->userName();
57 }
58 
59 int AkonadiImapSettingInterface::sievePort() const
60 {
61  return mInterface->sievePort();
62 }
63 
64 QString AkonadiImapSettingInterface::sieveCustomUsername() const
65 {
66  return mInterface->sieveCustomUsername();
67 }
68 
69 QString AkonadiImapSettingInterface::sieveCustomAuthentification() const
70 {
71  return mInterface->sieveCustomAuthentification();
72 }
73 
74 QString AkonadiImapSettingInterface::sieveVacationFilename() const
75 {
76  return mInterface->sieveVacationFilename();
77 }
78 
79 QString AkonadiImapSettingInterface::safety() const
80 {
81  return mInterface->safety();
82 }
83 
84 int AkonadiImapSettingInterface::alternateAuthentication() const
85 {
86  return mInterface->alternateAuthentication();
87 }
88 
89 int AkonadiImapSettingInterface::authentication() const
90 {
91  return mInterface->authentication();
92 }
93 
94 QString KSieveUi::AkonadiImapSettingInterface::sieveAlternateUrl() const
95 {
96  return mInterface->sieveAlternateUrl();
97 }
98 
99 int KSieveUi::AkonadiImapSettingInterface::imapPort() const
100 {
101  return mInterface->imapPort();
102 }
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 23:08:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.