wlanutilities/wlanqtutilities/base/inc/wlanqtutils.h
changeset 46 2fbd1d709fe7
parent 38 2dc6da6fb431
child 58 301aeb18ae47
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
    57     static const int IapIdNone = -1;
    57     static const int IapIdNone = -1;
    58 
    58 
    59     /*!
    59     /*!
    60         WLAN connection status.
    60         WLAN connection status.
    61         Remember to update traces/trace.properties when modifying this enum.
    61         Remember to update traces/trace.properties when modifying this enum.
    62     */        
    62     */
    63     enum ConnStatus {
    63     enum ConnStatus {
    64         ConnStatusNone = 0,         //!< Reserved.
    64         ConnStatusNone = 0,         //!< Reserved.
    65         ConnStatusConnecting,       //!< Connecting.
    65         ConnStatusConnecting,       //!< Connecting.
    66         ConnStatusConnected,        //!< Connected.
    66         ConnStatusConnected,        //!< Connected.
    67         ConnStatusDisconnected      //!< Disconnected.
    67         ConnStatusDisconnected      //!< Disconnected.
    68     };
    68     };
    69     
    69     
       
    70     /*!
       
    71         WLAN scan status
       
    72         Remember to update traces/trace.properties when modifying this enum.
       
    73     */
       
    74     enum ScanStatus {
       
    75         ScanStatusOk = 0,           //!< Scan succeeded.
       
    76         ScanStatusCancelled,        //!< Scan was cancelled.
       
    77         ScanStatusError             //!< Scan failed.
       
    78     };
       
    79     
       
    80     /*! 
       
    81         Internet Connectivity Test status.
       
    82         Remember to update traces/trace.properties when modifying this enum.
       
    83     */        
       
    84     enum IctStatus {
       
    85         IctPassed = 0,              //!< Normal ICT passed.
       
    86         IctHotspotPassed,           //!< Hotspot ICT passed.
       
    87         IctCancelled,               //!< ICT was cancelled.
       
    88         IctFailed                   //!< ICT failed.
       
    89     };    
       
    90     
    70     WlanQtUtils();
    91     WlanQtUtils();
    71     
    92     
    72     ~WlanQtUtils();
    93     ~WlanQtUtils();
    73 
    94 
    74     void scanWlans();
    95     void scanWlans();
   103     QString iapName(int iapId) const;
   124     QString iapName(int iapId) const;
   104 
   125 
   105 signals:
   126 signals:
   106 
   127 
   107     /*!
   128     /*!
   108         Signal indicating that WLAN scan results are available. 
   129         Signal indicating that WLAN scan is complete when scanning
   109     */
   130         is requested with scanWlans() method.
   110     void wlanScanReady();
   131         
   111     
   132         @param [in] status Scan status code (ScanStatus).
   112     /*!
   133     */
   113         Signal indicating that WLAN scan results are available when scanning
   134     void wlanScanReady(int status);
       
   135     
       
   136     /*!
       
   137         Signal indicating that WLAN scan is complete when scanning
   114         is requested with scanWlanAps() method.
   138         is requested with scanWlanAps() method.
   115     */
   139         
   116     void wlanScanApReady();
   140         @param [in] status Scan status code (ScanStatus).
   117     
   141     */
   118     /*!
   142     void wlanScanApReady(int status);
   119         Signal indicating that WLAN scan results are available when scanning
   143     
       
   144     /*!
       
   145         Signal indicating that WLAN scan is complete when scanning
   120         is requested with scanWlanDirect() method.
   146         is requested with scanWlanDirect() method.
   121     */
   147         
   122     void wlanScanDirectReady();
   148         @param [in] status Scan status code (ScanStatus).
       
   149     */
       
   150     void wlanScanDirectReady(int status);
   123     
   151     
   124     /*!
   152     /*!
   125         Signal indicating that new WLAN network has been opened. 
   153         Signal indicating that new WLAN network has been opened. 
   126 
   154 
   127         @param [in] iapId ID of the opened IAP.
   155         @param [in] iapId ID of the opened IAP.
   141 
   169 
   142     /*!
   170     /*!
   143         Signal indicating result of finished ICT run.
   171         Signal indicating result of finished ICT run.
   144 
   172 
   145         @param [in] iapId ID of IAP ICT was run for.
   173         @param [in] iapId ID of IAP ICT was run for.
   146         @param [in] result True: ICT passed, False: ICT failed.
   174         @param [in] result IctPassed: Normal ICT passed,
   147     */
   175                            IctHotspotPassed: Hotspot ICT passed,
   148     void ictResult(int iapId, bool result);
   176                            IctCancelled: ICT was cancelled,
       
   177                            IctFailed: ICT failed
       
   178     */
       
   179     void ictResult(int iapId, int result);
   149     
   180     
   150 public slots:
   181 public slots:
   151 
   182 
   152 protected:
   183 protected:
   153 
   184