summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-29 09:59:36 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-29 09:59:36 +0000
commit16634865ad22aa865e79930e5c4fb570627ef69a (patch)
tree70ab4ed538cda6828c9da33e7e90e09c9d88d9df /protocols/VKontakte/src/vk_proto.h
parent457202107f1990d8da73db742fbe0f6d3d6d9fc2 (diff)
VKontakte:
add filtering for notifications rework processing for notifications (output formating) version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 7355130c1c..96ff1b0123 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -194,6 +194,7 @@ struct CVKNewsItem : public MZeroedObject {
tDate = NULL;
vkUser = NULL;
bIsGroup = bIsRepost = false;
+ vkFeedbackType = vkParentType = vkNull;
};
CMString tszId;
@@ -202,6 +203,7 @@ struct CVKNewsItem : public MZeroedObject {
CMString tszText;
CMString tszLink;
CMString tszType;
+ VKObjType vkFeedbackType, vkParentType;
bool bIsGroup;
bool bIsRepost;
};
@@ -356,14 +358,15 @@ struct CVkProto : public PROTO<CVkProto>
CVKNewsItem* GetVkNewsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers, bool isRepost = false);
- CMString GetVkNotificationsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers, time_t &tDate);
+ CVKNewsItem* GetVkNotificationsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers);
CMString GetVkFeedback(JSONNODE *pFeedback, VKObjType vkFeedbackType, OBJLIST<CVkUserInfo> &vkUsers, CVkUserInfo *vkUser);
- CMString GetVkParent(JSONNODE *pParent, VKObjType vkParentType, TCHAR *ptszReply = NULL);
+ CVKNewsItem* GetVkParent(JSONNODE *pParent, VKObjType vkParentType, TCHAR *ptszReplyText = NULL, TCHAR *ptszReplyLink = NULL);
void RetrieveUnreadNews(time_t tLastNewsTime);
void OnReceiveUnreadNews(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void RetrieveUnreadNotifications(time_t tLastNotificationsTime);
+ bool FilterNotification(CVKNewsItem* vkNotificationItem);
void OnReceiveUnreadNotifications(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void RetrieveUnreadEvents();
void NewsClearHistory();
@@ -401,6 +404,7 @@ struct CVkProto : public PROTO<CVkProto>
CMString SpanVKNotificationType(CMString& tszType, VKObjType& vkFeedback, VKObjType& vkParent);
CMString SetBBCString(TCHAR *tszString, VKBBCType, TCHAR *tszAddString = NULL);
+ CMString& ClearFormatNick(CMString& tszText);
CMString GetAttachmentDescr(JSONNODE*);
@@ -562,7 +566,11 @@ private:
m_bNewsSourcePages,
m_bNewsSourceFollowing,
m_bNewsSourceIncludeBanned,
- m_bNewsSourceNoReposts;
+ m_bNewsSourceNoReposts,
+ m_bNotificationFilterComments,
+ m_bNotificationFilterLikes,
+ m_bNotificationFilterReposts,
+ m_bNotificationFilterMentions;
int m_iNewsInterval, m_iNotificationsInterval, m_iNewsAutoClearHistoryInterval;