summaryrefslogtreecommitdiff
path: root/lib/kolabaccount.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 08:50:12 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-02-19 08:50:12 (GMT)
commitefd9e97883980163cac906cd1daba189d0de1314 (patch)
tree72327b426d2ff02c98149496a629ecaaa8bd132c /lib/kolabaccount.cpp
parentee0eea252ae170014e7e530cad397f907588799f (diff)
downloadkolab-utils-efd9e97883980163cac906cd1daba189d0de1314.tar.gz
Fixed warnings.
Diffstat (limited to 'lib/kolabaccount.cpp')
-rw-r--r--lib/kolabaccount.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/kolabaccount.cpp b/lib/kolabaccount.cpp
index e82f4a2..d053853 100644
--- a/lib/kolabaccount.cpp
+++ b/lib/kolabaccount.cpp
@@ -269,23 +269,14 @@ void KolabAccount::cleanAccount()
init();
}
-void KolabAccount::mailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList< QByteArray > > &flags)
+void KolabAccount::mailBoxesReceived(const QList<KIMAP::MailBoxDescriptor> &descriptors, const QList< QList< QByteArray > > &/* flags */)
{
mMailboxes.append(descriptors);
}
-//TODO move to formathelpers.h or kolabdefinitions.h
-#define KOLAB_FOLDER_TYPE_DRAFTS_SUFFIX ".drafts"
-#define KOLAB_FOLDER_TYPE_SENT_SUFFIX ".sentitems"
-#define KOLAB_FOLDER_TYPE_OUTBOX_SUFFIX ".outbox"
-#define KOLAB_FOLDER_TYPE_TRASH_SUFFIX ".wastebasket"
-#define KOLAB_FOLDER_TYPE_JUNK_SUFFIX ".junkemail"
-
-
/*
* This can fail with "NO Mailbox is locked" if the we deleted a selected folder before:
* http://lists.andrew.cmu.edu/pipermail/info-cyrus/2011-June/035049.html
- *
*/
void KolabAccount::createFolder(const QString &name, const QByteArray &annotation)
{
@@ -351,7 +342,7 @@ void KolabAccount::setupFolders()
//TODO make part of setupkolabfoldersjob after adding types to folderTypeFromString in formathelpers.cpp
//TODO the suffixes should go in the private namespace
createFolder("Configuration", KOLAB_FOLDER_TYPE_CONFIGURATION KOLAB_FOLDER_TYPE_DEFAULT_SUFFIX);
- createFolder("Drafts", KOLAB_FOLDER_TYPE_MAIL KOLAB_FOLDER_TYPE_DRAFTS_SUFFIX);
+ createFolder("Drafts", KOLAB_FOLDER_TYPE_MAIL KOLAB_FOLDER_TYPE_DRAFT_SUFFIX);
createFolder("Sent", KOLAB_FOLDER_TYPE_MAIL KOLAB_FOLDER_TYPE_SENT_SUFFIX);
createFolder("Trash", KOLAB_FOLDER_TYPE_MAIL KOLAB_FOLDER_TYPE_TRASH_SUFFIX);
}