Index: src/libchcore/EFileError.h =================================================================== diff -u --- src/libchcore/EFileError.h (revision 0) +++ src/libchcore/EFileError.h (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,40 @@ +/*************************************************************************** +* Copyright (C) 2001-2015 by J�zef Starosczyk * +* ixen@copyhandler.com * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Library General Public License * +* (version 2) as published by the Free Software Foundation; * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ +#ifndef __EFILEERROR_H__ +#define __EFILEERROR_H__ + +#include "libchcore.h" + +BEGIN_CHCORE_NAMESPACE + +enum class EFileError +{ + eDeleteError, ///< Problem occurred when tried to delete the fs object + eSeekError, ///< Problem occurred when tried to set file pointer + eResizeError, ///< Problem occurred when tried to change size of the fs object + eReadError, ///< Problem occurred when tried to read data from file + eWriteError, ///< Problem occurred when tried to write data to a file + eFinalizeError, ///< Problem occurred when tried to finalize file + eFastMoveError, ///< Problem occurred when tried to perform fast move operation (that does not involve copying contents) + eCreateError ///< Problem occurred when tried to create the fs object +}; + +END_CHCORE_NAMESPACE + +#endif Index: src/libchcore/TFileAlreadyExistsFilter.cpp =================================================================== diff -u --- src/libchcore/TFileAlreadyExistsFilter.cpp (revision 0) +++ src/libchcore/TFileAlreadyExistsFilter.cpp (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,19 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#include "stdafx.h" Index: src/libchcore/TFileAlreadyExistsFilter.h =================================================================== diff -u --- src/libchcore/TFileAlreadyExistsFilter.h (revision 0) +++ src/libchcore/TFileAlreadyExistsFilter.h (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,24 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#ifndef __TFILEALREADYEXISTSERRORFILTER_H__ +#define __TFILEALREADYEXISTSERRORFILTER_H__ + + + +#endif Index: src/libchcore/TFileErrorFilter.cpp =================================================================== diff -u --- src/libchcore/TFileErrorFilter.cpp (revision 0) +++ src/libchcore/TFileErrorFilter.cpp (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,19 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#include "stdafx.h" Index: src/libchcore/TFileErrorFilter.h =================================================================== diff -u --- src/libchcore/TFileErrorFilter.h (revision 0) +++ src/libchcore/TFileErrorFilter.h (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,42 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#ifndef __TFILEERRORFILTER_H__ +#define __TFILEERRORFILTER_H__ + +#include "EFeedbackResult.h" +#include "libchcore.h" +#include "TString.h" +#include "EFileError.h" + +BEGIN_CHCORE_NAMESPACE + +class TFileErrorFilter +{ +public: + TFileErrorFilter(); + + EFeedbackResult Match(const TString& strSrcPath, const TString& strDstPath, EFileError eFileError, unsigned long ulError); + +private: + TString m_strSrcPathMask; +}; + +END_CHCORE_NAMESPACE + +#endif Index: src/libchcore/TNotEnoughSpaceFilter.cpp =================================================================== diff -u --- src/libchcore/TNotEnoughSpaceFilter.cpp (revision 0) +++ src/libchcore/TNotEnoughSpaceFilter.cpp (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,19 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#include "stdafx.h" Index: src/libchcore/TNotEnoughSpaceFilter.h =================================================================== diff -u --- src/libchcore/TNotEnoughSpaceFilter.h (revision 0) +++ src/libchcore/TNotEnoughSpaceFilter.h (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -0,0 +1,22 @@ +// ============================================================================ +// Copyright (C) 2001-2015 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#ifndef __TNOTENOUGHSPACE_H__ +#define __TNOTENOUGHSPACE_H__ + +#endif Index: src/libchcore/TTaskConfiguration.h =================================================================== diff -u -rcdc76e1a95383dff63a5254aeb8d37035028512c -rf7314a3065ebf529a998aa0f98072049d06d192f --- src/libchcore/TTaskConfiguration.h (.../TTaskConfiguration.h) (revision cdc76e1a95383dff63a5254aeb8d37035028512c) +++ src/libchcore/TTaskConfiguration.h (.../TTaskConfiguration.h) (revision f7314a3065ebf529a998aa0f98072049d06d192f) @@ -40,6 +40,10 @@ eTO_DisableBufferingMinSize, eTO_BufferQueueDepth, + eTO_FeedbackGeneralFileError, + eTO_FeedbackFileAlreadyExists, + eTO_FeedbackNotEnoughSpace, + eTO_SetDestinationAttributes, eTO_SetDestinationDateTime, eTO_ProtectReadOnlyFiles,