summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-23 16:02:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-23 16:02:12 +0000
commit83810fbdf96dc0a842bf149cfa40749e95b0fe63 (patch)
tree84fde716b669cd10b586279106a1b02b2896088f /protocols/IcqOscarJ/src
parent7060a1f3dcde4355124316e6aab3a4e336812155 (diff)
ICQ:
- version resource extracted to the separate file; - all unicode support options removed due to the obsoleteness - version bump. git-svn-id: http://svn.miranda-ng.org/main/trunk@13776 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src')
-rw-r--r--protocols/IcqOscarJ/src/fam_01service.cpp6
-rw-r--r--protocols/IcqOscarJ/src/icq_constants.h1
-rw-r--r--protocols/IcqOscarJ/src/icq_opts.cpp25
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.cpp5
-rw-r--r--protocols/IcqOscarJ/src/icq_proto.h1
-rw-r--r--protocols/IcqOscarJ/src/init.cpp1
-rw-r--r--protocols/IcqOscarJ/src/resource.h6
-rw-r--r--protocols/IcqOscarJ/src/version.h3
8 files changed, 12 insertions, 36 deletions
diff --git a/protocols/IcqOscarJ/src/fam_01service.cpp b/protocols/IcqOscarJ/src/fam_01service.cpp
index f425543897..948cf1d92d 100644
--- a/protocols/IcqOscarJ/src/fam_01service.cpp
+++ b/protocols/IcqOscarJ/src/fam_01service.cpp
@@ -584,8 +584,7 @@ void CIcqProto::setUserInfo()
#ifdef DBG_CAPMTN
wAdditionalData += 16;
#endif
- if (m_bUtfEnabled)
- wAdditionalData += 16;
+ wAdditionalData += 16; // unicode
#ifdef DBG_NEWCAPS
wAdditionalData += 16;
#endif
@@ -634,8 +633,7 @@ void CIcqProto::setUserInfo()
packShortCapability(&packet, 0x1349); // AIM_CAPS_ICQSERVERRELAY
// Broadcasts the capability to receive UTF8 encoded messages
- if (m_bUtfEnabled)
- packShortCapability(&packet, 0x134E); // CAP_UTF8MSGS
+ packShortCapability(&packet, 0x134E); // CAP_UTF8MSGS
#ifdef DBG_NEWCAPS
// Tells server we understand to new format of caps
diff --git a/protocols/IcqOscarJ/src/icq_constants.h b/protocols/IcqOscarJ/src/icq_constants.h
index 1935cded25..d97e8a4bb5 100644
--- a/protocols/IcqOscarJ/src/icq_constants.h
+++ b/protocols/IcqOscarJ/src/icq_constants.h
@@ -64,7 +64,6 @@
#define DEFAULT_LEGACY_FIX 0
#define DEFAULT_KEEPALIVE_ENABLED 1
#define DEFAULT_AIM_ENABLED 1
-#define DEFAULT_UTF_ENABLED 2 // everything unicode is default
#define DEFAULT_ANSI_CODEPAGE CP_ACP
#define DEFAULT_DCMSG_ENABLED 1 // passive dc messaging is default
#define DEFAULT_TEMPVIS_ENABLED 1 // temporary visible is enabled by default
diff --git a/protocols/IcqOscarJ/src/icq_opts.cpp b/protocols/IcqOscarJ/src/icq_opts.cpp
index d579fcf081..14d9e7b629 100644
--- a/protocols/IcqOscarJ/src/icq_opts.cpp
+++ b/protocols/IcqOscarJ/src/icq_opts.cpp
@@ -331,7 +331,6 @@ static BOOL CALLBACK FillCpCombo(LPSTR str)
/////////////////////////////////////////////////////////////////////////////////////////
-static const UINT icqUnicodeControls[] = { IDC_UTFALL, IDC_UTFSTATIC, IDC_UTFCODEPAGE };
static const UINT icqDCMsgControls[] = { IDC_DCPASSIVE };
static const UINT icqXStatusControls[] = { IDC_XSTATUSAUTO };
static const UINT icqCustomStatusControls[] = { IDC_XSTATUSRESET };
@@ -348,13 +347,9 @@ static INT_PTR CALLBACK DlgProcIcqFeaturesOpts(HWND hwndDlg, UINT msg, WPARAM wP
ppro = (CIcqProto*)lParam;
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
{
- BYTE byData = ppro->getByte("UtfEnabled", DEFAULT_UTF_ENABLED);
- CheckDlgButton(hwndDlg, IDC_UTFENABLE, byData ? BST_CHECKED : BST_UNCHECKED);
- CheckDlgButton(hwndDlg, IDC_UTFALL, byData == 2 ? BST_CHECKED : BST_UNCHECKED);
- icq_EnableMultipleControls(hwndDlg, icqUnicodeControls, SIZEOF(icqUnicodeControls), byData ? TRUE : FALSE);
LoadDBCheckState(ppro, hwndDlg, IDC_TEMPVISIBLE, "TempVisListEnabled", DEFAULT_TEMPVIS_ENABLED);
LoadDBCheckState(ppro, hwndDlg, IDC_SLOWSEND, "SlowSend", DEFAULT_SLOWSEND);
- byData = ppro->getByte("DirectMessaging", DEFAULT_DCMSG_ENABLED);
+ BOOL byData = ppro->getByte("DirectMessaging", DEFAULT_DCMSG_ENABLED);
CheckDlgButton(hwndDlg, IDC_DCENABLE, byData ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_DCPASSIVE, byData == 1 ? BST_CHECKED : BST_UNCHECKED);
icq_EnableMultipleControls(hwndDlg, icqDCMsgControls, SIZEOF(icqDCMsgControls), byData ? TRUE : FALSE);
@@ -389,10 +384,6 @@ static INT_PTR CALLBACK DlgProcIcqFeaturesOpts(HWND hwndDlg, UINT msg, WPARAM wP
case WM_COMMAND:
switch (LOWORD(wParam)) {
- case IDC_UTFENABLE:
- icq_EnableMultipleControls(hwndDlg, icqUnicodeControls, SIZEOF(icqUnicodeControls), IsDlgButtonChecked(hwndDlg, IDC_UTFENABLE));
- OptDlgChanged(hwndDlg);
- break;
case IDC_UTFCODEPAGE:
if (HIWORD(wParam) == CBN_SELCHANGE)
OptDlgChanged(hwndDlg);
@@ -414,16 +405,10 @@ static INT_PTR CALLBACK DlgProcIcqFeaturesOpts(HWND hwndDlg, UINT msg, WPARAM wP
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code) {
case PSN_APPLY:
- if (IsDlgButtonChecked(hwndDlg, IDC_UTFENABLE))
- ppro->m_bUtfEnabled = IsDlgButtonChecked(hwndDlg, IDC_UTFALL) ? 2 : 1;
- else
- ppro->m_bUtfEnabled = 0;
- {
- int i = SendDlgItemMessage(hwndDlg, IDC_UTFCODEPAGE, CB_GETCURSEL, 0, 0);
- ppro->m_wAnsiCodepage = (WORD)SendDlgItemMessage(hwndDlg, IDC_UTFCODEPAGE, CB_GETITEMDATA, (WPARAM)i, 0);
- ppro->setWord("AnsiCodePage", ppro->m_wAnsiCodepage);
- }
- ppro->setByte("UtfEnabled", ppro->m_bUtfEnabled);
+ int i = SendDlgItemMessage(hwndDlg, IDC_UTFCODEPAGE, CB_GETCURSEL, 0, 0);
+ ppro->m_wAnsiCodepage = (WORD)SendDlgItemMessage(hwndDlg, IDC_UTFCODEPAGE, CB_GETITEMDATA, (WPARAM)i, 0);
+ ppro->setWord("AnsiCodePage", ppro->m_wAnsiCodepage);
+
ppro->m_bTempVisListEnabled = (BYTE)IsDlgButtonChecked(hwndDlg, IDC_TEMPVISIBLE);
ppro->setByte("TempVisListEnabled", ppro->m_bTempVisListEnabled);
StoreDBCheckState(ppro, hwndDlg, IDC_SLOWSEND, "SlowSend");
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp
index a3c44e208a..5c5852e375 100644
--- a/protocols/IcqOscarJ/src/icq_proto.cpp
+++ b/protocols/IcqOscarJ/src/icq_proto.cpp
@@ -1270,10 +1270,7 @@ int __cdecl CIcqProto::SendMsg(MCONTACT hContact, int, const char* pszSrc)
WORD wRecipientStatus = getContactStatus(hContact);
BOOL plain_ascii = IsUSASCII(puszText, mir_strlen(puszText));
-
- BOOL oldAnsi = plain_ascii || !m_bUtfEnabled ||
- !CheckContactCapabilities(hContact, CAPF_UTF) ||
- !getByte(hContact, "UnicodeSend", 1);
+ BOOL oldAnsi = plain_ascii || !CheckContactCapabilities(hContact, CAPF_UTF) || !getByte(hContact, "UnicodeSend", 1);
if (m_bTempVisListEnabled && m_iStatus == ID_STATUS_INVISIBLE)
makeContactTemporaryVisible(hContact); // make us temporarily visible to contact
diff --git a/protocols/IcqOscarJ/src/icq_proto.h b/protocols/IcqOscarJ/src/icq_proto.h
index f0e7be49f6..085d91cac5 100644
--- a/protocols/IcqOscarJ/src/icq_proto.h
+++ b/protocols/IcqOscarJ/src/icq_proto.h
@@ -147,7 +147,6 @@ struct CIcqProto : public PROTO<CIcqProto>
BYTE m_bSecureConnection;
BYTE m_bLegacyFix;
BYTE m_bAimEnabled;
- BYTE m_bUtfEnabled;
WORD m_wAnsiCodepage;
BYTE m_bDCMsgEnabled;
BYTE m_bTempVisListEnabled;
diff --git a/protocols/IcqOscarJ/src/init.cpp b/protocols/IcqOscarJ/src/init.cpp
index d80eba68a2..735b17bf80 100644
--- a/protocols/IcqOscarJ/src/init.cpp
+++ b/protocols/IcqOscarJ/src/init.cpp
@@ -170,7 +170,6 @@ void CIcqProto::UpdateGlobalSettings()
m_bSecureLogin = getByte("SecureLogin", DEFAULT_SECURE_LOGIN);
m_bLegacyFix = getByte("LegacyFix", DEFAULT_LEGACY_FIX);
m_bAimEnabled = getByte("AimEnabled", DEFAULT_AIM_ENABLED);
- m_bUtfEnabled = getByte("UtfEnabled", DEFAULT_UTF_ENABLED);
m_wAnsiCodepage = getWord("AnsiCodePage", DEFAULT_ANSI_CODEPAGE);
m_bDCMsgEnabled = getByte("DirectMessaging", DEFAULT_DCMSG_ENABLED);
m_bTempVisListEnabled = getByte("TempVisListEnabled", DEFAULT_TEMPVIS_ENABLED);
diff --git a/protocols/IcqOscarJ/src/resource.h b/protocols/IcqOscarJ/src/resource.h
index e2c589d526..f149baf996 100644
--- a/protocols/IcqOscarJ/src/resource.h
+++ b/protocols/IcqOscarJ/src/resource.h
@@ -1,6 +1,6 @@
//{{NO_DEPENDENCIES}}
-// Microsoft Developer Studio generated include file.
-// Used by resources.rc
+// Microsoft Visual C++ generated include file.
+// Used by D:\miranda-ng\protocols\IcqOscarJ\res\resources.rc
//
#define IDI_ICQ 101
#define IDS_IDENTIFY 102
@@ -47,12 +47,10 @@
#define IDC_XMSG_STATIC 1007
#define IDC_SSL 1008
#define IDC_MD5LOGIN 1009
-#define IDC_UTFENABLE 1010
#define IDC_XTITLE 1010
#define IDC_LEGACY 1010
#define IDC_KEEPALIVE 1011
#define IDC_XMSG 1011
-#define IDC_UTFALL 1012
#define IDC_UTFSTATIC 1013
#define IDC_UTFCODEPAGE 1014
#define IDC_PW 1015
diff --git a/protocols/IcqOscarJ/src/version.h b/protocols/IcqOscarJ/src/version.h
index 45faabfcc8..3b2d5f872e 100644
--- a/protocols/IcqOscarJ/src/version.h
+++ b/protocols/IcqOscarJ/src/version.h
@@ -1,11 +1,12 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 3
-#define __BUILD_NUM 3
+#define __BUILD_NUM 4
#include <stdver.h>
#define __PLUGIN_NAME "IcqOscarJ protocol"
+#define __FILENAME "ICQ.dll"
#define __DESCRIPTION "ICQ protocol support for Miranda NG."
#define __AUTHOR "Joe Kucera, Bio, Martin \xd6" "berg, Richard Hughes, Jon Keating, etc."
#define __AUTHOREMAIL "jokusoftware@miranda-im.org"