From e94c705bb01c662d934c0096480bc9a732d0e1ec Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 19 Jan 2012 12:21:27 +0000 Subject: FacebookRM: Version bump Version 0.0.7.0 + Support for group chats (EXPERIMENTAL!) - enable it in options ! Fixed loading contact list ! Fixed potential freeze. Total downloads: (None or statistics not available yet) Version 0.0.6.1a Reuploaded. Total downloads: (None or statistics not available yet) Version 0.0.6.1 + Returned option to close chat windows (on website) + New option to map non-standard statuses to Invisible (insetad of Online) + New option to load contacts, which have "On the Phone" status ! Fixed changing chat visibility ! Very long messages are no longer received duplicitely ! Changes and fixes related to multiuser messages and messages from people, which are not in server-list Total downloads: (None or statistics not available yet) git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@261 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/entities.h | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'FacebookRM/entities.h') diff --git a/FacebookRM/entities.h b/FacebookRM/entities.h index 432af9f..c09c20d 100644 --- a/FacebookRM/entities.h +++ b/FacebookRM/entities.h @@ -63,11 +63,12 @@ struct facebook_message { std::string user_id; std::string message_text; + std::string sender_name; time_t time; facebook_message( ) { - this->user_id = this->message_text = ""; + this->user_id = this->message_text = this->sender_name = ""; this->time = 0; } @@ -75,6 +76,7 @@ struct facebook_message { this->user_id = msg.user_id; this->message_text = msg.message_text; + this->sender_name = msg.sender_name; this->time = msg.time; } }; @@ -103,3 +105,34 @@ struct facebook_newsfeed this->user_id = this->title = this->text = this->link = ""; } }; + + +struct send_chat +{ + send_chat(const std::string &chat_id,const std::string &msg) : chat_id(chat_id), msg(msg) {} + std::string chat_id; + std::string msg; +}; + + +struct send_direct +{ + send_direct(HANDLE hContact,const std::string &msg, HANDLE msgid) : hContact(hContact), msg(msg), msgid(msgid) {} + HANDLE hContact; + std::string msg; + HANDLE msgid; +}; + +struct send_typing +{ + send_typing(HANDLE hContact,const int status) : hContact(hContact), status(status) {} + HANDLE hContact; + int status; +}; + +struct send_messaging +{ + send_messaging(const std::string &user_id, const int type) : user_id(user_id), type(type) {} + std::string user_id; + int type; +}; -- cgit v1.2.3