diff -r 57d4cdd99204 -r edfc90759b9f imageeditor/imageeditorApp/inc/ImageControllerObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imageeditor/imageeditorApp/inc/ImageControllerObserver.h Fri Jan 29 13:53:17 2010 +0200 @@ -0,0 +1,120 @@ +/* +* Copyright (c) 2010 Ixonos Plc. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - Initial contribution +* +* Contributors: +* Ixonos Plc +* +* Description: +* +*/ + + + +#ifndef IMAGECONTROLLEROBSERVER_H +#define IMAGECONTROLLEROBSERVER_H + +// INCLUDES + +// FORWARD DECLARATIONS + + +/* CLASS: MImageControllerObserver +* +* MImageControllerObserver is an mixing class providing a callback API +* for the observer of CImageController class. +* +*/ +class MImageControllerObserver +{ + +public: + +/** @name Methods:*/ +//@{ + enum TOperationCode + { + /// Invalid + EOperationCodeMin = 0, + /// Loading images + EOperationCodeLoad, + /// Block loading images + EOperationCodeBlockLoad, + /// Saving images + EOperationCodeSave, + /// Block saving images + EOperationCodeBlockSave, + /// Deleting images + EOperationCodeDelete, + /// Renaming images + EOperationCodeRename, + /// Searching images + EOperationCodeSearch, + /// Invalid + EOperationCodeMax + }; +//@} + +/** @name Methods:*/ +//@{ + + /* OperationReadyL + * + * This method is called when asynchronous loading or saving operation + * is completed or when an error has occurred. + * + * @param aOpId - operation ID + * @param aError - error code + * @return - + */ + virtual void OperationReadyL ( + TOperationCode aOpId, + TInt aError + ) = 0; + + /* IncrementProgressBarL + * + * This method is called to increment the progress bar when + * one step is completed. + * + * @param - + * @return - + */ + virtual void IncrementProgressBarL (const TInt aIncrement) = 0; +//@} + +protected: + +/** @name Methods:*/ +//@{ + +//@} + +/** @name Members:*/ +//@{ + +//@} + +private: + +/** @name Methods:*/ +//@{ + + +//@} + +/** @name Members:*/ +//@{ + +//@} + +}; + +#endif