summaryrefslogtreecommitdiff
path: root/FacebookRM/proto.h
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-01-19 12:21:27 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2012-01-19 12:21:27 +0000
commite94c705bb01c662d934c0096480bc9a732d0e1ec (patch)
treea07c6aa2174cf87d62ecfccdde8dbfa56185d78f /FacebookRM/proto.h
parent9b2d93c613db59b7d47327899a0850d370d6ea5e (diff)
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
Diffstat (limited to 'FacebookRM/proto.h')
-rw-r--r--FacebookRM/proto.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/FacebookRM/proto.h b/FacebookRM/proto.h
index 7c70a56..b6fd3d8 100644
--- a/FacebookRM/proto.h
+++ b/FacebookRM/proto.h
@@ -124,6 +124,8 @@ public:
int __cdecl GetAvatarInfo(WPARAM, LPARAM );
int __cdecl GetAvatarCaps(WPARAM, LPARAM );
int __cdecl VisitProfile(WPARAM, LPARAM );
+ int __cdecl RemoveFriend(WPARAM, LPARAM );
+ int __cdecl AddFriend(WPARAM, LPARAM );
// Events
int __cdecl OnModulesLoaded(WPARAM, LPARAM);
@@ -134,9 +136,9 @@ public:
int __cdecl OnPreShutdown(WPARAM,LPARAM);
int __cdecl OnPrebuildContactMenu(WPARAM,LPARAM);
// TODO RM: Chat handling
- /* int __cdecl OnChatOutgoing(WPARAM,LPARAM);
+ int __cdecl OnChatOutgoing(WPARAM,LPARAM);
int __cdecl OnJoinChat(WPARAM,LPARAM);
- int __cdecl OnLeaveChat(WPARAM,LPARAM);*/
+ int __cdecl OnLeaveChat(WPARAM,LPARAM);
// Loops
bool NegotiateConnection();
@@ -146,6 +148,7 @@ public:
// Processing threads
void __cdecl ProcessBuddyList(void*);
+ void __cdecl ProcessFacepiles(void*);
void __cdecl ProcessFriendList(void*);
void __cdecl ProcessMessages(void*);
void __cdecl ProcessUnreadMessages(void*);
@@ -159,22 +162,26 @@ public:
void __cdecl SetAwayMsgWorker(void*);
void __cdecl UpdateAvatarWorker(void*);
void __cdecl SendMsgWorker(void*);
+ void __cdecl SendChatMsgWorker(void*);
void __cdecl SendTypingWorker(void*);
void __cdecl MessagingWorker(void*);
void __cdecl DeleteContactFromServer(void*);
+ void __cdecl AddContactToServer(void*);
// Contacts handling
bool IsMyContact(HANDLE, bool include_chat = false);
HANDLE ContactIDToHContact(std::string);
- HANDLE AddToContactList(facebook_user*, bool dont_check = false);
+ HANDLE AddToContactList(facebook_user*, bool dont_check = false, const char *new_name = "");
void SetAllContactStatuses(int);
// TODO RM: Chats handling
- /*void AddChat(const char *id,const char *name);
- void UpdateChat(const facebook_user &update);
- void AddChatContact(const char *name,const char *nick=0);
- void DeleteChatContact(const char *name);
- void SetChatStatus(int);*/
+ void AddChat(const char *id, const char *name);
+ void UpdateChat(const char *chat_id, const char *id, const char *name, const char *message);
+ bool IsChatContact(const char *chat_id, const char *id);
+ void AddChatContact(const char *chat_id, const char *id, const char *name);
+ void RemoveChatContact(const char *chat_id, const char *id);
+ void SetChatStatus(const char *chat_id, int status);
+ char *GetChatUsers(const char *chat_id);
// Connection client
facebook_client facy; // TODO: Refactor to "client" and make dynamic