diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src/options.h')
-rw-r--r-- | protocols/Gadu-Gadu/src/options.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/protocols/Gadu-Gadu/src/options.h b/protocols/Gadu-Gadu/src/options.h new file mode 100644 index 0000000000..c0eaecae75 --- /dev/null +++ b/protocols/Gadu-Gadu/src/options.h @@ -0,0 +1,57 @@ +#pragma once + +#include "gg.h" + +struct GaduOptions +{ + CMOption<BYTE> autoRecconect; + CMOption<BYTE> keepConnectionAlive; + CMOption<BYTE> showConnectionErrors; + CMOption<BYTE> useDirectConnections; + CMOption<BYTE> useForwarding; + CMOption<BYTE> useManualHosts; + CMOption<BYTE> useMsgDeliveryAcknowledge; + CMOption<BYTE> useSslConnection; + + CMOption<WORD> directConnectionPort; + CMOption<WORD> forwardPort; + + CMOption<wchar_t*> forwardHost; + CMOption<wchar_t*> serverHosts; + + GaduOptions(PROTO_INTERFACE *proto); +}; + +using GaduDlgBase = CProtoDlgBase<GaduProto>; + +class GaduOptionsDlgAdvanced : public GaduDlgBase +{ +private: + CCtrlCheck chkAutoReconnect; + CCtrlCheck chkKeepConnectionAlive; + CCtrlCheck chkMsgAcknowledge; + CCtrlCheck chkShowConnectionErrors; + CCtrlCheck chkSslConnection; + + CCtrlCheck chkManualHosts; + CCtrlEdit edtServerHosts; + + CCtrlCheck chkDirectConnections; + CCtrlEdit edtDirectPort; + + CCtrlCheck chkForwarding; + CCtrlEdit edtForwardHost; + CCtrlEdit edtForwardPort; + + CCtrlBase txtReconnectRequired; + +public: + GaduOptionsDlgAdvanced(GaduProto *proto); + + void OnInitDialog() override; + +private: + void onCheck_ManualHosts(CCtrlCheck*); + void onCheck_DirectConnections(CCtrlCheck*); + void onCheck_Forwarding(CCtrlCheck*); +}; |