2 Copyright (c) 2014 Sandro Knauß <knauss@kolabsys.com>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
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 the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 #include "setupobject.h"
28 class SetupIspdb
: public SetupObject
33 explicit SetupIspdb(QObject
*parent
= Q_NULLPTR
);
34 SetupIspdb(QObject
*parent
, Ispdb
*ispdb
);
37 void create() Q_DECL_OVERRIDE
;
38 void destroy() Q_DECL_OVERRIDE
;
41 Q_SCRIPTABLE QStringList
relevantDomains() const;
42 Q_SCRIPTABLE QString
name(int l
) const;
44 Q_SCRIPTABLE
void fillImapServer(int i
, QObject
*) const;
45 Q_SCRIPTABLE
int countImapServers() const;
47 Q_SCRIPTABLE
void fillSmtpServer(int i
, QObject
*) const;
48 Q_SCRIPTABLE
int countSmtpServers() const;
50 Q_SCRIPTABLE
void fillIdentitiy(int i
, QObject
*) const;
51 Q_SCRIPTABLE
int countIdentities() const;
52 Q_SCRIPTABLE
int defaultIdentity() const;
54 Q_SCRIPTABLE
void start();
56 Q_SCRIPTABLE
void setEmail(const QString
&);
57 Q_SCRIPTABLE
void setPassword(const QString
&);
60 void ispdbFinished(bool);
63 void onIspdbFinished(bool);