1
// TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2009, 2013, 2016-2018, 2023 - 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.
20 #include "SettingsPropPage.h"
21 #include "WindowsCredentialsStore.h"
23 // CSettingSMTP dialog
25 class CSettingSMTP
: public ISettingsPropPage
27 DECLARE_DYNAMIC(CSettingSMTP
)
31 virtual ~CSettingSMTP();
32 UINT
GetIconID() override
{ return IDI_MENUSENDMAIL
; }
35 enum { IDD
= IDD_SETTINGSMTP
};
37 BOOL
OnInitDialog() override
;
38 BOOL
OnApply() override
;
39 afx_msg
void OnModified();
40 afx_msg
void OnModifiedEncryptionCombo();
41 afx_msg
void OnModifiedDeliveryCombo();
42 afx_msg
void OnBnClickedStoreCredentials();
43 afx_msg
void OnBnClickedClearCredentials();
46 void DoDataExchange(CDataExchange
* pDX
) override
; // DDX/DDV support
50 CComboBox m_SMTPDeliveryTypeCombo
;
51 CComboBox m_SMTPEncryptionCombo
;
53 afx_msg
void OnBnClickedSmtpAuth();
55 void UpdateCredentialsButtons();
58 CRegDWORD m_regDeliveryType
;
59 CRegString m_regServer
;
61 CRegDWORD m_regEncryption
;
62 CRegDWORD m_regAuthenticate
;
64 DWORD m_dwDeliveryType
;
65 DWORD m_dwSMTPEnrcyption
;