imageeditor/plugins/BubblePlugin/inc/BubbleScaler.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 #ifndef BUBBLESCALER_H
       
    21 #define BUBBLESCALER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class CBitmapScaler;
       
    29 class CFbsBitmap;
       
    30 
       
    31 /*	CLASS: MBubbleScalerNotifier
       
    32 *
       
    33 *   Notifier class for CBubbleScaler
       
    34 *
       
    35 */
       
    36 class MBubbleScalerNotifier
       
    37     {
       
    38     public:
       
    39         virtual void BubbleScalerOperationReadyL(TInt aError) = 0;
       
    40     };
       
    41 
       
    42 /*	CLASS: CBubbleScaler
       
    43 *
       
    44 *   Class is used for scaling bitmaps
       
    45 *
       
    46 */
       
    47 class CBubbleScaler : public CActive
       
    48     {
       
    49     
       
    50 public:
       
    51 
       
    52     /** Default constructor, cannot leave.
       
    53 	*
       
    54 	*	@param -
       
    55 	*	@return -
       
    56 	*/
       
    57 	CBubbleScaler (MBubbleScalerNotifier* aNotifier);
       
    58 
       
    59 	/** Destructor
       
    60 	*
       
    61 	*	@param -
       
    62 	*	@return -
       
    63 	*/
       
    64 	~CBubbleScaler ();
       
    65 
       
    66 	/*	Second phase constructor	
       
    67 	*
       
    68 	*	@param -
       
    69 	*	@return -
       
    70 	*/
       
    71     void ConstructL ();
       
    72 
       
    73     /*	Second phase constructor	
       
    74 	*
       
    75 	*	@param aBitmap - bitmap to be scaled 
       
    76 	*	@return -
       
    77 	*/
       
    78     void ScaleBitmapL(CFbsBitmap* aBitmap, TSize aNewSize);
       
    79 
       
    80 protected:
       
    81 
       
    82   	/*	DoCancel
       
    83 	*
       
    84 	*   @see CActive
       
    85 	*/
       
    86     void DoCancel();
       
    87  
       
    88   	/*	RunL
       
    89 	*
       
    90 	*   @see CActive
       
    91 	*/
       
    92     void RunL();
       
    93 
       
    94 private:
       
    95 
       
    96     CBitmapScaler*  iBitmapScaler;
       
    97     MBubbleScalerNotifier* iNotifier;
       
    98 
       
    99 };
       
   100 
       
   101 #endif
       
   102 
       
   103 // End of File