wlanutilities/wlanwizard/t_wlanwizard/stubs/wlanqtutils.h
changeset 46 2fbd1d709fe7
parent 38 2dc6da6fb431
equal deleted inserted replaced
45:d9ec2b8c6bad 46:2fbd1d709fe7
    34     friend class WlanQtUtilsContext;
    34     friend class WlanQtUtilsContext;
    35 public:
    35 public:
    36     //! "None" IAP ID value (e.g. for "not found" cases)
    36     //! "None" IAP ID value (e.g. for "not found" cases)
    37     static const int IapIdNone = -1;
    37     static const int IapIdNone = -1;
    38     
    38     
       
    39     /*!
       
    40         WLAN connection status.
       
    41         Remember to update traces/trace.properties when modifying this enum.
       
    42     */
       
    43     enum ConnStatus {
       
    44         ConnStatusNone = 0,         //!< Reserved.
       
    45         ConnStatusConnecting,       //!< Connecting.
       
    46         ConnStatusConnected,        //!< Connected.
       
    47         ConnStatusDisconnected      //!< Disconnected.
       
    48     };
       
    49     
       
    50     /*!
       
    51         WLAN scan status
       
    52         Remember to update traces/trace.properties when modifying this enum.
       
    53     */
       
    54     enum ScanStatus {
       
    55         ScanStatusOk = 0,           //!< Scan succeeded.
       
    56         ScanStatusCancelled,        //!< Scan was cancelled.
       
    57         ScanStatusError             //!< Scan failed.
       
    58     };
       
    59     
       
    60     /*! 
       
    61         Internet Connectivity Test status.
       
    62         Remember to update traces/trace.properties when modifying this enum.
       
    63     */        
       
    64     enum IctStatus {
       
    65         IctPassed = 0,              //!< Normal ICT passed.
       
    66         IctHotspotPassed,           //!< Hotspot ICT passed.
       
    67         IctCancelled,               //!< ICT was cancelled.
       
    68         IctFailed                   //!< ICT failed.
       
    69     }; 
       
    70 
    39 public:
    71 public:
    40     WlanQtUtils();
    72     WlanQtUtils();
    41     
    73     
    42     ~WlanQtUtils();
    74     ~WlanQtUtils();
    43    
    75    
    63 
    95 
    64     void stopWlanScan();
    96     void stopWlanScan();
    65 
    97 
    66 signals:
    98 signals:
    67     
    99     
    68     void wlanScanApReady();
   100     void wlanScanApReady(int scanStatus);
    69    
   101    
    70     void wlanScanDirectReady();
   102     void wlanScanDirectReady(int scanStatus);
    71     
   103     
    72     void wlanNetworkOpened(int iapId);
   104     void wlanNetworkOpened(int iapId);
    73 
   105 
    74     void wlanNetworkClosed(int iapId, int reason);
   106     void wlanNetworkClosed(int iapId, int reason);
    75 
   107 
    76 #ifdef ICT_RESULT_ENUM
   108     void ictResult(int iapId, int result);
    77     void ictResult(int iapId, WlanLoginIctsResultType result);
       
    78 #else
       
    79     void ictResult(int iapId, bool result);
       
    80 #endif
       
    81 
   109 
    82 private: // Return values for all methods.
   110 private: // Return values for all methods.
       
   111     
       
   112     void emitScanApsReady();
       
   113     
    83     QList<QSharedPointer<WlanQtUtilsAp> > mScanWlanAps;
   114     QList<QSharedPointer<WlanQtUtilsAp> > mScanWlanAps;
    84     QList<QSharedPointer<WlanQtUtilsAp> > mScanWlanDirect;
   115     QList<QSharedPointer<WlanQtUtilsAp> > mScanWlanDirect;
    85     QList<QSharedPointer<WlanQtUtilsAp> > *mScanResult;
   116     QList<QSharedPointer<WlanQtUtilsAp> > *mScanResult;
    86     QString mScanWlanDirectSsid;
   117     QString mScanWlanDirectSsid;
    87     int mCreateWlanIapReturn;
   118     int mCreateWlanIapReturn;
    88     bool mUpdateWlanIapReturn;
   119     bool mUpdateWlanIapReturn;
    89     
   120     
    90     int mWlanNetworkOpenedIapId;
   121     int mWlanNetworkOpenedIapId;
    91     int mWlanNetworkActiveIapId;
   122     int mWlanNetworkActiveIapId;
    92     int mWlanNetworkClosedIapId;
   123     int mWlanNetworkClosedIapId;
    93     bool mWlanNetworkClosedReason;
   124     int mWlanNetworkClosedReason;
       
   125     
       
   126     int mActiveWlanIapReturn;
    94     
   127     
    95     int mIctResultIapId;
   128     int mIctResultIapId;
    96 #ifdef ICT_RESULT_ENUM
   129     WlanQtUtils::IctStatus mIctResultResults;
    97     WlanLoginIctsResultType mIctResultResults;
   130 
    98 #else
       
    99     bool mIctResultResults;
       
   100 #endif
       
   101     bool mConnectionSuccess;
   131     bool mConnectionSuccess;
   102     
   132     
   103     QStringList mCalledMethods;
   133     QStringList mCalledMethods;
   104     
   134     
   105     WlanQtUtilsAp *mWlanAp;
   135     WlanQtUtilsAp *mWlanAp;
       
   136     
       
   137     bool mEmitScanApReady;
       
   138     
       
   139     int mScanApStatus;
       
   140     int mScanDirectStatus;
   106 };
   141 };
   107 
   142 
   108 #endif /* WLANQTUTILS_H */
   143 #endif /* WLANQTUTILS_H */
   109 
   144 
   110 // End of File
   145 // End of File