Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

MailCfgDlgUnit.h 5.89 KB
Newer Older
1 2 3 4 5 6
/* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */

/****************************************************************************
 * @format.tab-size 4		(Plain Text/Source Code File Header)			*
 * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
 *																			*
7
 * Copyright Rob Swindell - http://www.synchro.net/copyright.html			*
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
 *																			*
 * This program is free software; you can redistribute it and/or			*
 * modify it under the terms of the GNU General Public License				*
 * as published by the Free Software Foundation; either version 2			*
 * of the License, or (at your option) any later version.					*
 * See the GNU General Public License for more details: gpl.txt or			*
 * http://www.fsf.org/copyleft/gpl.html										*
 *																			*
 * For Synchronet coding style and modification guidelines, see				*
 * http://www.synchro.net/source.html										*
 *																			*
 * Note: If this box doesn't appear square, then you need to fix your tabs.	*
 ****************************************************************************/

//----------------------------------------------------------------------------
#ifndef MailCfgDlgUnitH
#define MailCfgDlgUnitH
//----------------------------------------------------------------------------
#include <vcl\ExtCtrls.hpp>
#include <vcl\Buttons.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Controls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\Graphics.hpp>
#include <vcl\Classes.hpp>
#include <vcl\SysUtils.hpp>
#include <vcl\Windows.hpp>
#include <vcl\System.hpp>
#include <Dialogs.hpp>
#include <ComCtrls.hpp>
38
#include <CheckLst.hpp>
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
//----------------------------------------------------------------------------
class TMailCfgDlg : public TForm
{
__published:
	TButton *OKBtn;
	TButton *CancelBtn;
    TOpenDialog *OpenDialog;
	TButton *ApplyButton;
    TPageControl *PageControl;
    TTabSheet *GeneralTabSheet;
    TCheckBox *AutoStartCheckBox;
    TLabel *InterfaceLabel;
    TEdit *NetworkInterfaceEdit;
    TLabel *MaxClientsLabel;
    TEdit *MaxClientsEdit;
    TLabel *MaxInactivityLabel;
    TEdit *MaxInactivityEdit;
    TTabSheet *SMTPTabSheet;
57
    TLabel *SMTPPortLabel;
58 59 60 61 62 63 64 65 66
    TEdit *SMTPPortEdit;
    TCheckBox *HostnameCheckBox;
    TCheckBox *DebugTXCheckBox;
    TCheckBox *LogFileCheckBox;
    TTabSheet *POP3TabSheet;
    TLabel *POP3PortLabel;
    TEdit *POP3PortEdit;
    TCheckBox *POP3LogCheckBox;
    TCheckBox *POP3EnabledCheckBox;
67 68 69 70 71
    TTabSheet *SendMailTabSheet;
    TRadioButton *DNSRadioButton;
    TEdit *DNSServerEdit;
    TCheckBox *TcpDnsCheckBox;
    TRadioButton *RelayRadioButton;
72
    TLabel *DeliveryAttemptsLabel;
73
    TEdit *DeliveryAttemptsEdit;
74
    TLabel *RescanFreqLabel;
75
    TEdit *RescanFreqEdit;
76 77 78 79 80 81 82 83 84 85 86
    TTabSheet *SoundTabSheet;
    TLabel *SMTPSoundLabel;
    TEdit *InboundSoundEdit;
    TButton *InboundSoundButton;
    TLabel *POP3SoundLabel;
    TEdit *POP3SoundEdit;
    TButton *POP3SoundButton;
    TLabel *OutboundSoundLabel;
    TEdit *OutboundSoundEdit;
    TButton *OutboundSoundButton;
    TCheckBox *SendMailCheckBox;
87 88
    TLabel *DefaultUserLabel;
    TEdit *DefaultUserEdit;
89 90 91 92 93 94 95 96 97 98 99 100
	TTabSheet *DNSBLTabSheet;
	TButton *DNSBLServersButton;
	TLabel *Label1;
	TGroupBox *DNSBLGroupBox;
	TRadioButton *BLRefuseRadioButton;
	TRadioButton *BLIgnoreRadioButton;
	TRadioButton *BLBadUserRadioButton;
	TRadioButton *BLTagRadioButton;
	TEdit *BLSubjectEdit;
	TEdit *BLHeaderEdit;
	TLabel *BLSubjectLabel;
	TLabel *BLHeaderLabel;
101 102
    TEdit *MaxConConEdit;
    TLabel *MaxConConLabel;
103 104 105
	TLabel *MaxRecipientsLabel;
	TEdit *MaxRecipientsEdit;
	TButton *DNSBLExemptionsButton;
106
	TCheckBox *DebugRXCheckBox;
rswindell's avatar
rswindell committed
107
    TCheckBox *DNSBLSpamHashCheckBox;
108 109
	TLabel *MaxMsgSizeLabel;
	TEdit *MaxMsgSizeEdit;
110
	TCheckBox *AuthViaIpCheckBox;
111
	TCheckBox *NotifyCheckBox;
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
    TTabSheet *RelayTabSheet;
    TEdit *RelayServerEdit;
    TEdit *RelayPortEdit;
    TLabel *RelayPortLabel;
    TLabel *DNSServerLabel;
    TLabel *RelayServerLabel;
    TGroupBox *RelayAuthGroupBox;
    TRadioButton *RelayAuthNoneRadioButton;
    TRadioButton *RelayAuthPlainRadioButton;
    TRadioButton *RelayAuthLoginRadioButton;
    TRadioButton *RelayAuthCramMD5RadioButton;
    TLabel *RelayAuthNameLabel;
    TEdit *RelayAuthNameEdit;
    TLabel *RelayAuthPassLabel;
    TEdit *RelayAuthPassEdit;
127 128
    TTabSheet *AdvancedTabSheet;
    TCheckListBox *AdvancedCheckListBox;
129 130 131 132
    TLabel *SubPortLabel;
    TEdit *SubPortEdit;
    TCheckBox *DebugHeadersCheckBox;
    TCheckBox *UseSubPortCheckBox;
133 134 135 136
    TLabel *MaxMsgsLabel;
    TEdit *MaxMsgsWaitingEdit;
    TLabel *ConnectTimeoutLabel;
    TEdit *ConnectTimeoutEdit;
137 138 139 140 141 142
    TLabel *TLSSubPortLabel;
    TEdit *TLSSubPortEdit;
    TCheckBox *TLSSubPortCheckBox;
    TLabel *TLSPOP3PortLabel;
    TEdit *TLSPOP3PortEdit;
    TCheckBox *TLSPOP3EnabledCheckBox;
143
    TButton *ConfigureSoundButton;
144 145 146 147 148 149 150
    void __fastcall InboundSoundButtonClick(TObject *Sender);
    void __fastcall OutboundSoundButtonClick(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall OKBtnClick(TObject *Sender);
	void __fastcall POP3SoundButtonClick(TObject *Sender);
	void __fastcall DNSRadioButtonClick(TObject *Sender);
	void __fastcall POP3EnabledCheckBoxClick(TObject *Sender);
151
    void __fastcall SendMailCheckBoxClick(TObject *Sender);
152 153 154
	void __fastcall DNSBLRadioButtonClick(TObject *Sender);
	void __fastcall DNSBLServersButtonClick(TObject *Sender);
	void __fastcall DNSBLExemptionsButtonClick(TObject *Sender);
155
    void __fastcall RelayAuthRadioButtonClick(TObject *Sender);
156
    void __fastcall UseSubPortCheckBoxClick(TObject *Sender);
157
    void __fastcall TLSSubPortCheckBoxClick(TObject *Sender);
158
    void __fastcall ConfigureSoundButtonClick(TObject *Sender);
159 160 161 162 163 164 165 166
private:
public:
	virtual __fastcall TMailCfgDlg(TComponent* AOwner);
};
//----------------------------------------------------------------------------
extern PACKAGE TMailCfgDlg *MailCfgDlg;
//----------------------------------------------------------------------------
#endif