qtmobility/plugins/sensors/symbian/sensorbackendsym.h
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 11 06b8e2af4411
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
   152          * InitializeL is used to create and init the sensor server objects
   152          * InitializeL is used to create and init the sensor server objects
   153          */ 
   153          */ 
   154         void InitializeL();
   154         void InitializeL();
   155         
   155         
   156         /*
   156         /*
       
   157          * SetProperty is used to set property to the channel
       
   158          */         
       
   159         TInt SetProperty(TSensrvPropertyId aPropertyId, TSensrvPropertyType aPropertyType, TSensrvArrayIndex aArrayIndex, TReal aValue);
       
   160         
       
   161         /*
       
   162          * SetMeasurementRange is used to check measurement range type and set the measurement range
       
   163          */
       
   164         TInt SetMeasurementRange();
       
   165         
       
   166         /*
       
   167          * SetDataRate is used to calculate appropriate data rate for given interval and set that interval to the channel
       
   168          */
       
   169         TInt SetDataRate();
       
   170         
       
   171         /*
       
   172          * SetProperties is used to set properties on the channel before start data listening 
       
   173          */
       
   174         void SetProperties();
       
   175         
       
   176         /*
       
   177          * GetPropertiesL used to get the properties from sensor server and sets as metadata for Qt.
       
   178          */
       
   179         void GetPropertiesL();
       
   180        
       
   181         /*
       
   182          * GetDescription used to get description of sensor from symbian and set
       
   183          * as description in Qt
       
   184          */
       
   185         void GetDescription();
       
   186         
       
   187         /*
       
   188          * GetDataRate used to get available datarates from symbian and set
       
   189          * as availableDataRates in Qt
       
   190          */
       
   191         void GetDataRate();
       
   192         
       
   193         /*
       
   194          * GetMeasurementrangeAndAccuracy used to get measurement ranges and accuracy from
       
   195          * symbian and set as outputRanges in Qt
       
   196          */
       
   197         void GetMeasurementrangeAndAccuracy();
       
   198         
       
   199         /*
   157          * Close is used to release all the sensor server objects
   200          * Close is used to release all the sensor server objects
   158          * May change when error handling is supported by mobility apis
   201          * May change when error handling is supported by mobility apis
   159          */
   202          */
   160         TInt Close();
   203         TInt Close();
   161         
   204         
   184         
   227         
   185         /*
   228         /*
   186          * Used to stop listening to the sensor
   229          * Used to stop listening to the sensor
   187          */
   230          */
   188         void StopListeningL();
   231         void StopListeningL();
   189         
       
   190         /*
       
   191          * timerEvent is called when timer expires, this is used for supporting time based
       
   192          * sensor update policies
       
   193          */
       
   194         void timerEvent(QTimerEvent *aTimerEvent);
       
   195 
   232 
   196     protected:
   233     protected:
   197         TSensorBackendDataSym iBackendData;
   234         TSensorBackendDataSym iBackendData;
   198     };
   235     };
   199 
   236