diff options
Diffstat (limited to 'FacebookRM/proto.h')
-rw-r--r-- | FacebookRM/proto.h | 23 |
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
|