Fixed issue #4143: BrowseRefsDlg: Order the branches by commit date instead of date...
[TortoiseGit.git] / src / TortoiseProc / Settings / SettingSMTP.h
blobd3eac4110b9ea5799f53dda993aff3eed1235d9f
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.
19 #pragma once
20 #include "SettingsPropPage.h"
21 #include "WindowsCredentialsStore.h"
23 // CSettingSMTP dialog
25 class CSettingSMTP : public ISettingsPropPage
27 DECLARE_DYNAMIC(CSettingSMTP)
29 public:
30 CSettingSMTP();
31 virtual ~CSettingSMTP();
32 UINT GetIconID() override { return IDI_MENUSENDMAIL; }
34 // Dialog Data
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();
45 protected:
46 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
48 DECLARE_MESSAGE_MAP()
50 CComboBox m_SMTPDeliveryTypeCombo;
51 CComboBox m_SMTPEncryptionCombo;
53 afx_msg void OnBnClickedSmtpAuth();
55 void UpdateCredentialsButtons();
57 private:
58 CRegDWORD m_regDeliveryType;
59 CRegString m_regServer;
60 CRegDWORD m_regPort;
61 CRegDWORD m_regEncryption;
62 CRegDWORD m_regAuthenticate;
64 DWORD m_dwDeliveryType;
65 DWORD m_dwSMTPEnrcyption;
66 CString m_Server;
67 DWORD m_Port;
68 CString m_From;
69 BOOL m_bAuth;