diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-18 04:17:30 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-18 04:17:30 +0000 |
commit | 0220c65f60daedd91dc8db724e73094d3d88db99 (patch) | |
tree | e004c80eaa10a783cf4f675949f8132f25ebae0d /protocols/VKontakte/src/misc.cpp | |
parent | 871542c371272de467765e829d8400dc56b19db0 (diff) |
VKontakte:
vk feeds support (notifications) – part 3
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@11498 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index eba3462555..05d0b6483b 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -631,3 +631,44 @@ int CVkProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
}
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+void CVkProto::SpanVKNotificationType(CMString& tszType, VKObjType& vkFeedback, VKObjType& vkParent)
+{
+ CVkNotification vkNotification[] = {
+ { _T("follow"), vkNull, vkUsers },
+ { _T("friend_accepted"), vkNull, vkUsers },
+ { _T("mention"), vkNull, vkPost },
+ { _T("mention_comments"), vkPost, vkComment },
+ { _T("wall"), vkNull, vkPost },
+ { _T("wall_publish"), vkNull, vkPost },
+ { _T("comment_post"), vkPost, vkComment },
+ { _T("comment_photo"), vkPhoto, vkComment },
+ { _T("comment_video"), vkVideo, vkComment },
+ { _T("reply_comment"), vkComment, vkComment },
+ { _T("reply_comment_photo"), vkComment, vkComment },
+ { _T("reply_comment_video"), vkComment, vkComment },
+ { _T("reply_topic"), vkTopic, vkComment },
+ { _T("like_post"), vkPost, vkUsers },
+ { _T("like_comment"), vkComment, vkUsers },
+ { _T("like_photo"), vkPhoto, vkUsers },
+ { _T("like_video"), vkVideo, vkUsers },
+ { _T("like_comment_photo"), vkComment, vkUsers },
+ { _T("like_comment_video"), vkComment, vkUsers },
+ { _T("like_comment_topic"), vkComment, vkUsers },
+ { _T("copy_post"), vkPost, vkCopy },
+ { _T("copy_photo"), vkPhoto, vkCopy },
+ { _T("copy_video"), vkVideo, vkCopy },
+ { _T("mention_comment_photo"), vkPhoto, vkComment },
+ { _T("mention_comment_video"), vkVideo, vkComment }
+ };
+
+ vkFeedback = vkParent = vkNull;
+ for (int i = 0; i < SIZEOF(vkNotification); i++)
+ if (tszType == vkNotification[i].tszType) {
+ vkFeedback = vkNotification[i].vkFeedback;
+ vkParent = vkNotification[i].vkParent;
+ break;
+ }
+}
\ No newline at end of file |