imageeditor/imageeditorApp/inc/ImageControllerObserver.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef IMAGECONTROLLEROBSERVER_H
       
    22 #define IMAGECONTROLLEROBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 
       
    28 
       
    29 /*	CLASS: MImageControllerObserver
       
    30 *
       
    31 *	MImageControllerObserver is an mixing class providing a callback API
       
    32 *	for the observer of CImageController class.
       
    33 *
       
    34 */
       
    35 class MImageControllerObserver
       
    36 {
       
    37 
       
    38 public:
       
    39 
       
    40 /** @name Methods:*/
       
    41 //@{
       
    42 	enum TOperationCode
       
    43 	{
       
    44 		/// Invalid
       
    45 		EOperationCodeMin = 0,
       
    46 		/// Loading images
       
    47 		EOperationCodeLoad,
       
    48 		/// Block loading images
       
    49 		EOperationCodeBlockLoad,
       
    50 		/// Saving images
       
    51 		EOperationCodeSave,
       
    52 		/// Block saving images
       
    53 		EOperationCodeBlockSave,
       
    54 		/// Deleting images
       
    55 		EOperationCodeDelete,
       
    56 		/// Renaming images
       
    57 		EOperationCodeRename,
       
    58 		/// Searching images
       
    59 		EOperationCodeSearch,
       
    60 		/// Invalid
       
    61 		EOperationCodeMax
       
    62 	};
       
    63 //@}
       
    64 
       
    65 /** @name Methods:*/
       
    66 //@{
       
    67 	
       
    68 	/*	OperationReadyL
       
    69 	*
       
    70 	*	This method is called when asynchronous loading or saving operation
       
    71 	*	is completed or when an error has occurred.
       
    72 	*
       
    73 	*	@param aOpId - operation ID
       
    74 	*	@param aError - error code
       
    75 	*	@return -
       
    76 	*/
       
    77 	virtual void OperationReadyL (
       
    78 		TOperationCode		aOpId,
       
    79 		TInt				aError 
       
    80 		) = 0;
       
    81 
       
    82 	/*	IncrementProgressBarL
       
    83 	*
       
    84 	*	This method is called to increment the progress bar when
       
    85 	*	one step is completed.
       
    86 	*
       
    87 	*	@param - 
       
    88 	*	@return -
       
    89 	*/
       
    90 	virtual void IncrementProgressBarL (const TInt aIncrement) = 0;
       
    91 //@}
       
    92 
       
    93 protected:
       
    94 
       
    95 /** @name Methods:*/
       
    96 //@{
       
    97 
       
    98 //@}
       
    99 
       
   100 /** @name Members:*/
       
   101 //@{
       
   102 
       
   103 //@}
       
   104 
       
   105 private:
       
   106 
       
   107 /** @name Methods:*/
       
   108 //@{
       
   109 
       
   110 
       
   111 //@}
       
   112 
       
   113 /** @name Members:*/
       
   114 //@{
       
   115 
       
   116 //@}
       
   117 
       
   118 };
       
   119 
       
   120 #endif