messagingappbase/smartmessaging/oplogobc/inc/OperatorLogoOTAConv.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 *
       
    14 * Description:  
       
    15 *     Image conversion
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef COPERATORLOGOOTACONV_H
       
    22 #define COPERATORLOGOOTACONV_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CActiveSchedulerWait;
       
    29 class CFbsBitmap;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * Image convertor class for operatorlogo biocontrol
       
    35 */
       
    36 NONSHARABLE_CLASS( COperatorLogoOTAConv ) : public CActive
       
    37     {
       
    38 
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static COperatorLogoOTAConv* NewL();
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static COperatorLogoOTAConv* NewLC();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~COperatorLogoOTAConv();
       
    55 
       
    56     public: // New functions
       
    57 
       
    58         /**
       
    59          * Converts OTA-image to mbm.
       
    60          * @param aFile path and filename of the image
       
    61          * @param aBitmap bitmap to be created
       
    62          */
       
    63         void ConvertImageL( const TDesC& aFile,
       
    64                             CFbsBitmap& aBitmap );
       
    65 
       
    66     protected:  // New functions
       
    67 
       
    68         void StartWait();
       
    69 
       
    70         void StopWait();
       
    71 
       
    72 
       
    73     protected:  // Functions from base classes
       
    74 
       
    75         void DoCancel();
       
    76 
       
    77         void RunL();
       
    78 
       
    79     private:
       
    80 
       
    81         /**
       
    82         * C++ default constructor.
       
    83         */
       
    84         COperatorLogoOTAConv();
       
    85 
       
    86         /**
       
    87         * By default Symbian 2nd phase constructor is private.
       
    88         */
       
    89         void ConstructL();
       
    90         
       
    91     private:    // Data
       
    92         
       
    93         CActiveSchedulerWait iWait;
       
    94 
       
    95     };
       
    96 #endif // COPERATORLOGOOTACONV_H
       
    97 
       
    98 // End of File