imageeditorengine/JpegScaler/inc/JpegScaler.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 JPEGSCALER_H
       
    21 #define JPEGSCALER_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CJpegScalerImpl;
       
    31 class RFs;
       
    32 
       
    33 /*  CLASS:  CJpegScaler
       
    34 *
       
    35 *
       
    36 *   USAGE
       
    37 *
       
    38 *
       
    39 *
       
    40 */
       
    41 class CJpegScaler : public CBase
       
    42 {
       
    43 public:
       
    44 
       
    45     /** NewL factory method, pops cleanup stack
       
    46     *
       
    47     *   @param - aFsSession 
       
    48     *   @return pointer to created CJpegScaler object
       
    49     */
       
    50 	IMPORT_C static CJpegScaler* NewL(RFs & aFsSession);
       
    51 
       
    52     /** Destructor
       
    53     *
       
    54     *   @param -
       
    55     *   @return -
       
    56     */	
       
    57 	IMPORT_C ~CJpegScaler();
       
    58 	
       
    59 	/** Scale
       
    60     *
       
    61     *   @param aRequestStatus - request status object
       
    62     *   @param aSrcFileName - source file name
       
    63     *   @param aTrgFileName - target file name
       
    64     *   @param aDestinationSize - size of the target file
       
    65     *   @return -
       
    66     */	
       
    67 	IMPORT_C void Scale(TRequestStatus* aRequestStatus, const TFileName& aSrcFileName, const TFileName& aTrgFileName, const TSize& aDestinationSize);
       
    68 	
       
    69 	/** Cancel
       
    70     *
       
    71     *   Cancel any outstanding activity
       
    72     *   
       
    73     *   @param - 
       
    74     *   @return -
       
    75     */	
       
    76 	IMPORT_C void Cancel();
       
    77 
       
    78 private:
       
    79 
       
    80 	CJpegScaler();
       
    81 	void ConstructL(RFs & aFsSession);
       
    82 
       
    83 private:
       
    84 
       
    85 	CJpegScalerImpl* iImplementation;
       
    86 
       
    87 };    
       
    88 
       
    89 
       
    90 
       
    91 #endif
       
    92 
       
    93 
       
    94 // End of File