diff options
| author | Kevin Smith <git@kismith.co.uk> | 2011-07-09 17:58:19 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2011-07-09 17:58:19 (GMT) | 
| commit | 54ae49f8485bce7794b1f061f4d1a305f2063f10 (patch) | |
| tree | 8c19b2bc41d7e5f9fe72390d13f5ed5c2ca2959b /Swift/Controllers/UIInterfaces | |
| parent | a64ee00ca0acd157ad8ddbef5e72608daba163dc (diff) | |
| download | swift-54ae49f8485bce7794b1f061f4d1a305f2063f10.zip swift-54ae49f8485bce7794b1f061f4d1a305f2063f10.tar.bz2  | |
Store avatar paths in the recent objects.
Resolves: #906
Diffstat (limited to 'Swift/Controllers/UIInterfaces')
| -rw-r--r-- | Swift/Controllers/UIInterfaces/ChatListWindow.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/Swift/Controllers/UIInterfaces/ChatListWindow.h b/Swift/Controllers/UIInterfaces/ChatListWindow.h index 94d400d..85700cb 100644 --- a/Swift/Controllers/UIInterfaces/ChatListWindow.h +++ b/Swift/Controllers/UIInterfaces/ChatListWindow.h @@ -10,6 +10,7 @@  #include <boost/shared_ptr.hpp>  #include <Swiften/MUC/MUCBookmark.h>  #include <Swiften/Elements/StatusShow.h> +#include <boost/filesystem/path.hpp>  #include <Swiften/Base/boost_bsignals.h> @@ -18,8 +19,8 @@ namespace Swift {  		public:  			class Chat {  				public: -					Chat(const JID& jid, const std::string& chatName, const std::string& activity, int unreadCount, StatusShow::Type statusType, bool isMUC, const std::string& nick = "") -					: jid(jid), chatName(chatName), activity(activity), statusType(statusType), isMUC(isMUC), nick(nick), unreadCount(unreadCount) {} +					Chat(const JID& jid, const std::string& chatName, const std::string& activity, int unreadCount, StatusShow::Type statusType, const boost::filesystem::path& avatarPath, bool isMUC, const std::string& nick = "") +					: jid(jid), chatName(chatName), activity(activity), statusType(statusType), isMUC(isMUC), nick(nick), unreadCount(unreadCount), avatarPath(avatarPath) {}  					/** Assume that nicks and other transient features aren't important for equality */  					bool operator==(const Chat& other) const {  						return jid.toBare() == other.jid.toBare() @@ -31,6 +32,9 @@ namespace Swift {  					void setStatusType(StatusShow::Type type) {  						statusType = type;  					} +					void setAvatarPath(const boost::filesystem::path& path) { +						avatarPath = path; +					}  					JID jid;  					std::string chatName;  					std::string activity; @@ -38,6 +42,7 @@ namespace Swift {  					bool isMUC;  					std::string nick;  					int unreadCount; +					boost::filesystem::path avatarPath;  			};  			virtual ~ChatListWindow();  | 
 Swift