Reduce C style casts
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingSMTP.h
blobe0d7f423b4ef398a677a6f7b40da838af0e26f99
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2009, 2013, 2016 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #pragma once
20 #include "SettingsPropPage.h"
22 // CSettingSMTP dialog
24 class CSettingSMTP : public ISettingsPropPage
26 DECLARE_DYNAMIC(CSettingSMTP)
28 public:
29 CSettingSMTP();
30 virtual ~CSettingSMTP();
31 UINT GetIconID() { return IDI_MENUSENDMAIL; }
33 // Dialog Data
34 enum { IDD = IDD_SETTINGSMTP };
36 BOOL OnInitDialog();
37 BOOL OnApply();
38 afx_msg void OnModified();
39 afx_msg void OnModifiedEncryptionCombo();
40 afx_msg void OnModifiedDeliveryCombo();
42 protected:
43 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
45 DECLARE_MESSAGE_MAP()
47 CComboBox m_SMTPDeliveryTypeCombo;
48 CComboBox m_SMTPEncryptionCombo;
50 afx_msg void OnBnClickedSmtpAuth();
51 afx_msg void OnBnClickedSmtpUseconfiguredserver();
53 private:
54 CRegDWORD m_regDeliveryType;
55 CRegString m_regServer;
56 CRegDWORD m_regPort;
57 CRegDWORD m_regEncryption;
58 CRegDWORD m_regAuthenticate;
60 DWORD m_dwDeliveryType;
61 DWORD m_dwSMTPEnrcyption;
62 CString m_Server;
63 DWORD m_Port;
64 CString m_From;
65 BOOL m_bAuth;
66 CString m_User;
67 CString m_Password;