featuremgmt/featuremgr/src/clientdll/featmgrtlsdata.h
branchRCL_3
changeset 8 fa9941cf3867
parent 0 08ec8eefde2f
child 9 667e88a979d7
equal deleted inserted replaced
6:5ffdb8f2067f 8:fa9941cf3867
    27 #include "featmgrclient.h"
    27 #include "featmgrclient.h"
    28 #include "featureclient.h"
    28 #include "featureclient.h"
    29 
    29 
    30 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    31 class MFeatureObserver;
    31 class MFeatureObserver;
       
    32 
       
    33 //Exported function for test purpose only 
       
    34 IMPORT_C TInt GetClientCount();
    32 
    35 
    33 // CLASS DECLARATION
    36 // CLASS DECLARATION
    34 
    37 
    35 /**
    38 /**
    36 * Feature manager internal implementation.
    39 * Feature manager internal implementation.
    65 
    68 
    66 		/**
    69 		/**
    67         * Decrease client count for this thread
    70         * Decrease client count for this thread
    68         */
    71         */
    69 		void DecreaseClientCount();
    72 		void DecreaseClientCount();
       
    73 		
       
    74 		/**
       
    75         * Get client count for this thread. Used for testing purpose only
       
    76         */
       
    77         int ClientCount();
    70         
    78         
    71 		/**
    79 		/**
    72         * From MFeatureClient
    80         * From MFeatureClient
    73         */
    81         */
    74         TInt FeatureSupported( TFeatureEntry& aFeature ) const;
    82         TInt FeatureSupported( TFeatureEntry& aFeature ) const;
   126 		
   134 		
   127 
   135 
   128 #ifdef EXTENDED_FEATURE_MANAGER_TEST
   136 #ifdef EXTENDED_FEATURE_MANAGER_TEST
   129 		// Debug only API functions
   137 		// Debug only API functions
   130     public:
   138     public:
       
   139         void ResourceMark();
       
   140         void ResourceCheck();
       
   141         TInt ResourceCount();
       
   142         void SetHeapFailure(TInt aAllocFailType, TInt aRate);
   131 		TInt NumberOfNotifyFeatures( void ) const;
   143 		TInt NumberOfNotifyFeatures( void ) const;
   132 		TInt CountAllocCells( void ) const;
   144 		TInt CountAllocCells( void ) const;
   133 #endif
   145 #endif
   134       		
   146       		
   135     };
   147     };