summaryrefslogtreecommitdiffstats
blob: b7fe6d2adb8971d00ac51b56ad417649a0b749c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <QTreeView>

#import "Swift/Controllers/UIInterfaces/ChatListWindow.h"
#import "Swift/Controllers/UIEvents/UIEventStream.h"
#import "Swift/QtUI/ChatList/ChatListModel.h"
#import "Swift/QtUI/ChatList/ChatListDelegate.h"

namespace Swift {

	class QtChatListWindow : public QTreeView, public ChatListWindow {
		Q_OBJECT
		public:
			QtChatListWindow(UIEventStream *uiEventStream, QWidget* parent = NULL);
			virtual ~QtChatListWindow();
			void addMUCBookmark(boost::shared_ptr<MUCBookmark> bookmark);
			void removeMUCBookmark(boost::shared_ptr<MUCBookmark> bookmark);
		private slots:
			void handleItemActivated(const QModelIndex&);
		private:
			UIEventStream* eventStream_;
			ChatListModel* model_;
			ChatListDelegate* delegate_;
	};

}