imageeditor/inc/SingleParamControlObserver.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 SINGLEPARAMCONTROLOBSERVER_H
       
    22 #define SINGLEPARAMCONTROLOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 
       
    28 
       
    29 /*	CLASS: MSingleParControlObserver
       
    30 *
       
    31 *   MSingleParControlObserver is a mixin class for updating the parameter
       
    32 *
       
    33 */
       
    34 class MSingleParControlObserver
       
    35 {
       
    36 public:
       
    37 /** @name Methods:*/
       
    38 //@{
       
    39     enum TParamOperation
       
    40     {
       
    41         //  Invalid
       
    42         EParamOperationMin,
       
    43         //  Set default parameter
       
    44         EParamOperationDefault,
       
    45         //  Add step to parameter
       
    46         EParamOperationAdd,
       
    47         //  Subtract step from parameter
       
    48         EParamOperationSubtract,
       
    49         //  Invalid
       
    50         EParamOperationMax,
       
    51     };
       
    52 //@}
       
    53 
       
    54 /** @name Methods:*/
       
    55 //@{
       
    56 	/** ParamOperation 
       
    57     *
       
    58     *   Performs an operation to the filter parameter.
       
    59 	*
       
    60 	*	@param aOperation - filter parameter operation
       
    61 	*	@return -
       
    62 	*/
       
    63 	virtual void ParamOperation (const TParamOperation aOperation) = 0;
       
    64 
       
    65 	/** GetParam
       
    66     *
       
    67     *   Gets filter parameter.
       
    68 	*
       
    69 	*	@param -
       
    70 	*	@return TReal - filter parameter value
       
    71 	*/
       
    72 	virtual TReal GetParam () const = 0;
       
    73 //@}
       
    74 
       
    75 protected:
       
    76 
       
    77 /** @name Methods:*/
       
    78 //@{
       
    79 
       
    80 //@}
       
    81 
       
    82 /** @name Members:*/
       
    83 //@{
       
    84 
       
    85 //@}
       
    86 
       
    87 private:
       
    88 
       
    89 /** @name Methods:*/
       
    90 //@{
       
    91 
       
    92 
       
    93 //@}
       
    94 
       
    95 /** @name Members:*/
       
    96 //@{
       
    97 
       
    98 //@}
       
    99 
       
   100 };
       
   101 
       
   102 #endif
       
   103 
       
   104 // End of File