diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-04-01 16:47:06 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-04-01 16:47:06 +0000 |
commit | fd275fd6d626d00d2b53f2e5236efa41090eaa72 (patch) | |
tree | dc0d1bf28b66ed5814d8c0ac4f2c51d45a44697e /protocols/JabberG/src | |
parent | 3ad985dea1cd2f37d59cec12618384ddc5c199bb (diff) |
- Jabber: Odnklassniki.ru preset added
git-svn-id: http://svn.miranda-ng.org/main/trunk@4274 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 3c6683eb26..9915f17782 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -1670,7 +1670,7 @@ public: }
protected:
- enum { ACC_PUBLIC, ACC_TLS, ACC_SSL, ACC_GTALK, ACC_LJTALK, ACC_FBOOK, ACC_VK, ACC_SMS };
+ enum { ACC_PUBLIC, ACC_TLS, ACC_SSL, ACC_GTALK, ACC_LJTALK, ACC_FBOOK, ACC_VK, ACC_OK, ACC_SMS };
void OnInitDialog()
{
@@ -1721,6 +1721,7 @@ protected: m_cbType.AddString(TranslateT("LiveJournal Talk"), ACC_LJTALK);
m_cbType.AddString(TranslateT("Facebook Chat"), ACC_FBOOK);
m_cbType.AddString(TranslateT("Vkontakte"), ACC_VK);
+ m_cbType.AddString(TranslateT("Odnoklassniki"), ACC_OK);
m_cbType.AddString(TranslateT("S.ms"), ACC_SMS);
m_cbServer.GetTextA(server, SIZEOF(server));
@@ -1751,6 +1752,11 @@ protected: m_cbType.SetCurSel(ACC_VK);
m_canregister = false;
}
+ else if ( !lstrcmpA(manualServer, "xmpp.odnoklassniki.ru"))
+ {
+ m_cbType.SetCurSel(ACC_OK);
+ m_canregister = false;
+ }
else if ( !lstrcmpA(server, "S.ms"))
{
m_cbType.SetCurSel(ACC_SMS);
@@ -1841,6 +1847,7 @@ protected: m_proto->m_options.IgnoreRosterGroups = TRUE;
case ACC_VK:
+ case ACC_OK:
case ACC_PUBLIC:
m_proto->m_options.UseSSL = m_proto->m_options.UseTLS = FALSE;
break;
@@ -2022,6 +2029,7 @@ private: void setupLJ();
void setupFB();
void setupVK();
+ void setupOK();
void setupSMS();
void RefreshServers(HXML node);
static void QueryServerListThread(void *arg);
@@ -2060,6 +2068,7 @@ void CJabberDlgAccMgrUI::setupConnection(int type) case ACC_LJTALK: setupLJ(); break;
case ACC_FBOOK: setupFB(); break;
case ACC_VK: setupVK(); break;
+ case ACC_OK: setupOK(); break;
case ACC_SMS: setupSMS(); break;
}
}
@@ -2182,6 +2191,24 @@ void CJabberDlgAccMgrUI::setupVK() m_btnRegister.Disable();
}
+void CJabberDlgAccMgrUI::setupOK()
+{
+ m_canregister = false;
+ m_gotservers = true;
+ m_cbServer.ResetContent();
+ m_cbServer.SetTextA("odnoklassniki.ru");
+ m_cbServer.AddStringA("odnoklassniki.ru");
+ m_chkManualHost.SetState(BST_UNCHECKED);
+ m_txtManualHost.SetTextA("xmpp.odnoklassniki.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;
|