summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opt.cpp29
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;