summaryrefslogtreecommitdiffstats
path: root/sinksh/sinksh_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sinksh/sinksh_utils.cpp')
-rw-r--r--sinksh/sinksh_utils.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/sinksh/sinksh_utils.cpp b/sinksh/sinksh_utils.cpp
index 9ff966b..151ea2f 100644
--- a/sinksh/sinksh_utils.cpp
+++ b/sinksh/sinksh_utils.cpp
@@ -29,7 +29,8 @@ namespace SinkshUtils {
29static QStringList s_types = QStringList() << "resource" 29static QStringList s_types = QStringList() << "resource"
30 << "folder" 30 << "folder"
31 << "mail" 31 << "mail"
32 << "event"; 32 << "event"
33 << "account";
33 34
34bool isValidStoreType(const QString &type) 35bool isValidStoreType(const QString &type)
35{ 36{
@@ -50,6 +51,9 @@ StoreBase &getStore(const QString &type)
50 } else if (type == "resource") { 51 } else if (type == "resource") {
51 static Store<Sink::ApplicationDomain::SinkResource> store; 52 static Store<Sink::ApplicationDomain::SinkResource> store;
52 return store; 53 return store;
54 } else if (type == "account") {
55 static Store<Sink::ApplicationDomain::SinkAccount> store;
56 return store;
53 } 57 }
54 58
55 // TODO: reinstate the warning+assert 59 // TODO: reinstate the warning+assert
@@ -113,7 +117,8 @@ QStringList resourceOrTypeCompleter(const QStringList &commands, const QString &
113 static QStringList types = QStringList() << "resource" 117 static QStringList types = QStringList() << "resource"
114 << "folder" 118 << "folder"
115 << "mail" 119 << "mail"
116 << "event"; 120 << "event"
121 << "account";
117 if (commands.count() == 1) { 122 if (commands.count() == 1) {
118 return Utils::filteredCompletions(s_types, fragment); 123 return Utils::filteredCompletions(s_types, fragment);
119 } 124 }