summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-12-31 04:44:21 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-12-31 04:44:21 +0000
commit5de1b2c939a26695aaab99540fe3d37527512cb3 (patch)
treea27e4c60a26c0f28d5b6321fce6564c3c8cb9239 /protocols/VKontakte/src/vk_proto.cpp
parent4f357958b94ad9e0637fcfd7c9b83cf24803c4cb (diff)
VKontakte:
code cleanup add hidden option for max photo count on loading news git-svn-id: http://svn.miranda-ng.org/main/trunk@11690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index c2a266eac5..cdba6b95a4 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -69,20 +69,22 @@ CVkProto::CVkProto(const char *szModuleName, const TCHAR *ptszUserName) :
m_bRemoveFromFrendlist = getBool("RemoveFromFrendlistOnBanUser", false);
m_bRemoveFromClist = getBool("RemoveFromClistOnBanUser", false);
m_bPopUpSyncHistory = getBool("PopUpSyncHistory", false);
- m_iMarkMessageReadOn = getByte("MarkMessageReadOn", 0);
+ m_iMarkMessageReadOn = (MarkMsgReadOn)getByte("MarkMessageReadOn", markOnRead);
m_bStikersAsSmyles = getBool("StikersAsSmyles", false);
m_bUserForceOnlineOnActivity = getBool("UserForceOnlineOnActivity", false);
- m_iMusicSendMetod = getByte("MusicSendMetod", sendBroadcastOnly);
- m_iSyncHistoryMetod = getByte("SyncHistoryMetod", syncOff);
+ m_iMusicSendMetod = (MusicSendMetod)getByte("MusicSendMetod", sendBroadcastOnly);
+ m_iSyncHistoryMetod = (SyncHistoryMetod)getByte("SyncHistoryMetod", syncOff);
CMStringA szListeningTo(m_szModuleName);
szListeningTo += "Enabled";
db_set_b(NULL, "ListeningTo", szListeningTo.GetBuffer(), m_iMusicSendMetod == 0 ? 0 : 1);
+
m_bNewsEnabled = getBool("NewsEnabled", false);
+ m_iMaxLoadNewsPhoto = getByte("MaxLoadNewsPhoto", 5);
m_bNotificationsEnabled = getBool("NotificationsEnabled", false);
m_bSpecialContactAlwaysEnabled = getBool("SpecialContactAlwaysEnabled", false);
m_iNewsInterval = getDword("NewsInterval", 15);
m_iNotificationsInterval = getDword("NotificationsInterval", 1);
- m_iIMGBBCSupport = getByte("IMGBBCSupport", 0);
+ m_iIMGBBCSupport = (IMGBBCSypport)getByte("IMGBBCSupport", 0);
m_iBBCForNews = (BBCSupport)getByte("BBCForNews", 1);
m_iBBCForAttachments = (BBCSupport)getByte("BBCForAttachments", 1);
m_bUseBBCOnAttacmentsAsNews = getBool("UseBBCOnAttacmentsAsNews", true);
@@ -308,7 +310,6 @@ void CVkProto::InitMenus()
mi.ptszName = LPGENT("for all time");
mi.pszService = szService;
g_hContactHistoryMenuItems[CHMI_GETALLSERVERHISTORY] = Menu_AddContactMenuItem(&mi);
-
}
int CVkProto::OnPreBuildContactMenu(WPARAM hContact, LPARAM)