uiaccelerator_plat/alf_visual_api/inc/alf/alfdrawer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 22 Feb 2010 17:57:49 +0200
branchRCL_3
changeset 3 d8a3531bc6b8
child 6 10534483575f
permissions -rw-r--r--
Revision: 201007

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   
*
*/
#ifndef __ALFDRAWER_H__
#define __ALFDRAWER_H__

#include <e32base.h>

/**
 * This provides additional alf drawing synchronization.
 * 
 * This class requires application environment (CCoeEnv) to exist.
 */
NONSHARABLE_CLASS( CAlfDrawer ) : public CBase
    {
public:
    /**
     * Creates new CAlfDrawer instance.
     * @return newly created instance.
     */
    IMPORT_C static CAlfDrawer* NewL();
    
    /**
     * Destructor.
     */
    IMPORT_C ~CAlfDrawer();

public:
    /**
     * Finishes drawing. 
     * This will perform similar operation as RWsSession::Finish
     * and then wait for all pending drawing to be finished.
     * @return error code, KErrNone upon success.
     */
    IMPORT_C TInt Finish();

private:
    CAlfDrawer();
    void ConstructL();

private:
    struct TAlfDrawerData;
    TAlfDrawerData* iData;
    };

#endif // __ALFDRAWER_H__