piprofiler/plugins/PWRplugin/inc/PwrPlugin.h
branchRCL_3
changeset 49 7fdc9a71d314
parent 46 e26895079d7c
equal deleted inserted replaced
46:e26895079d7c 49:7fdc9a71d314
    72     TInt    GetSamplerType();
    72     TInt    GetSamplerType();
    73 
    73 
    74     TInt    CreateFirstSample();
    74     TInt    CreateFirstSample();
    75 
    75 
    76     void    GetAttributesL(CArrayFixFlat<TSamplerAttributes>* aAttributes);
    76     void    GetAttributesL(CArrayFixFlat<TSamplerAttributes>* aAttributes);
    77     TInt    SetAttributesL(TSamplerAttributes aAttributes);
    77     TInt    SetAttributesL(TSamplerAttributes& aAttributes);
    78     void    InitiateSamplerAttributesL();
    78     void    InitiateSamplerAttributesL();
    79 
    79 
    80     TInt    ConvertRawSettingsToAttributes(CDesC8ArrayFlat* aSingleSettingArray);
    80     TInt    ConvertRawSettingsToAttributes(CDesC8ArrayFlat* aSingleSettingArray);
    81 
    81 
    82     TInt    DoSetSamplerSettings(CDesC8ArrayFlat* aAllSettings, TDesC8& aSamplerName, TInt aIndex);
    82     TInt    DoSetSamplerSettings(CDesC8ArrayFlat* aAllSettings, TDesC8& aSamplerName, TInt aIndex);
   106 public:
   106 public:
   107     TUint32*                iSampleTime;
   107     TUint32*                iSampleTime;
   108 };
   108 };
   109 
   109 
   110 #ifdef PWR_SAMPLER_BACKLIGHT
   110 #ifdef PWR_SAMPLER_BACKLIGHT
   111 class CProfilerPowerListener : public MHWRMBatteryPowerObserver, public MHWRMLightObserver
   111 class CProfilerPowerListener : public CBase, public MHWRMBatteryPowerObserver, public MHWRMLightObserver
   112 #else
   112 #else
   113 class CProfilerPowerListener : public MHWRMBatteryPowerObserver
   113 class CProfilerPowerListener : public CBase, public MHWRMBatteryPowerObserver
   114 #endif
   114 #endif
   115 {
   115 {
   116 public:
   116 public:
   117     static  CProfilerPowerListener* NewL(CPwrPlugin* aSampler);
   117     static  CProfilerPowerListener* NewL(CPwrPlugin* aSampler);
   118             ~CProfilerPowerListener();
   118             ~CProfilerPowerListener();