Clone
ixen <ixen@copyhandler.com>
committed
on 05 Oct 15
Refactoring - extracted wildcard parsing functionality to a separate class to allow re-use in feedback automatic rules (CH-165).
LoggerImprovements + 5 more
src/ch/FeedbackHandler.h (+1 -0)
5 5  *   This program is free software; you can redistribute it and/or modify  *
6 6  *   it under the terms of the GNU Library General Public License          *
7 7  *   (version 2) as published by the Free Software Foundation;             *
8 8  *                                                                         *
9 9  *   This program is distributed in the hope that it will be useful,       *
10 10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11 11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12 12  *   GNU General Public License for more details.                          *
13 13  *                                                                         *
14 14  *   You should have received a copy of the GNU Library General Public     *
15 15  *   License along with this program; if not, write to the                 *
16 16  *   Free Software Foundation, Inc.,                                       *
17 17  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18 18  ***************************************************************************/
19 19 #ifndef __FEEDBACKHANDLER_H__
20 20 #define __FEEDBACKHANDLER_H__
21 21
22 22 #include "../libchcore/IFeedbackHandlerFactory.h"
23 23 #include "../libchcore/TFeedbackHandlerBase.h"
24 24 #include "../libchcore/EFeedbackResult.h"
  25 #include "../libchcore/EFileError.h"
25 26
26 27 class CFeedbackHandler : public chcore::TFeedbackHandlerBase
27 28 {
28 29 public:
29 30         CFeedbackHandler();
30 31         virtual ~CFeedbackHandler();
31 32
32 33         virtual chcore::EFeedbackResult FileError(const chcore::TString& strSrcPath, const chcore::TString& strDstPath, chcore::EFileError eFileError, unsigned long ulError) override;
33 34         virtual chcore::EFeedbackResult FileAlreadyExists(const chcore::TFileInfoPtr& spSrcFileInfo, const chcore::TFileInfoPtr& spDstFileInfo) override;
34 35         virtual chcore::EFeedbackResult NotEnoughSpace(const chcore::TString& strSrcPath, const chcore::TString& strDstPath, unsigned long long ullRequiredSize) override;
35 36         virtual chcore::EFeedbackResult OperationFinished() override;
36 37         virtual chcore::EFeedbackResult OperationError() override;
37 38
38 39 protected:
39 40         friend class CFeedbackHandlerFactory;
40 41 };
41 42
42 43 typedef boost::shared_ptr<CFeedbackHandler> CFeedbackHandlerPtr;
43 44
44 45 #endif