Change copyright year
[TortoiseGit.git] / src / TortoiseProc / MassiveGitTask.h
blob2409a731a49593aa7dd3cd3ead73bc213fe2c906
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2011-2012 - Sven Strickroth <email@cs-ware.de>
4 // Copyright (C) 2013 - TortoiseGit
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.
21 #pragma once
22 #include "GitProgressDlg.h"
23 #include "TGitPath.h"
25 typedef BOOL (CGitProgressDlg::*NOTIFY_CALLBACK)(const CTGitPath& path, git_wc_notify_action_t action, int status, CString *strErr);
27 class CMassiveGitTask
29 public:
30 CMassiveGitTask(CString params, BOOL isPath = TRUE);
31 ~CMassiveGitTask(void);
33 void AddFile(CString filename);
34 void AddFile(CTGitPath filename);
35 bool ExecuteWithNotify(CTGitPathList *pathList, BOOL &cancel, git_wc_notify_action_t action, CGitProgressDlg * instance, NOTIFY_CALLBACK m_NotifyCallbackMethod);
36 bool Execute(BOOL &cancel);
38 private:
39 bool ExecuteCommands(BOOL &cancel);
40 bool m_bUnused;
41 BOOL m_bIsPath;
42 CString m_sParams;
43 CTGitPathList m_pathList;
44 CGitProgressDlg * m_NotifyCallbackInstance;
45 NOTIFY_CALLBACK m_NotifyCallbackMethod;
46 git_wc_notify_action_t m_NotifyCallbackAction;