Fixed issue #1542: Can send pull request email
[TortoiseGit.git] / src / TortoiseProc / TortoiseProc.h
blob314b5329d6b3ea574bd6f4d785d2402720ee1b67
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011 - TortoiseGit
4 // Copyright (C) 2003-2008 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #ifndef __AFXWIN_H__
23 #error include 'stdafx.h' before including this file for PCH
24 #endif
27 #include "resource.h" // main symbols
30 #include "..\\TortoiseShell\\resource.h"
31 //#include "UnicodeUtils.h"
33 class CTSVNPath;
34 class CTSVNPathList;
36 /**
37 * \ingroup TortoiseProc
38 * Main class of the TortoiseGitProc.exe\n
39 * It is the entry point when calling the TortoiseGitProc.exe and
40 * handles the command line. Depending on the command line
41 * other 'modules' are called, usually dialog boxes which
42 * themselves then execute a specific function.\n\n
43 * Many commands are executed using the CSVNProgressDlg which
44 * just displays the common notify callbacks of the Subversion commands.
48 class CTortoiseProcApp : public CWinAppEx
50 public:
51 CTortoiseProcApp();
52 ~CTortoiseProcApp();
54 // Overrides
55 public:
56 virtual BOOL InitInstance();
57 virtual int ExitInstance();
59 BOOL CheckMsysGitDir();
61 void CheckUpgrade();
62 void CheckForNewerVersion();
63 void EnableCrashHandler();
64 void InitializeJumpList();
65 void DoInitializeJumpList();
67 ULONG_PTR m_gdiplusToken;
68 // Implementation
70 private:
73 DECLARE_MESSAGE_MAP()
74 private:
75 bool retSuccess;
78 extern CTortoiseProcApp theApp;
79 extern HWND hWndExplorer;
80 extern CString sOrigCWD;