summaryrefslogtreecommitdiffstats
blob: b0b3679d0d64b385857b0cff851020317074f5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "QtChatWindowFactory.h"
#include "QtChatWindow.h"
#include "QtSwiftUtil.h"
#include "QtTreeWidgetFactory.h"

namespace Swift {
QtChatWindowFactory::QtChatWindowFactory(QtTreeWidgetFactory *treeWidgetFactory) : treeWidgetFactory_(treeWidgetFactory) {

}
ChatWindow* QtChatWindowFactory::createChatWindow(const JID &contact) {
	QtChatWindow *chatWindow = new QtChatWindow(P2QSTRING(contact.toString()), treeWidgetFactory_);
	chatWindow->show();
	return chatWindow;
}

}