uiaccelerator_plat/alf_client_server_api/inc/alf/alfdirectclient.h
changeset 0 15bf7259bb7c
child 8 10534483575f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uiaccelerator_plat/alf_client_server_api/inc/alf/alfdirectclient.h	Tue Feb 02 07:56:43 2010 +0200
@@ -0,0 +1,74 @@
+/*
+* Copyright (c) 2009 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:   This direct client to alf server, that does not require Alf 
+*                environment.
+*                
+*/
+
+
+#ifndef _ALFDIRECTCLIENT_H_
+#define _ALFDIRECTCLIENT_H_
+
+#include <alf/alfclientbase.h>
+#include <alf/alfconstants.h>
+
+NONSHARABLE_CLASS( RAlfDirectClient ): public RAlfClientBase
+    {
+    public:
+    /**
+     * Constructor
+     */
+    IMPORT_C RAlfDirectClient();
+    
+    /**
+     * Disconnect from the server. Must be called before destruction
+     */ 
+    IMPORT_C void Disconnect();
+    
+    
+    /** 
+     * MeasureFPS
+     * 
+     * Several FPS counters can be ongoing simultaniously. If a measurement is 
+     * started for already ongoing measurement identifier, then the first 
+     * measurement is disgarded.
+     * 
+     * @param   aId Unique identifier for the measurement.
+     * @param   aStart  ETrue, if starting measurement. EFalse, if stopping 
+     *          and logging measurement result.
+     */
+    IMPORT_C void MeasureFPS( TInt32 aId, TBool aStart );
+    
+    /**
+     * EnableLowMemoryState
+     *
+     * Enables low memory state in ALF
+     * 
+     * @param aMode ETrue to enable low memory, EFalse to disable  
+     */
+    IMPORT_C void EnableLowMemoryState( TBool aMode );
+
+    /**
+     * Forces SW rendering to be used. 
+     * This method is intended to be only used for testing
+     * of SW rendering.
+     * @param aEnabled ETrue - SW rendering enabled, 
+     *                 EFalse - SW rendering disabled.
+     * @return error code.
+     */
+    IMPORT_C TInt ForceSwRendering( TBool aEnabled );
+    
+    };
+
+#endif