summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/DummySystemTray.h1
-rw-r--r--Swift/Controllers/MemoryStoragesFactory.h21
2 files changed, 22 insertions, 0 deletions
diff --git a/Swift/Controllers/DummySystemTray.h b/Swift/Controllers/DummySystemTray.h
index 1683b55..41da4cd 100644
--- a/Swift/Controllers/DummySystemTray.h
+++ b/Swift/Controllers/DummySystemTray.h
@@ -13,5 +13,6 @@ namespace Swift {
public:
void setUnreadMessages(bool some) {};
void setStatusType(StatusShow::Type type) {};
+ void setConnecting() {}
};
}
diff --git a/Swift/Controllers/MemoryStoragesFactory.h b/Swift/Controllers/MemoryStoragesFactory.h
new file mode 100644
index 0000000..8408e10
--- /dev/null
+++ b/Swift/Controllers/MemoryStoragesFactory.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2010 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swift/Controllers/StoragesFactory.h"
+#include "Swiften/Client/MemoryStorages.h"
+
+namespace Swift {
+ class MemoryStoragesFactory : public StoragesFactory {
+ public:
+ MemoryStoragesFactory() {}
+
+ virtual Storages* createStorages(const JID& profile) const {
+ return new MemoryStorages();
+ }
+ };
+}