#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 GaduOptionsDlgConference : public GaduDlgBase { private: CCtrlCombo cmbPolicyForAllChatParticipants; CCtrlSpin edtNumberOfAllChatParticipants; CCtrlCombo cmbPolicyForUnknownChatParticipants; CCtrlSpin edtNumberOfUnknownChatParticipants; CCtrlCombo cmbDefaultChatPolicy; public: GaduOptionsDlgConference(GaduProto *proto); bool OnInitDialog() override; bool OnApply() override; }; 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); bool OnInitDialog() override; private: void onCheck_ManualHosts(CCtrlCheck*); void onCheck_DirectConnections(CCtrlCheck*); void onCheck_Forwarding(CCtrlCheck*); void showRecconectRequired(CCtrlBase* = nullptr); };