diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/sinksh_utils.cpp | 4 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_clear.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_count.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_inspect.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_remove.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_show.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_stat.cpp | 2 | ||||
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 4 |
8 files changed, 4 insertions, 16 deletions
diff --git a/sinksh/sinksh_utils.cpp b/sinksh/sinksh_utils.cpp index 3bbffef..3a3484a 100644 --- a/sinksh/sinksh_utils.cpp +++ b/sinksh/sinksh_utils.cpp | |||
@@ -62,6 +62,10 @@ QList<QByteArray> requestedProperties(const QString &type) | |||
62 | << Mail::Date::name; | 62 | << Mail::Date::name; |
63 | } else if (type == getTypeName<Event>()) { | 63 | } else if (type == getTypeName<Event>()) { |
64 | return QList<QByteArray>() << Event::Summary::name; | 64 | return QList<QByteArray>() << Event::Summary::name; |
65 | } else if (type == getTypeName<Contact>()) { | ||
66 | return QList<QByteArray>() << Contact::Fn::name << Contact::Emails::name << Contact::Addressbook::name; | ||
67 | } else if (type == getTypeName<Addressbook>()) { | ||
68 | return QList<QByteArray>() << Addressbook::Name::name << Addressbook::Parent::name; | ||
65 | } else if (type == getTypeName<SinkResource>()) { | 69 | } else if (type == getTypeName<SinkResource>()) { |
66 | return QList<QByteArray>() << SinkResource::ResourceType::name << SinkResource::Account::name << SinkResource::Capabilities::name; | 70 | return QList<QByteArray>() << SinkResource::ResourceType::name << SinkResource::Account::name << SinkResource::Capabilities::name; |
67 | } else if (type == getTypeName<SinkAccount>()) { | 71 | } else if (type == getTypeName<SinkAccount>()) { |
diff --git a/sinksh/syntax_modules/sink_clear.cpp b/sinksh/syntax_modules/sink_clear.cpp index 1537ecd..0f0f296 100644 --- a/sinksh/syntax_modules/sink_clear.cpp +++ b/sinksh/syntax_modules/sink_clear.cpp | |||
@@ -23,8 +23,6 @@ | |||
23 | 23 | ||
24 | #include "common/resource.h" | 24 | #include "common/resource.h" |
25 | #include "common/storage.h" | 25 | #include "common/storage.h" |
26 | #include "common/domain/event.h" | ||
27 | #include "common/domain/folder.h" | ||
28 | #include "common/resourceconfig.h" | 26 | #include "common/resourceconfig.h" |
29 | #include "common/log.h" | 27 | #include "common/log.h" |
30 | #include "common/storage.h" | 28 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp index 5ab9ca5..9b6aa1e 100644 --- a/sinksh/syntax_modules/sink_count.cpp +++ b/sinksh/syntax_modules/sink_count.cpp | |||
@@ -25,8 +25,6 @@ | |||
25 | 25 | ||
26 | #include "common/resource.h" | 26 | #include "common/resource.h" |
27 | #include "common/storage.h" | 27 | #include "common/storage.h" |
28 | #include "common/domain/event.h" | ||
29 | #include "common/domain/folder.h" | ||
30 | #include "common/resourceconfig.h" | 28 | #include "common/resourceconfig.h" |
31 | #include "common/log.h" | 29 | #include "common/log.h" |
32 | #include "common/storage.h" | 30 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index 0d2ea00..a8a3805 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp | |||
@@ -24,8 +24,6 @@ | |||
24 | 24 | ||
25 | #include "common/resource.h" | 25 | #include "common/resource.h" |
26 | #include "common/storage.h" | 26 | #include "common/storage.h" |
27 | #include "common/domain/event.h" | ||
28 | #include "common/domain/folder.h" | ||
29 | #include "common/resourceconfig.h" | 27 | #include "common/resourceconfig.h" |
30 | #include "common/log.h" | 28 | #include "common/log.h" |
31 | #include "common/storage.h" | 29 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_remove.cpp b/sinksh/syntax_modules/sink_remove.cpp index 7e66ece..bbc1752 100644 --- a/sinksh/syntax_modules/sink_remove.cpp +++ b/sinksh/syntax_modules/sink_remove.cpp | |||
@@ -25,8 +25,6 @@ | |||
25 | 25 | ||
26 | #include "common/resource.h" | 26 | #include "common/resource.h" |
27 | #include "common/storage.h" | 27 | #include "common/storage.h" |
28 | #include "common/domain/event.h" | ||
29 | #include "common/domain/folder.h" | ||
30 | #include "common/resourceconfig.h" | 28 | #include "common/resourceconfig.h" |
31 | #include "common/log.h" | 29 | #include "common/log.h" |
32 | #include "common/storage.h" | 30 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_show.cpp b/sinksh/syntax_modules/sink_show.cpp index 8e3f715..391505a 100644 --- a/sinksh/syntax_modules/sink_show.cpp +++ b/sinksh/syntax_modules/sink_show.cpp | |||
@@ -26,8 +26,6 @@ | |||
26 | 26 | ||
27 | #include "common/resource.h" | 27 | #include "common/resource.h" |
28 | #include "common/storage.h" | 28 | #include "common/storage.h" |
29 | #include "common/domain/event.h" | ||
30 | #include "common/domain/folder.h" | ||
31 | #include "common/resourceconfig.h" | 29 | #include "common/resourceconfig.h" |
32 | #include "common/log.h" | 30 | #include "common/log.h" |
33 | #include "common/storage.h" | 31 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_stat.cpp b/sinksh/syntax_modules/sink_stat.cpp index 982d4cf..73b6ac4 100644 --- a/sinksh/syntax_modules/sink_stat.cpp +++ b/sinksh/syntax_modules/sink_stat.cpp | |||
@@ -24,8 +24,6 @@ | |||
24 | 24 | ||
25 | #include "common/resource.h" | 25 | #include "common/resource.h" |
26 | #include "common/storage.h" | 26 | #include "common/storage.h" |
27 | #include "common/domain/event.h" | ||
28 | #include "common/domain/folder.h" | ||
29 | #include "common/resourceconfig.h" | 27 | #include "common/resourceconfig.h" |
30 | #include "common/log.h" | 28 | #include "common/log.h" |
31 | #include "common/storage.h" | 29 | #include "common/storage.h" |
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 250cd75..ef84734 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -24,8 +24,6 @@ | |||
24 | #include "common/resource.h" | 24 | #include "common/resource.h" |
25 | #include "common/storage.h" | 25 | #include "common/storage.h" |
26 | #include "common/resourcecontrol.h" | 26 | #include "common/resourcecontrol.h" |
27 | #include "common/domain/event.h" | ||
28 | #include "common/domain/folder.h" | ||
29 | #include "common/resourceconfig.h" | 27 | #include "common/resourceconfig.h" |
30 | #include "common/log.h" | 28 | #include "common/log.h" |
31 | #include "common/storage.h" | 29 | #include "common/storage.h" |
@@ -51,7 +49,6 @@ bool sync(const QStringList &args, State &state) | |||
51 | } | 49 | } |
52 | } | 50 | } |
53 | 51 | ||
54 | QTimer::singleShot(0, [query, state]() { | ||
55 | Sink::Store::synchronize(query) | 52 | Sink::Store::synchronize(query) |
56 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) | 53 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) |
57 | .then([state](const KAsync::Error &error) { | 54 | .then([state](const KAsync::Error &error) { |
@@ -62,7 +59,6 @@ bool sync(const QStringList &args, State &state) | |||
62 | } | 59 | } |
63 | state.commandFinished(); | 60 | state.commandFinished(); |
64 | }).exec(); | 61 | }).exec(); |
65 | }); | ||
66 | 62 | ||
67 | return true; | 63 | return true; |
68 | } | 64 | } |