diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-03-28 13:25:13 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-03-28 13:25:35 (GMT) |
commit | a59af6c6daa72dd491189335cf2d255a788eb0f6 (patch) | |
tree | a09c9b67e6ba5ea0ac87ab06a0b9836d61571a3e /Swift/QtUI/ChatList/QtChatListWindow.h | |
parent | 625d6a9f18c2377cdc3180e74b773ce3cbb2dcba (diff) | |
download | swift-contrib-a59af6c6daa72dd491189335cf2d255a788eb0f6.zip swift-contrib-a59af6c6daa72dd491189335cf2d255a788eb0f6.tar.bz2 |
Chat list in the gui (mostly non-functional).
Diffstat (limited to 'Swift/QtUI/ChatList/QtChatListWindow.h')
-rw-r--r-- | Swift/QtUI/ChatList/QtChatListWindow.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatList/QtChatListWindow.h b/Swift/QtUI/ChatList/QtChatListWindow.h new file mode 100644 index 0000000..b7fe6d2 --- /dev/null +++ b/Swift/QtUI/ChatList/QtChatListWindow.h @@ -0,0 +1,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_; + }; + +} |