diff options
author | Konstantin Nikulin <apollo2k4@narod.ru> | 2016-03-03 18:25:42 +0000 |
---|---|---|
committer | Konstantin Nikulin <apollo2k4@narod.ru> | 2016-03-03 18:25:42 +0000 |
commit | 7f66f7bdc96037aa9cc58f9afbc7e8c522c58296 (patch) | |
tree | 804b679632b34e30a2ae8decc0cee1c18de794ec /protocols/JabberG | |
parent | ff8f1fa4f39c1b670d8bee1d0fc93a4d9c95e973 (diff) |
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
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
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;
|