uiaccelerator_plat/alf_visual_api/inc/alf/alfdrawer.h
branchRCL_3
changeset 3 d8a3531bc6b8
child 6 10534483575f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uiaccelerator_plat/alf_visual_api/inc/alf/alfdrawer.h	Mon Feb 22 17:57:49 2010 +0200
@@ -0,0 +1,59 @@
+/*
+* 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__