SVN_SILENT made messages (.desktop file)
[kdepim.git] / importwizard / importwizardutil.h
blob2e80cbe5d8a76e673353812100792dcbb764c779
1 /*
2 Copyright (c) 2012-2013 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef IMPORTWIZARDUTIL_H
19 #define IMPORTWIZARDUTIL_H
20 #include <QUrl>
21 #include <QList>
22 #include <QColor>
23 #include <QString>
25 struct ldapStruct {
26 ldapStruct()
27 : maxHint(-1),
28 port(-1),
29 limit(-1),
30 timeout(-1),
31 useSSL(false),
32 useTLS(false)
36 QUrl ldapUrl;
37 QString dn;
38 QString saslMech;
39 QString fileName;
40 QString description;
41 QString password;
42 int maxHint;
43 int port;
44 int limit;
45 int timeout;
46 bool useSSL;
47 bool useTLS;
51 struct tagStruct {
52 QString name;
53 QColor color;
56 namespace ImportWizardUtil
58 enum ResourceType {
59 Imap,
60 Pop3,
61 Ldap
64 void mergeLdap(const ldapStruct &ldap);
65 void addAkonadiTag(const QList<tagStruct> &tagList);
66 void storeInKWallet(const QString &name, ImportWizardUtil::ResourceType type, const QString &password);
69 #endif // IMPORTWIZARDUTIL_H