diff options
Diffstat (limited to 'protocols/Gadu-Gadu')
-rw-r--r-- | protocols/Gadu-Gadu/gadugadu.vcxproj | 19 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/gadugadu.vcxproj.filters | 53 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/res/resource.rc | 16 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/core.cpp | 4 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg.cpp | 8 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.h | 2 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/keepalive.cpp | 16 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/options.cpp | 9 | ||||
-rw-r--r-- | protocols/Gadu-Gadu/src/resource.h | 5 |
10 files changed, 91 insertions, 43 deletions
diff --git a/protocols/Gadu-Gadu/gadugadu.vcxproj b/protocols/Gadu-Gadu/gadugadu.vcxproj index dc2e58ea69..d2a315d479 100644 --- a/protocols/Gadu-Gadu/gadugadu.vcxproj +++ b/protocols/Gadu-Gadu/gadugadu.vcxproj @@ -142,4 +142,23 @@ <ResourceCompile Include="res\resource.rc" /> <ResourceCompile Include="res\version.rc" /> </ItemGroup> + <ItemGroup> + <Image Include="res\block.ico" /> + <Image Include="res\clear_ignored_conference.ico" /> + <Image Include="res\conference.ico" /> + <Image Include="res\delete.ico" /> + <Image Include="res\export_list_to_server.ico" /> + <Image Include="res\export_list_to_txt_file.ico" /> + <Image Include="res\gg.ico" /> + <Image Include="res\image.ico" /> + <Image Include="res\import_list_from_server.ico" /> + <Image Include="res\import_list_from_txt_file.ico" /> + <Image Include="res\list.ico" /> + <Image Include="res\next.ico" /> + <Image Include="res\previous.ico" /> + <Image Include="res\remove_list_from_server.ico" /> + <Image Include="res\save.ico" /> + <Image Include="res\sessions.ico" /> + <Image Include="res\settings.ico" /> + </ItemGroup> </Project>
\ No newline at end of file diff --git a/protocols/Gadu-Gadu/gadugadu.vcxproj.filters b/protocols/Gadu-Gadu/gadugadu.vcxproj.filters index e7a60dff41..fba207aa9c 100644 --- a/protocols/Gadu-Gadu/gadugadu.vcxproj.filters +++ b/protocols/Gadu-Gadu/gadugadu.vcxproj.filters @@ -203,4 +203,57 @@ <Filter>Resource Files</Filter> </ResourceCompile> </ItemGroup> + <ItemGroup> + <Image Include="res\gg.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\import_list_from_server.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\import_list_from_txt_file.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\remove_list_from_server.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\export_list_to_server.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\export_list_to_txt_file.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\settings.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\list.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\block.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\previous.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\next.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\image.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\save.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\delete.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\conference.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\clear_ignored_conference.ico"> + <Filter>Resource Files</Filter> + </Image> + <Image Include="res\sessions.ico"> + <Filter>Resource Files</Filter> + </Image> + </ItemGroup> </Project>
\ No newline at end of file diff --git a/protocols/Gadu-Gadu/res/resource.rc b/protocols/Gadu-Gadu/res/resource.rc index 5d50b44139..de5aa008cc 100644 --- a/protocols/Gadu-Gadu/res/resource.rc +++ b/protocols/Gadu-Gadu/res/resource.rc @@ -47,7 +47,7 @@ END /////////////////////////////////////////////////////////////////////////////
-// English resources
+// English (Neutral) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
@@ -155,17 +155,15 @@ EXSTYLE WS_EX_CONTROLPARENT FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "Advanced Configuration",IDC_STATIC,4,2,298,146
- CONTROL "Keep connection alive",IDC_KEEPALIVE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,17,286,10
- CONTROL "Show connection errors",IDC_SHOWCERRORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,32,286,10
+ CONTROL "Show connection errors",IDC_SHOWCERRORS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,15,286,10
CONTROL "Automatically reconnect after unintentional disconnection",IDC_ARECONNECT,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,47,286,10
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,30,286,10
CONTROL "Send messages slower, but with full acknowledgment",IDC_MSGACK,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,62,286,10
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,45,286,10
CONTROL "Manually specify connection servers' hosts",IDC_MANUALHOST,
- "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,77,286,10
- EDITTEXT IDC_HOST,22,91,144,39,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_DISABLED | WS_VSCROLL
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,60,286,10
+ EDITTEXT IDC_HOST,9,76,157,64,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_DISABLED | WS_VSCROLL
LTEXT "* new line is separator\n** hostname:port format",IDC_HOST_LIST_L,174,92,119,32
- CONTROL "Use SSL secure connection",IDC_SSLCONN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,132,286,10
GROUPBOX "File Transfer",IDC_STATIC,4,150,297,58
CONTROL "Use direct connections",IDC_DIRECTCONNS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,164,153,10
RTEXT "Port:",IDC_DIRECTPORT_L,157,165,25,8
@@ -456,7 +454,7 @@ BEGIN 0
END
-#endif // English resources
+#endif // English (Neutral) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index 7009141127..1b5ab5c32d 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -331,8 +331,8 @@ void __cdecl GaduProto::mainthread(void *) }
// Readup SSL/TLS setting
- if (p.tls = m_useSslConnection)
- debugLogA("mainthread() (%x): Using TLS/SSL for connections.", this);
+ p.tls = true;
+ debugLogA("mainthread() (%x): Using TLS/SSL for connections.", this);
// Gadu-Gadu accepts image sizes upto 255
p.image_size = 255;
diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index fd0aea0f03..99b85fb547 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -124,7 +124,7 @@ void crc_gentable(void) // Calculate the crc value
unsigned long crc_get(char *mem)
{
- register unsigned long crc = 0xFFFFFFFF;
+ unsigned long crc = 0xFFFFFFFF;
while (mem && *mem)
crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_table[(crc ^ *(mem++)) & 0xFF];
@@ -164,10 +164,8 @@ void GaduProto::cleanuplastplugin(uint32_t version) // force SSL and keepalive; overwrite old server list;
if (version < PLUGIN_MAKE_VERSION(0, 11, 0, 4)) {
- setWString("ServerHosts", GG_KEYDEF_SERVERHOSTS);
- m_useManualHosts = 1;
- m_useSslConnection = 1;
- m_keepConnectionAlive = 1;
+ delSetting("ServerHosts");
+ m_useManualHosts = false;
}
}
diff --git a/protocols/Gadu-Gadu/src/gg_proto.cpp b/protocols/Gadu-Gadu/src/gg_proto.cpp index 7f6affb0c4..42892e1064 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.cpp +++ b/protocols/Gadu-Gadu/src/gg_proto.cpp @@ -33,8 +33,6 @@ GaduProto::GaduProto(const char *pszProtoName, const wchar_t *tszUserName) : m_autoRecconect(this, "AReconnect", 0),
m_useForwarding(this, "Forwarding", 0),
m_useManualHosts(this, "ManualHost", 1),
- m_useSslConnection(this, "SSLConnection", 1),
- m_keepConnectionAlive(this, "KeepAlive", 1),
m_showConnectionErrors(this, "ShowCErrors", 0),
m_useDirectConnections(this, "DirectConns", 1),
m_directConnectionPort(this, "DirectPort", 1550),
diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index 388fe907e0..7a49e3901a 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -215,13 +215,11 @@ struct GaduProto : public PROTO<GaduProto> // options
CMOption<uint8_t> m_autoRecconect;
- CMOption<uint8_t> m_keepConnectionAlive;
CMOption<uint8_t> m_showConnectionErrors;
CMOption<uint8_t> m_useDirectConnections;
CMOption<uint8_t> m_useForwarding;
CMOption<uint8_t> m_useManualHosts;
CMOption<uint8_t> m_useMsgDeliveryAcknowledge;
- CMOption<uint8_t> m_useSslConnection;
CMOption<uint16_t> m_directConnectionPort;
CMOption<uint16_t> m_forwardPort;
diff --git a/protocols/Gadu-Gadu/src/keepalive.cpp b/protocols/Gadu-Gadu/src/keepalive.cpp index 53bdd8d87f..7e4b7c78e4 100644 --- a/protocols/Gadu-Gadu/src/keepalive.cpp +++ b/protocols/Gadu-Gadu/src/keepalive.cpp @@ -52,19 +52,15 @@ static VOID CALLBACK gg_keepalive(HWND, UINT, UINT_PTR idEvent, DWORD) void GaduProto::keepalive_init()
{
- if (m_keepConnectionAlive)
- {
- int i;
- for (i = 0; i < MAX_TIMERS && g_timers[i] != nullptr; i++);
+ int i;
+ for (i = 0; i < MAX_TIMERS && g_timers[i] != nullptr; i++);
- if (i < MAX_TIMERS)
- {
+ if (i < MAX_TIMERS) {
#ifdef DEBUGMODE
- debugLogA("keepalive_init(): Initializing Timer %d", i);
+ debugLogA("keepalive_init(): Initializing Timer %d", i);
#endif
- timer = SetTimer(nullptr, 0, 1000 * 60, gg_keepalive);
- g_timers[i] = this;
- }
+ timer = SetTimer(nullptr, 0, 1000 * 60, gg_keepalive);
+ g_timers[i] = this;
}
}
diff --git a/protocols/Gadu-Gadu/src/options.cpp b/protocols/Gadu-Gadu/src/options.cpp index 6714d3aeb0..76896dd06a 100644 --- a/protocols/Gadu-Gadu/src/options.cpp +++ b/protocols/Gadu-Gadu/src/options.cpp @@ -345,10 +345,8 @@ public: class GaduOptionsDlgAdvanced : public GaduDlgBase { CCtrlCheck chkAutoReconnect; - CCtrlCheck chkKeepConnectionAlive; CCtrlCheck chkMsgAcknowledge; CCtrlCheck chkShowConnectionErrors; - CCtrlCheck chkSslConnection; CCtrlCheck chkManualHosts; CCtrlEdit edtServerHosts; @@ -370,10 +368,8 @@ public: GaduOptionsDlgAdvanced(GaduProto *proto) : GaduDlgBase(proto, IDD_OPT_GG_ADVANCED), chkAutoReconnect(this, IDC_ARECONNECT), - chkKeepConnectionAlive(this, IDC_KEEPALIVE), chkMsgAcknowledge(this, IDC_MSGACK), chkShowConnectionErrors(this, IDC_SHOWCERRORS), - chkSslConnection(this, IDC_SSLCONN), chkManualHosts(this, IDC_MANUALHOST), edtServerHosts(this, IDC_HOST), txtServerHostsLabel(this, IDC_HOST_LIST_L), @@ -388,10 +384,8 @@ public: txtReconnectRequired(this, IDC_RELOADREQD) { CreateLink(chkAutoReconnect, proto->m_autoRecconect); - CreateLink(chkKeepConnectionAlive, proto->m_keepConnectionAlive); CreateLink(chkMsgAcknowledge, proto->m_useMsgDeliveryAcknowledge); CreateLink(chkShowConnectionErrors, proto->m_showConnectionErrors); - CreateLink(chkSslConnection, proto->m_useSslConnection); CreateLink(chkManualHosts, proto->m_useManualHosts); CreateLink(edtServerHosts, proto->m_serverHosts); @@ -413,9 +407,6 @@ public: bool OnInitDialog() override { - chkKeepConnectionAlive.Disable(); - chkSslConnection.Disable(); - txtReconnectRequired.Hide(); return true; } diff --git a/protocols/Gadu-Gadu/src/resource.h b/protocols/Gadu-Gadu/src/resource.h index 3c79d81adb..226b0d82ff 100644 --- a/protocols/Gadu-Gadu/src/resource.h +++ b/protocols/Gadu-Gadu/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by D:\Repozytoria\Miranda NG\protocols\Gadu-Gadu\res\resource.rc
+// Used by W:\miranda-ng\protocols\Gadu-Gadu\res\resource.rc
//
#define IDI_GG 251
#define IDI_IMPORT_TEXT 252
@@ -41,8 +41,6 @@ #define IDC_LOSTPASS 403
#define IDC_FRIENDSONLY 404
#define IDC_SHOWINVISIBLE 405
-#define IDC_KEEPALIVE 406
-#define IDC_SAFESTATUS 407
#define IDC_MANUALHOST 408
#define IDC_HOST 409
#define IDC_PORT 410
@@ -80,7 +78,6 @@ #define IDC_FORWARDPORT 448
#define IDC_FORWARDING 449
#define IDC_MSGACK 450
-#define IDC_SSLCONN 451
#define IDC_VERSION 452
#define IDC_TOKEN 453
#define IDC_IGNORECONF 454
|