summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-07-01 19:00:11 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-07-01 19:00:11 +0000
commit3acc3adbcba5afbb0527a4385e6b2f0c63e960da (patch)
tree89cab2a7cf8fe3ae42a984eb0a8a02c4209998c0 /protocols/Skype/src/skype_proto.h
parentb365a9ca74456f3a3962161ec6564244c35b1fb9 (diff)
Skype:
- removed ignore command - block command behavior like in official client now - added blocked list in account options - added history sync Note: this commit may contain non-working code git-svn-id: http://svn.miranda-ng.org/main/trunk@5203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index fe310eb913..6fc0d128e7 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -19,6 +19,19 @@ struct ReadMessageParam
CMessage::TYPE msgType;
};
+struct BlockParam
+{
+ HANDLE hContact;
+ CSkypeProto *ppro;
+ bool remove;
+ bool abuse;
+
+ BlockParam(HANDLE hContact, CSkypeProto *ppro) : ppro(ppro)
+ {
+ this->hContact = hContact;
+ }
+};
+
struct ChatRoomParam
{
wchar_t *id;
@@ -282,6 +295,13 @@ protected:
void OnMessageSent(const ConversationRef &conversation, const MessageRef &message);
void OnMessageReceived(const ConversationRef &conversation, const MessageRef &message);
+ void SyncMessageHystory(const ConversationRef &conversation, const time_t timestamp);
+
+ int __cdecl SyncLastDayHistoryCommand(WPARAM wParam, LPARAM lParam);
+ int __cdecl SyncLastWeekHistoryCommand(WPARAM wParam, LPARAM lParam);
+ int __cdecl SyncLastMonthHistoryCommand(WPARAM wParam, LPARAM lParam);
+ int __cdecl SyncLast3MonthHistoryCommand(WPARAM wParam, LPARAM lParam);
+
// contacts
void OnContactsEvent(const ConversationRef &conversation, const MessageRef &message);
void OnContactsSent(const ConversationRef &conversation, const MessageRef &message);
@@ -456,12 +476,12 @@ protected:
static int PrebuildContactMenu(WPARAM wParam, LPARAM lParam);
int OnPrebuildContactMenu(WPARAM wParam, LPARAM);
- // ignore list
- int __cdecl IgnoreCommand(WPARAM, LPARAM);
+ // blocked list
int __cdecl BlockCommand(WPARAM, LPARAM);
- INT_PTR __cdecl OpenIgnoreListCommand(WPARAM, LPARAM);
+ INT_PTR __cdecl OpenBlockedListCommand(WPARAM, LPARAM);
- static INT_PTR CALLBACK IgnoreListWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK SkypeBlockProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+ static INT_PTR CALLBACK SkypeBlockedOptionsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
// database
bool IsMessageInDB(HANDLE hContact, DWORD timestamp, SEBinary &guid, int flag = 0);