#pragma once #include "gg.h" struct GaduOptions { CMOption autoRecconect; CMOption keepConnectionAlive; CMOption showConnectionErrors; CMOption useDirectConnections; CMOption useForwarding; CMOption useManualHosts; CMOption useMsgDeliveryAcknowledge; CMOption useSslConnection; CMOption directConnectionPort; CMOption forwardPort; CMOption forwardHost; CMOption serverHosts; GaduOptions(PROTO_INTERFACE *proto); }; using GaduDlgBase = CProtoDlgBase; class GaduOptionsDlgAdvanced : public GaduDlgBase { private: CCtrlCheck chkAutoReconnect; CCtrlCheck chkKeepConnectionAlive; CCtrlCheck chkMsgAcknowledge; CCtrlCheck chkShowConnectionErrors; CCtrlCheck chkSslConnection; CCtrlCheck chkManualHosts; CCtrlEdit edtServerHosts; CCtrlBase txtServerHostsLabel; CCtrlCheck chkDirectConnections; CCtrlEdit edtDirectPort; CCtrlBase txtDirectPortLabel; CCtrlCheck chkForwarding; CCtrlEdit edtForwardHost; CCtrlBase txtForwardHostLabel; CCtrlEdit edtForwardPort; CCtrlBase txtForwardPortLabel; CCtrlBase txtReconnectRequired; public: GaduOptionsDlgAdvanced(GaduProto *proto); void OnInitDialog() override; private: void onCheck_ManualHosts(CCtrlCheck*); void onCheck_DirectConnections(CCtrlCheck*); void onCheck_Forwarding(CCtrlCheck*); void showRecconectRequired(CCtrlBase* = nullptr); };