diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-04-27 20:42:11 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-04-27 20:58:17 (GMT) |
commit | f48dbee2fb5acf7c0abc9d7897d736233b1f0d2f (patch) | |
tree | 512879020dc60ecb0b0b5e70219bf588c5a2f5af /Swift/QtUI/ChatList/ChatListModel.h | |
parent | 73c97d9222040b6160321a32e55a5a3913923e5e (diff) | |
download | swift-contrib-f48dbee2fb5acf7c0abc9d7897d736233b1f0d2f.zip swift-contrib-f48dbee2fb5acf7c0abc9d7897d736233b1f0d2f.tar.bz2 |
Start on recent chats list
Diffstat (limited to 'Swift/QtUI/ChatList/ChatListModel.h')
-rw-r--r-- | Swift/QtUI/ChatList/ChatListModel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Swift/QtUI/ChatList/ChatListModel.h b/Swift/QtUI/ChatList/ChatListModel.h index adde148..8e7828c 100644 --- a/Swift/QtUI/ChatList/ChatListModel.h +++ b/Swift/QtUI/ChatList/ChatListModel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Kevin Smith + * Copyright (c) 2010-2011 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ @@ -11,9 +11,10 @@ #include <QAbstractItemModel> #include <QList> -#include "Swiften/MUC/MUCBookmark.h" +#include <Swiften/MUC/MUCBookmark.h> +#include <Swift/Controllers/UIInterfaces/ChatListWindow.h> -#include "Swift/QtUI/ChatList/ChatListGroupItem.h" +#include <Swift/QtUI/ChatList/ChatListGroupItem.h> namespace Swift { class ChatListModel : public QAbstractItemModel { @@ -28,9 +29,11 @@ namespace Swift { QModelIndex parent(const QModelIndex& index) const; int rowCount(const QModelIndex& parent = QModelIndex()) const; ChatListItem* getItemForIndex(const QModelIndex& index) const; - void clear(); + void clearBookmarks(); + void setRecents(const std::list<ChatListWindow::Chat>& recents); private: ChatListGroupItem* mucBookmarks_; + ChatListGroupItem* recents_; ChatListGroupItem* root_; }; |