2
Copyright (c) 2012 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
#include "backupmailutil.h"
19
#include <KConfigGroup>
22
QString BackupMailUtil::transportsPath()
24
return QLatin1String("transports/");
27
QString BackupMailUtil::resourcesPath()
29
return QLatin1String("resources/");
32
QString BackupMailUtil::identitiesPath()
34
return QLatin1String("identities/");
37
QString BackupMailUtil::mailsPath()
39
return QLatin1String("mails/");
42
QString BackupMailUtil::configsPath()
44
return QLatin1String("configs/");
47
QString BackupMailUtil::akonadiPath()
49
return QLatin1String("akonadi/");
52
KUrl BackupMailUtil::resourcePath(KSharedConfigPtr resourceConfig)
54
KConfigGroup group = resourceConfig->group(QLatin1String("General"));
55
QString url = group.readEntry(QLatin1String("Path"),QString());
56
url.replace("$HOME", QDir::homePath());