From 7f66f7bdc96037aa9cc58f9afbc7e8c522c58296 Mon Sep 17 00:00:00 2001 From: Konstantin Nikulin Date: Thu, 3 Mar 2016 18:25:42 +0000 Subject: yet another try to add Yandex presets from jabber git-svn-id: http://svn.miranda-ng.org/main/trunk@16411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_opt.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 36e2a7bbec..cde21f5da6 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -1728,6 +1728,7 @@ protected: case ACC_TLS: case ACC_LJTALK: + case ACC_YANDEX: case ACC_SMS: m_proto->m_options.UseSSL = FALSE; m_proto->m_options.UseTLS = TRUE; @@ -1869,6 +1870,7 @@ private: void setupGoogle(); void setupLJ(); void setupOK(); + void setupYA(); void setupSMS(); void RefreshServers(HXML node); static void QueryServerListThread(void *arg); @@ -1906,6 +1908,7 @@ void CJabberDlgAccMgrUI::setupConnection(int type) case ACC_GTALK: setupGoogle(); break; case ACC_LJTALK: setupLJ(); break; case ACC_OK: setupOK(); break; + case ACC_YANDEX: setupYA(); break; case ACC_SMS: setupSMS(); break; } } @@ -2010,6 +2013,24 @@ void CJabberDlgAccMgrUI::setupOK() m_btnRegister.Disable(); } +void CJabberDlgAccMgrUI::setupYA() +{ + m_canregister = false; + m_gotservers = true; + m_cbServer.ResetContent(); + m_cbServer.SetTextA("ya.ru"); + m_cbServer.AddStringA("ya.ru"); + m_chkManualHost.SetState(BST_UNCHECKED); + m_txtManualHost.SetTextA("xmpp.yandex.ru"); + m_txtPort.SetInt(5222); + + m_cbServer.Disable(); + m_chkManualHost.Disable(); + m_txtManualHost.Disable(); + m_txtPort.Disable(); + m_btnRegister.Disable(); +} + void CJabberDlgAccMgrUI::setupSMS() { m_canregister = false; -- cgit v1.2.3