connectionmonitoring/indicatorobserver/inc/indicatorobserver.h
changeset 47 cb7afde124a3
parent 46 95d45f234cf3
child 73 70ee5458c95d
equal deleted inserted replaced
46:95d45f234cf3 47:cb7afde124a3
    23 #include <qnetworkconfigmanager.h>
    23 #include <qnetworkconfigmanager.h>
    24 #include <qnetworkconfiguration.h>
    24 #include <qnetworkconfiguration.h>
    25 #include <xqsettingskey.h>
    25 #include <xqsettingskey.h>
    26 
    26 
    27 class XQSettingsManager;
    27 class XQSettingsManager;
       
    28 class HbIndicator;
    28 
    29 
    29 QTM_USE_NAMESPACE
    30 QTM_USE_NAMESPACE
    30 
    31 
    31 const int wlanNotConnected = 0;
    32 const int wlanNotConnected = 0;
    32 const int wlanConnected = 1;
    33 const int wlanConnected = 1;
    59     void deactivateCellularIndicatorPlugin();
    60     void deactivateCellularIndicatorPlugin();
    60      
    61      
    61     void activateWlanIndicatorPlugin(QList<QVariant> list);
    62     void activateWlanIndicatorPlugin(QList<QVariant> list);
    62     
    63     
    63     void deactivateWlanIndicatorPlugin();
    64     void deactivateWlanIndicatorPlugin();
    64         
    65     
    65 private slots:
    66 private slots:
    66     void updateWlanRadioStatus(const XQSettingsKey &key, const QVariant &value);
    67     void updateWlanRadioStatus(const XQSettingsKey &key, const QVariant &value);
    67 
    68 
    68     void handleConfigurationChanged(const QNetworkConfiguration& config);
    69     void handleConfigurationChanged(const QNetworkConfiguration& config);
       
    70     
       
    71     void userActivateCellularIndicator(const QString &type, const QVariantMap &data);
       
    72 
       
    73     void userActivateWlanIndicator(const QString &type, const QVariantMap &data);
    69     
    74     
    70 private:
    75 private:
    71     /*!
    76     /*!
    72         Pointer to network configuration manager
    77         Pointer to network configuration manager
    73     */
    78     */
   105     
   110     
   106     /*!
   111     /*!
   107         Indicates whether cellular indicator plugin is activated
   112         Indicates whether cellular indicator plugin is activated
   108     */
   113     */
   109     bool mCellularIndicatorIsActivated;
   114     bool mCellularIndicatorIsActivated;
       
   115     
       
   116     /*!
       
   117          Pointer to the WLAN indicator
       
   118      */
       
   119     HbIndicator *mWlanIndicator;
       
   120     
       
   121     /*!
       
   122          Pointer to the cellular indicator
       
   123      */
       
   124     HbIndicator *mCellularIndicator;
   110 
   125 
   111     friend class ObserverTester;
   126     friend class ObserverTester;
   112     
   127     
   113     };
   128     };
   114 
   129