qtmobility/src/systeminfo/symbian/telephonyinfo_s60.h
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 11 06b8e2af4411
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
    51 
    51 
    52 class MTelephonyInfoObserver
    52 class MTelephonyInfoObserver
    53 {
    53 {
    54 public:
    54 public:
    55     virtual void batteryLevelChanged() = 0;
    55     virtual void batteryLevelChanged() = 0;
    56     virtual void powerStateChanged() = 0;
       
    57 
    56 
    58     virtual void countryCodeChanged() = 0;
    57     virtual void countryCodeChanged() = 0;
    59     virtual void networkCodeChanged() = 0;
    58     virtual void networkCodeChanged() = 0;
    60     virtual void networkNameChanged() = 0;
    59     virtual void networkNameChanged() = 0;
    61     virtual void networkModeChanged() = 0;
    60     virtual void networkModeChanged() = 0;
   123     CTelephony::TSubscriberIdV1Pckg m_subscriberIdV1Pckg;
   122     CTelephony::TSubscriberIdV1Pckg m_subscriberIdV1Pckg;
   124 
   123 
   125     QString m_imsi;
   124     QString m_imsi;
   126 };
   125 };
   127 
   126 
   128 /*
       
   129 class CIndicatorInfo : public CTelephonyInfo
       
   130 {
       
   131 public:
       
   132     CIndicatorInfo(CTelephony &telephony);
       
   133 
       
   134 protected:
       
   135     void DoCancel();
       
   136 
       
   137 public:
       
   138     bool isBatteryCharging() const;
       
   139 
       
   140 private:
       
   141     CTelephony::TBatteryInfoV1Pckg m_batteryInfoV1Pckg;
       
   142     CTelephony::TBatteryInfoV1 m_batteryInfoV1;
       
   143 };
       
   144 */
       
   145 
       
   146 class CBatteryInfo : public CTelephonyInfo
   127 class CBatteryInfo : public CTelephonyInfo
   147 {
   128 {
   148 public:
   129 public:
   149     CBatteryInfo(CTelephony &telephony);
   130     CBatteryInfo(CTelephony &telephony);
   150     void startMonitoring();
   131     void startMonitoring();
   153     void RunL();
   134     void RunL();
   154     void DoCancel();
   135     void DoCancel();
   155 
   136 
   156 public:
   137 public:
   157     int batteryLevel() const;
   138     int batteryLevel() const;
   158     CTelephony::TBatteryStatus powerState() const;
       
   159 
   139 
   160 private:
   140 private:
   161     bool m_initializing;
   141     bool m_initializing;
   162 
   142 
   163     CTelephony::TBatteryInfoV1 m_batteryInfoV1;
   143     CTelephony::TBatteryInfoV1 m_batteryInfoV1;
   164     CTelephony::TBatteryInfoV1Pckg m_batteryInfoV1Pckg;
   144     CTelephony::TBatteryInfoV1Pckg m_batteryInfoV1Pckg;
   165     
   145     
   166     int m_batteryLevel;
   146     int m_batteryLevel;
   167     int m_previousBatteryLevel;
   147     int m_previousBatteryLevel;
   168 
       
   169     CTelephony::TBatteryStatus m_powerState;
       
   170     CTelephony::TBatteryStatus m_previousPowerState;
       
   171 };
   148 };
   172 
   149 
   173 class CCellNetworkInfo : public CTelephonyInfo
   150 class CCellNetworkInfo : public CTelephonyInfo
   174 {
   151 {
   175 public:
   152 public: