uiacceltk/hitchcock/ServerCore/Inc/alfsrvsettingshandler.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c)  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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_ALFSRVSETTTINGSHANDLER_H
       
    21 #define C_ALFSRVSETTTINGSHANDLER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <uiacceltk/HuiRenderer.h>
       
    25 
       
    26 class CRepository;
       
    27 class MAlfSrvSettingsObserver;
       
    28 
       
    29 enum TAlfSrvRndFlags
       
    30     {
       
    31     EAlfSrvRndFlagFirst = 0x0100,
       
    32     
       
    33     // For drawing the dirty regions
       
    34     EAlfSrvRndFlagDrawDirtyRegions = EAlfSrvRndFlagFirst,
       
    35     
       
    36     // For drawing visual outline for all visuals
       
    37     EAlfSrvRndFlagDrawAllVisualOutline = EAlfSrvRndFlagFirst << 1, // 0x0200 if first 0x0100
       
    38     // For drawing visual outline for selected visuals and their children
       
    39     EAlfSrvRndFlagDrawSelectedVisualOutline = EAlfSrvRndFlagFirst << 2, // 0x0400 if first 0x0100
       
    40 
       
    41     // To enable texture memory usage calculation
       
    42     EAlfSrvRndFlagEnableTextureMemoryCalculation = EAlfSrvRndFlagFirst << 3 // 0x0800 if first 0x0100    
       
    43     };
       
    44 
       
    45 /**
       
    46  *  ?one_line_short_description
       
    47  *
       
    48  *  ?more_complete_description
       
    49  *
       
    50  *  @lib ?library
       
    51  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    52  */
       
    53 NONSHARABLE_CLASS( CAlfSrvSettingsHandler ) : public CActive
       
    54     {
       
    55 
       
    56 public:
       
    57 
       
    58     static CAlfSrvSettingsHandler* NewL( MAlfSrvSettingsObserver& aObserver );
       
    59 
       
    60     virtual ~CAlfSrvSettingsHandler();
       
    61 
       
    62     /**
       
    63      * ?description
       
    64      *
       
    65      * @since S60 ?S60_version
       
    66      * @param ?arg1 ?description
       
    67      * @param ?arg2 ?description
       
    68      * @return ?description
       
    69      */
       
    70     THuiRenderer Renderer();
       
    71     
       
    72     TUint DefaultFramerate();
       
    73     
       
    74     TUint MaxCpuUsage();
       
    75     
       
    76     TUint MaxResourceCacheSize();
       
    77     
       
    78     TUint EffectsComplexityFactor();
       
    79 
       
    80     TUint HWDriverConfiguration();
       
    81     
       
    82     TUint RndFlags();
       
    83 
       
    84 protected:
       
    85 
       
    86 // from base class CActive
       
    87 
       
    88     /**
       
    89      * From CActive
       
    90      * Run loop of active object.
       
    91      */
       
    92     void RunL();
       
    93     
       
    94     /**
       
    95      * From CActive
       
    96      * Cancel execution.
       
    97      */    
       
    98     void DoCancel();
       
    99     
       
   100     /**
       
   101      * From CActive
       
   102      * Called on an error within the RunL loop. Performs any
       
   103      * cleanup operations.
       
   104      * @param aError The error that occured.
       
   105      * @return the error.
       
   106      */        
       
   107     TInt RunError(TInt aError);
       
   108 
       
   109 private:
       
   110 
       
   111     CAlfSrvSettingsHandler( MAlfSrvSettingsObserver& aObserver );
       
   112 
       
   113     void ConstructL();
       
   114     
       
   115     void StartObserving();
       
   116 
       
   117 private: // data
       
   118 
       
   119     /**
       
   120      * ?description_of_member
       
   121      */
       
   122     MAlfSrvSettingsObserver& iObserver;
       
   123     CRepository* iCentralRepository;
       
   124     TUint iMaxCpuUsage; // Local cached value
       
   125     };
       
   126 
       
   127 
       
   128 #endif // C_ALFSRVSETTTINGSHANDLER_H