summaryrefslogtreecommitdiffstats
path: root/framework/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'framework/accounts')
-rw-r--r--framework/accounts/accountfactory.cpp2
-rw-r--r--framework/accounts/gmailcontroller.cpp2
-rw-r--r--framework/accounts/kolabnowcontroller.cpp2
-rw-r--r--framework/accounts/maildircontroller.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/framework/accounts/accountfactory.cpp b/framework/accounts/accountfactory.cpp
index 182a0a1d..c590e4b6 100644
--- a/framework/accounts/accountfactory.cpp
+++ b/framework/accounts/accountfactory.cpp
@@ -44,7 +44,7 @@ void AccountFactory::setAccountId(const QString &accountId)
44{ 44{
45 mAccountId = accountId; 45 mAccountId = accountId;
46 Sink::Store::fetchOne<Sink::ApplicationDomain::SinkAccount>(Sink::Query().filter(accountId.toUtf8())) 46 Sink::Store::fetchOne<Sink::ApplicationDomain::SinkAccount>(Sink::Query().filter(accountId.toUtf8()))
47 .syncThen<void, Sink::ApplicationDomain::SinkAccount>([this](const Sink::ApplicationDomain::SinkAccount &account) { 47 .then([this](const Sink::ApplicationDomain::SinkAccount &account) {
48 mAccountType = account.getProperty("type").toByteArray(); 48 mAccountType = account.getProperty("type").toByteArray();
49 loadPackage(); 49 loadPackage();
50 }).exec(); 50 }).exec();
diff --git a/framework/accounts/gmailcontroller.cpp b/framework/accounts/gmailcontroller.cpp
index bc644ae9..89877117 100644
--- a/framework/accounts/gmailcontroller.cpp
+++ b/framework/accounts/gmailcontroller.cpp
@@ -80,7 +80,7 @@ void GmailController::load(const QByteArray &id) {
80 m_accountId = id; 80 m_accountId = id;
81 81
82 Store::fetchOne<SinkAccount>(Query().filter(m_accountId)) 82 Store::fetchOne<SinkAccount>(Query().filter(m_accountId))
83 .syncThen<void, SinkAccount>([this](const SinkAccount &account) { 83 .then([this](const SinkAccount &account) {
84 setName(account.getName()); 84 setName(account.getName());
85 }).exec(); 85 }).exec();
86 86
diff --git a/framework/accounts/kolabnowcontroller.cpp b/framework/accounts/kolabnowcontroller.cpp
index 1cbe2f5b..05577754 100644
--- a/framework/accounts/kolabnowcontroller.cpp
+++ b/framework/accounts/kolabnowcontroller.cpp
@@ -80,7 +80,7 @@ void KolabNowController::load(const QByteArray &id) {
80 m_accountId = id; 80 m_accountId = id;
81 81
82 Store::fetchOne<SinkAccount>(Query().filter(m_accountId)) 82 Store::fetchOne<SinkAccount>(Query().filter(m_accountId))
83 .syncThen<void, SinkAccount>([this](const SinkAccount &account) { 83 .then([this](const SinkAccount &account) {
84 setName(account.getName()); 84 setName(account.getName());
85 }).exec(); 85 }).exec();
86 86
diff --git a/framework/accounts/maildircontroller.cpp b/framework/accounts/maildircontroller.cpp
index 481d43d8..c2e15eb8 100644
--- a/framework/accounts/maildircontroller.cpp
+++ b/framework/accounts/maildircontroller.cpp
@@ -65,13 +65,13 @@ void MaildirController::load(const QByteArray &id) {
65 clear(); 65 clear();
66 66
67 Store::fetchOne<SinkAccount>(Query().filter(m_accountId)) 67 Store::fetchOne<SinkAccount>(Query().filter(m_accountId))
68 .syncThen<void, SinkAccount>([this](const SinkAccount &account) { 68 .then([this](const SinkAccount &account) {
69 setIcon(account.getIcon()); 69 setIcon(account.getIcon());
70 setName(account.getName()); 70 setName(account.getName());
71 }).exec(); 71 }).exec();
72 72
73 Store::fetchOne<SinkResource>(Query().filter<SinkResource::Account>(m_accountId).containsFilter<SinkResource::Capabilities>(ResourceCapabilities::Mail::storage)) 73 Store::fetchOne<SinkResource>(Query().filter<SinkResource::Account>(m_accountId).containsFilter<SinkResource::Capabilities>(ResourceCapabilities::Mail::storage))
74 .syncThen<void, SinkResource>([this](const SinkResource &resource) { 74 .then([this](const SinkResource &resource) {
75 m_resourceId = resource.identifier(); 75 m_resourceId = resource.identifier();
76 setPath(resource.getProperty("path").toString()); 76 setPath(resource.getProperty("path").toString());
77 }).exec(); 77 }).exec();