uiaccelerator_plat/alf_visual_api/inc/alf/alfdrawer.h
branchRCL_3
changeset 3 d8a3531bc6b8
child 6 10534483575f
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
       
     1 /*
       
     2 * Copyright (c) 2010 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 *
       
    16 */
       
    17 #ifndef __ALFDRAWER_H__
       
    18 #define __ALFDRAWER_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 /**
       
    23  * This provides additional alf drawing synchronization.
       
    24  * 
       
    25  * This class requires application environment (CCoeEnv) to exist.
       
    26  */
       
    27 NONSHARABLE_CLASS( CAlfDrawer ) : public CBase
       
    28     {
       
    29 public:
       
    30     /**
       
    31      * Creates new CAlfDrawer instance.
       
    32      * @return newly created instance.
       
    33      */
       
    34     IMPORT_C static CAlfDrawer* NewL();
       
    35     
       
    36     /**
       
    37      * Destructor.
       
    38      */
       
    39     IMPORT_C ~CAlfDrawer();
       
    40 
       
    41 public:
       
    42     /**
       
    43      * Finishes drawing. 
       
    44      * This will perform similar operation as RWsSession::Finish
       
    45      * and then wait for all pending drawing to be finished.
       
    46      * @return error code, KErrNone upon success.
       
    47      */
       
    48     IMPORT_C TInt Finish();
       
    49 
       
    50 private:
       
    51     CAlfDrawer();
       
    52     void ConstructL();
       
    53 
       
    54 private:
       
    55     struct TAlfDrawerData;
       
    56     TAlfDrawerData* iData;
       
    57     };
       
    58 
       
    59 #endif // __ALFDRAWER_H__