Use CAutoGeneralHandle
[TortoiseGit.git] / src / TortoiseProc / CheckForUpdatesDlg.h
blobfb8e7cf1e33df3911ef2b1e143c3a5423d52fe07
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - Stefan Kueng
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
21 #include "StandAloneDlg.h"
22 #include "HyperLink.h"
24 /**
25 * \ingroup TortoiseProc
26 * Helper dialog class, which checks if there are updated version of TortoiseSVN
27 * available.
29 class CCheckForUpdatesDlg : public CStandAloneDialog
31 DECLARE_DYNAMIC(CCheckForUpdatesDlg)
33 public:
34 CCheckForUpdatesDlg(CWnd* pParent = NULL); // standard constructor
35 virtual ~CCheckForUpdatesDlg();
37 enum { IDD = IDD_CHECKFORUPDATES };
39 protected:
40 afx_msg void OnStnClickedCheckresult();
41 afx_msg void OnTimer(UINT_PTR nIDEvent);
42 afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
43 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
44 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
45 virtual BOOL OnInitDialog();
46 virtual void OnOK();
47 virtual void OnCancel();
49 DECLARE_MESSAGE_MAP()
51 private:
52 static UINT CheckThreadEntry(LPVOID pVoid);
53 UINT CheckThread();
55 BOOL m_bThreadRunning;
57 public:
58 BOOL m_bShowInfo;
60 private:
61 BOOL m_bVisible;
63 CString m_sUpdateDownloadLink; ///< Where to send a user looking to download a update
64 CString m_sUpdateChangeLogLink; ///< Where to send a user looking to change log
65 CHyperLink m_link;
66 CHyperLink m_ChangeLogLink;