summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-30 11:03:01 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-30 11:03:01 +0000
commit1e96c8f6505891260c9fc48d719ec90060a2560c (patch)
tree01fac1cfac8b7d01999adeced09533fababd7404 /protocols/VKontakte/src/vk_proto.h
parent3d805c9681df6ed8fd6fb1e6eef7572d554bed66 (diff)
VKontakte:
add separate options for BBCode on attachments version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11679 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 4bbec6bd26..cd3bf38d10 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -209,11 +209,11 @@ struct CVKNewsItem : public MZeroedObject {
};
enum VKBBCType { vkbbcB, vkbbcI, vkbbcS, vkbbcU, vkbbcUrl, vkbbcSize, vkbbcColor };
-enum BBCForNewsSupport { bbcNo, bbcBasic, bbcAdvanced };
+enum BBCSupport { bbcNo, bbcBasic, bbcAdvanced };
struct CVKBBCItem {
VKBBCType vkBBCType;
- BBCForNewsSupport vkBBCSettings;
+ BBCSupport vkBBCSettings;
TCHAR *ptszTempate;
};
@@ -354,8 +354,7 @@ struct CVkProto : public PROTO<CVkProto>
CVkUserInfo* GetVkUserInfo(LONG iUserId, OBJLIST<CVkUserInfo> &vkUsers);
void CreateVkUserInfoList(OBJLIST<CVkUserInfo> &vkUsers, JSONNODE *pResponse);
- CMString GetVkPhotoItem(JSONNODE *pPhotoItem);
-
+
CVKNewsItem* GetVkNewsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers, bool isRepost = false);
CVKNewsItem* GetVkNotificationsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers);
@@ -403,10 +402,11 @@ struct CVkProto : public PROTO<CVkProto>
char* GetStickerId(const char* Msg, int& stickerid);
CMString SpanVKNotificationType(CMString& tszType, VKObjType& vkFeedback, VKObjType& vkParent);
- CMString SetBBCString(TCHAR *tszString, VKBBCType, TCHAR *tszAddString = NULL);
+ CMString GetVkPhotoItem(JSONNODE *pPhotoItem, BBCSupport iBBC);
+ CMString SetBBCString(TCHAR *tszString, BBCSupport iBBC, VKBBCType bbcType, TCHAR *tszAddString = NULL);
CMString& ClearFormatNick(CMString& tszText);
- CMString GetAttachmentDescr(JSONNODE*);
+ CMString GetAttachmentDescr(JSONNODE*, BBCSupport iBBC = bbcNo);
//====================================================================================
@@ -570,7 +570,9 @@ private:
m_bNotificationFilterComments,
m_bNotificationFilterLikes,
m_bNotificationFilterReposts,
- m_bNotificationFilterMentions;
+ m_bNotificationFilterMentions,
+ m_bUseBBCOnAttacmentsAsNews;
+
int m_iNewsInterval, m_iNotificationsInterval, m_iNewsAutoClearHistoryInterval;
@@ -585,7 +587,8 @@ private:
enum IMGBBCSypport { imgNo, imgFullSize, imgPreview130, imgPreview604 };
int m_iIMGBBCSupport;
- int m_iBBCForNews;
+ BBCSupport m_iBBCForNews;
+ BBCSupport m_iBBCForAttachments;
LONG m_myUserId;
ptrT m_defaultGroup;