summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-06-19 20:13:00 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-06-19 20:13:00 +0000
commit119f9233647a964c46be1c0bc0cf2829361a688e (patch)
tree4e08e9f569c54284acef57755daaebb5d5de2565 /protocols/Skype/src/skype_proto.h
parentbdfdc655113dba220c066ac1de5998697006cb44 (diff)
Skype:
- added bookmarks for chat rooms (contact menu, srmm button bar, bookmark list window) - added "ignore command" for contact - added "block command" for contact (contact removed from clist and ignored) - changed icons git-svn-id: http://svn.miranda-ng.org/main/trunk@5047 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index 71c1d8ca4a..f60d88faa9 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -275,6 +275,7 @@ protected:
// chat
bool IsChatRoom(HANDLE hContact);
+ bool IsChatRoomBookmarked(HANDLE hContact);
HANDLE GetChatRoomByCid(const wchar_t *cid);
HANDLE AddChatRoom(CConversation::Ref conversation);
@@ -291,6 +292,7 @@ protected:
void StartChat();
void StartChat(StringList &invitedContacts);
void InviteToChatRoom(HANDLE hContact);
+ void BookmarkChatRoom(HANDLE hContact);
void CloseAllChatSessions();
@@ -430,8 +432,7 @@ protected:
// menus
HGENMENU m_hMenuRoot;
static HANDLE hChooserMenu;
- static HANDLE contactMenuItems[CMI_TEMS_COUNT];
- static HANDLE contactMenuServices[CMI_TEMS_COUNT];
+ static std::map<int, HANDLE> contactMenuItems;
virtual int __cdecl RequestAuth(WPARAM, LPARAM);
virtual int __cdecl GrantAuth(WPARAM, LPARAM);
@@ -441,8 +442,14 @@ protected:
static INT_PTR MenuChooseService(WPARAM wParam, LPARAM lParam);
+ INT_PTR __cdecl IgnoreCommand(WPARAM, LPARAM);
+ INT_PTR __cdecl BlockCommand(WPARAM, LPARAM);
+
INT_PTR __cdecl InviteCommand(WPARAM, LPARAM);
+ INT_PTR __cdecl SetBookmarkCommand(WPARAM, LPARAM);
+ INT_PTR __cdecl ShowBookmarksCommand(WPARAM, LPARAM);
+
static int PrebuildContactMenu(WPARAM wParam, LPARAM lParam);
int OnPrebuildContactMenu(WPARAM wParam, LPARAM);
@@ -471,6 +478,8 @@ protected:
static INT_PTR CALLBACK ContactSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
static INT_PTR CALLBACK HomeSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK SkypeBookmarksProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+
// skype runtime
char *LoadKeyPair();
int StartSkypeRuntime(const wchar_t *profileName);
@@ -488,6 +497,4 @@ protected:
int __cdecl OnMessagePreCreate(WPARAM, LPARAM);
int __cdecl OnTabSRMMButtonPressed(WPARAM, LPARAM);
-
- void OnConversationChanged(const ConversationRef &conversation, int prop);
};