diff options
Diffstat (limited to 'Swiften/MUC/MUCManager.cpp')
-rw-r--r-- | Swiften/MUC/MUCManager.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Swiften/MUC/MUCManager.cpp b/Swiften/MUC/MUCManager.cpp new file mode 100644 index 0000000..8950029 --- /dev/null +++ b/Swiften/MUC/MUCManager.cpp @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include "Swiften/MUC/MUCManager.h" + +namespace Swift { + +MUCManager::MUCManager(StanzaChannel* stanzaChannel, IQRouter* iqRouter, DirectedPresenceSender* presenceSender, MUCRegistry* mucRegistry) : stanzaChannel(stanzaChannel), iqRouter(iqRouter), presenceSender(presenceSender), mucRegistry(mucRegistry) { +} + +MUC::ref MUCManager::createMUC(const JID& jid) { + return MUC::ref(new MUC(stanzaChannel, iqRouter, presenceSender, jid, mucRegistry)); +} + +} |