uiaccelerator_plat/alf_client_server_api/inc/alf/alfdirectclient.h
changeset 0 15bf7259bb7c
child 8 10534483575f
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2009 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:   This direct client to alf server, that does not require Alf 
       
    15 *                environment.
       
    16 *                
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef _ALFDIRECTCLIENT_H_
       
    21 #define _ALFDIRECTCLIENT_H_
       
    22 
       
    23 #include <alf/alfclientbase.h>
       
    24 #include <alf/alfconstants.h>
       
    25 
       
    26 NONSHARABLE_CLASS( RAlfDirectClient ): public RAlfClientBase
       
    27     {
       
    28     public:
       
    29     /**
       
    30      * Constructor
       
    31      */
       
    32     IMPORT_C RAlfDirectClient();
       
    33     
       
    34     /**
       
    35      * Disconnect from the server. Must be called before destruction
       
    36      */ 
       
    37     IMPORT_C void Disconnect();
       
    38     
       
    39     
       
    40     /** 
       
    41      * MeasureFPS
       
    42      * 
       
    43      * Several FPS counters can be ongoing simultaniously. If a measurement is 
       
    44      * started for already ongoing measurement identifier, then the first 
       
    45      * measurement is disgarded.
       
    46      * 
       
    47      * @param   aId Unique identifier for the measurement.
       
    48      * @param   aStart  ETrue, if starting measurement. EFalse, if stopping 
       
    49      *          and logging measurement result.
       
    50      */
       
    51     IMPORT_C void MeasureFPS( TInt32 aId, TBool aStart );
       
    52     
       
    53     /**
       
    54      * EnableLowMemoryState
       
    55      *
       
    56      * Enables low memory state in ALF
       
    57      * 
       
    58      * @param aMode ETrue to enable low memory, EFalse to disable  
       
    59      */
       
    60     IMPORT_C void EnableLowMemoryState( TBool aMode );
       
    61 
       
    62     /**
       
    63      * Forces SW rendering to be used. 
       
    64      * This method is intended to be only used for testing
       
    65      * of SW rendering.
       
    66      * @param aEnabled ETrue - SW rendering enabled, 
       
    67      *                 EFalse - SW rendering disabled.
       
    68      * @return error code.
       
    69      */
       
    70     IMPORT_C TInt ForceSwRendering( TBool aEnabled );
       
    71     
       
    72     };
       
    73 
       
    74 #endif