summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-01 13:18:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-01 13:18:27 (GMT)
commit4cf2c5dbea1d620f824fda243c588ddf984f7737 (patch)
treefa1269e4dd5fdcc0c90d6527d0bbde473e50d7d0 /Swift
parent2cff9c80434511013d56e2ee1710128edcd9de48 (diff)
downloadswift-4cf2c5dbea1d620f824fda243c588ddf984f7737.zip
swift-4cf2c5dbea1d620f824fda243c588ddf984f7737.tar.bz2
Small tweaks to DummySystemTray & MemoryStoragesFactory.
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();
+ }
+ };
+}