From 17ee088fc01ea6807154f0d43d10fbf26777baa6 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Fri, 29 Jul 2016 06:41:56 +0000 Subject: VKontakte: rename string variables (p)tsz* -> (p)wsz* rename struct TCHAR_ PARAM -> WCHAR_ PARAM change mir_sntprintf -> mir_snwprintf, LPCTSTR -> LPCWSTR, setTString -> setWString, db_set_ts(a)-> db_set_ws(a) and etc. git-svn-id: http://svn.miranda-ng.org/main/trunk@17141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_struct.h | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'protocols/VKontakte/src/vk_struct.h') diff --git a/protocols/VKontakte/src/vk_struct.h b/protocols/VKontakte/src/vk_struct.h index 19e320eb67..54813f388f 100644 --- a/protocols/VKontakte/src/vk_struct.h +++ b/protocols/VKontakte/src/vk_struct.h @@ -70,14 +70,14 @@ struct CHAR_PARAM : public PARAM }; AsyncHttpRequest* operator<<(AsyncHttpRequest*, const CHAR_PARAM&); -struct TCHAR_PARAM : public PARAM +struct WCHAR_PARAM : public PARAM { - LPCTSTR tszValue; - __forceinline TCHAR_PARAM(LPCSTR _name, LPCTSTR _value) : - PARAM(_name), tszValue(_value) + LPCWSTR wszValue; + __forceinline WCHAR_PARAM(LPCSTR _name, LPCWSTR _value) : + PARAM(_name), wszValue(_value) {} }; -AsyncHttpRequest* operator<<(AsyncHttpRequest*, const TCHAR_PARAM&); +AsyncHttpRequest* operator<<(AsyncHttpRequest*, const WCHAR_PARAM&); struct CVkFileUploadParam : public MZeroedObject { enum VKFileType { typeInvalid, typeImg, typeAudio, typeDoc, typeNotSupported }; @@ -141,7 +141,7 @@ struct CVkChatMessage : public MZeroedObject int m_mid, m_uid, m_date; bool m_bHistory, m_bIsAction; - ptrW m_tszBody; + ptrW m_wszBody; }; struct CVkChatUser : public MZeroedObject @@ -154,7 +154,7 @@ struct CVkChatUser : public MZeroedObject int m_uid; bool m_bDel, m_bUnknown; - ptrW m_tszNick; + ptrW m_wszNick; }; struct CVkChatInfo : public MZeroedObject @@ -170,12 +170,12 @@ struct CVkChatInfo : public MZeroedObject int m_chatid, m_admin_id; bool m_bHistoryRead; - ptrW m_tszTopic, m_tszId; + ptrW m_wszTopic, m_wszId; MCONTACT m_hContact; OBJLIST m_users; OBJLIST m_msgs; - CVkChatUser* GetUserById(LPCTSTR); + CVkChatUser* GetUserById(LPCWSTR); CVkChatUser* GetUserById(int user_id); }; @@ -185,27 +185,27 @@ struct CVkUserInfo : public MZeroedObject { m_bIsGroup(false) {} - CVkUserInfo(LONG _UserId, bool _bIsGroup, CMString& _tszUserNick, CMString& _tszLink, MCONTACT _hContact = NULL) : + CVkUserInfo(LONG _UserId, bool _bIsGroup, CMString& _wszUserNick, CMString& _wszLink, MCONTACT _hContact = NULL) : m_UserId(_UserId), m_bIsGroup(_bIsGroup), - m_tszUserNick(_tszUserNick), - m_tszLink(_tszLink), + m_wszUserNick(_wszUserNick), + m_wszLink(_wszLink), m_hContact(_hContact) {} LONG m_UserId; MCONTACT m_hContact; - CMString m_tszUserNick; - CMString m_tszLink; + CMString m_wszUserNick; + CMString m_wszLink; bool m_bIsGroup; }; enum VKObjType { vkNull, vkPost, vkPhoto, vkVideo, vkComment, vkTopic, vkUsers, vkCopy, vkInvite }; struct CVKNotification { - wchar_t *ptszType; + wchar_t *pwszType; VKObjType vkParent, vkFeedback; - wchar_t *ptszTranslate; + wchar_t *pwszTranslate; }; struct CVKNewsItem : public MZeroedObject { @@ -218,14 +218,14 @@ struct CVKNewsItem : public MZeroedObject { vkParentType(vkNull) {} - CMString tszId; + CMString wszId; time_t tDate; CVkUserInfo *vkUser; - CMString tszText; - CMString tszLink; - CMString tszType; - CMString tszPopupTitle; - CMString tszPopupText; + CMString wszText; + CMString wszLink; + CMString wszType; + CMString wszPopupTitle; + CMString wszPopupText; VKObjType vkFeedbackType, vkParentType; bool bIsGroup; bool bIsRepost; @@ -237,7 +237,7 @@ enum BBCSupport : BYTE { bbcNo, bbcBasic, bbcAdvanced }; struct CVKBBCItem { VKBBCType vkBBCType; BBCSupport vkBBCSettings; - wchar_t *ptszTempate; + wchar_t *pwszTempate; }; struct CVKChatContactTypingParam { @@ -252,7 +252,7 @@ struct CVKChatContactTypingParam { struct CVKInteres { const char *szField; - wchar_t *ptszTranslate; + wchar_t *pwszTranslate; }; struct CVKLang { @@ -351,9 +351,9 @@ struct CVKOptions { CMOption iInvisibleInterval; CMOption iMaxFriendsCount; - CMOption ptszDefaultGroup; - CMOption ptszReturnChatMessage; - CMOption ptszVKLang; + CMOption pwszDefaultGroup; + CMOption pwszReturnChatMessage; + CMOption pwszVKLang; CVKOptions(PROTO_INTERFACE *proto); -- cgit v1.2.3