SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / accountwizard / setupispdb.h
blobdb7ef1e7b3192d746481063a9a145afa4d65b677
1 /*
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
17 02110-1301, USA.
20 #ifndef SETUPISPDB_H
21 #define SETUPISPDB_H
23 #include "setupobject.h"
25 class Identity;
26 class Ispdb;
28 class SetupIspdb : public SetupObject
30 Q_OBJECT
31 public:
32 /** Constructor */
33 explicit SetupIspdb(QObject *parent = Q_NULLPTR);
34 SetupIspdb(QObject *parent, Ispdb *ispdb);
35 ~SetupIspdb();
37 void create() Q_DECL_OVERRIDE;
38 void destroy() Q_DECL_OVERRIDE;
40 public Q_SLOTS:
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 &);
59 Q_SIGNALS:
60 void ispdbFinished(bool);
62 protected Q_SLOTS:
63 void onIspdbFinished(bool);
65 protected :
66 Ispdb *mIspdb;
70 #endif