equal
deleted
inserted
replaced
156 MProfilerErrorObserver, |
156 MProfilerErrorObserver, |
157 MProfilerTimerObserver |
157 MProfilerTimerObserver |
158 { |
158 { |
159 public: |
159 public: |
160 |
160 |
161 static CProfiler* NewLC(const TDesC& aSettingsFile); |
161 static CProfiler* NewLC(const TDesC& aSettingsFile, TBool aBootMode=EFalse); |
162 |
162 |
163 /** |
163 /** |
164 * Method for control commands, i.e. start, stop and exit |
164 * Method for control commands, i.e. start, stop and exit |
165 * |
165 * |
166 * @param aCommand command to be parsed and executed |
166 * @param aCommand command to be parsed and executed |
197 void Finalise(); |
197 void Finalise(); |
198 CProfilerSampleStream* GetSamplerStream(); |
198 CProfilerSampleStream* GetSamplerStream(); |
199 void HandleError(TInt aErr); |
199 void HandleError(TInt aErr); |
200 static TBool CheckLocationSanity(RFs& fs, const TDesC8& aLocation); |
200 static TBool CheckLocationSanity(RFs& fs, const TDesC8& aLocation); |
201 private: |
201 private: |
202 CProfiler(const TDesC& aSettingsFile); |
202 CProfiler(const TDesC& aSettingsFile, TBool aBootmode); |
203 ~CProfiler(); |
203 ~CProfiler(); |
204 void ConstructL(); |
204 void ConstructL(); |
205 TInt LoadSettingsL(/*const TDesC& configFile*/); |
205 TInt LoadSettingsL(/*const TDesC& configFile*/); |
206 void DoGetValueFromSettingsArray(CDesC8ArrayFlat* aLineArray, const TDesC8& aAttribute, TDes8& aValue); |
206 void DoGetValueFromSettingsArray(CDesC8ArrayFlat* aLineArray, const TDesC8& aAttribute, TDes8& aValue); |
207 void DoGetValueFromSettingsArray(CDesC8ArrayFlat* aLineArray, const TDesC8& aAttribute, TInt& aValue); |
207 void DoGetValueFromSettingsArray(CDesC8ArrayFlat* aLineArray, const TDesC8& aAttribute, TInt& aValue); |
249 TBuf<128> iFileNameStream; |
249 TBuf<128> iFileNameStream; |
250 private: |
250 private: |
251 TBool iSettingsFileLoaded; |
251 TBool iSettingsFileLoaded; |
252 CProfilerErrorChecker* iErrorChecker; |
252 CProfilerErrorChecker* iErrorChecker; |
253 CProfilerTimer* iTimer; |
253 CProfilerTimer* iTimer; |
|
254 TBool iBootMode; |
254 }; |
255 }; |
255 |
256 |
256 #include <piprofiler/ProfilerGenericClassesUsr.h> |
257 #include <piprofiler/ProfilerGenericClassesUsr.h> |
257 #endif // __PROFILERENGINE__ |
258 #endif // __PROFILERENGINE__ |
258 |
259 |