00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Base Library 00005 * Module : IXObjectCompare 00006 * Package : Zeus.ZeusBase.System.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef IXObjectCompareHPP 00033 #define IXObjectCompareHPP 00034 00035 #include <zeusbase/System/Interfaces/IZUnknown.hpp> 00036 #include <zeusbase/System/Interfaces/IXSynchronAction.hpp> 00037 00038 00039 // {D151D700-4BBC-4d31-8996-EF879F98E8C6} 00040 #define INTERFACE_IXObjectCompare TIID(0xd151d700, 0x4bbc, 0x4d31, 0x89, 0x96, 0xef, 0x87, 0x9f, 0x98, 0xe8, 0xc6) 00041 00042 00043 BEGIN_NAMESPACE_Zeus 00044 00045 /***************************************************************************/ 00048 /***************************************************************************/ 00049 class IXObjectCompare : public IZUnknown 00050 { 00051 HIDE_ASSIGNMENT_OPERATOR(IXObjectCompare) 00052 00053 public: 00054 /***********************************************************************/ 00064 /***********************************************************************/ 00065 virtual Retval MQUALIFIER createCompareAction(IXObject& rTargetObject, IXSynchronAction*& rpAction, bool bForce = false)=0; 00066 00067 /***********************************************************************/ 00073 /***********************************************************************/ 00074 virtual Retval MQUALIFIER createRemoveAction(IXSynchronAction*& rpAction)=0; 00075 00076 /***********************************************************************/ 00082 /***********************************************************************/ 00083 virtual Retval MQUALIFIER createAddAction(IXSynchronAction*& rpAction)=0; 00084 00085 /***********************************************************************/ 00094 /***********************************************************************/ 00095 virtual Retval MQUALIFIER createRootAction(IXObject& rTargetObject, IXSynchronAction*& rpAction)=0; 00096 00097 /***********************************************************************/ 00102 /***********************************************************************/ 00103 virtual void MQUALIFIER onSynchronizeStarted(bool bTarget)=0; 00104 00105 /***********************************************************************/ 00110 /***********************************************************************/ 00111 virtual void MQUALIFIER onSynchronizeEnded(bool bTarget)=0; 00112 00113 /***********************************************************************/ 00120 /***********************************************************************/ 00121 virtual void MQUALIFIER onSynchronizeCylceFinished(bool bTarget, Int iActCycleIndex, bool bModified)=0; 00122 }; 00123 00124 END_NAMESPACE_Zeus 00125 00126 #endif 00127