wlanutilities/wlansniffer/model/inc/wsfmodel.h
branchRCL_3
changeset 10 dff6ebfd236f
parent 2 6e4b6261703d
child 12 981afc7d3841
equal deleted inserted replaced
8:c2bc3f8c7777 10:dff6ebfd236f
    14 * Description:  Class header for CWsfModel
    14 * Description:  Class header for CWsfModel
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
       
    19 
    19 #ifndef C_WSFMODEL_H
    20 #ifndef C_WSFMODEL_H
    20 #define C_WSFMODEL_H
    21 #define C_WSFMODEL_H
    21 
    22 
    22 
    23 
    23 //  EXTERNAL INCLUDES
    24 //  EXTERNAL INCLUDES
   105         * Return the latest list of found WLANs. Ownership not passed.
   106         * Return the latest list of found WLANs. Ownership not passed.
   106         * @since S60 5.0
   107         * @since S60 5.0
   107         * @return Array of WLANs
   108         * @return Array of WLANs
   108         */
   109         */
   109         IMPORT_C CWsfWlanInfoArray* GetWlanListL();
   110         IMPORT_C CWsfWlanInfoArray* GetWlanListL();
   110 
   111         
       
   112 		/**
       
   113         * Asyncronous request to the server to return wlan list size
       
   114         * @since S60 5.2
       
   115         * @param aPckg request result
       
   116         * @param aStatus The request status object used to contain 
       
   117         *        the completion status of the request.
       
   118         */
       
   119         IMPORT_C void GetWlanListSize( TPckgBuf<TUint>& aPckg, 
       
   120                                        TRequestStatus& aStatus );
       
   121 
       
   122 		/**
       
   123         * Asyncronous request to the server to return wlan list
       
   124         * @since S60 5.2
       
   125         * @param aPckg request result
       
   126 		* @param aPtr wlan list
       
   127         * @param aStatus The request status object used to contain 
       
   128         *        the completion status of the request.
       
   129         */
       
   130         IMPORT_C void GetWlanList( TPckgBuf<TUint>& aPckg, TPtr8& aPtr, 
       
   131                                    TRequestStatus& aStatus );
       
   132         
   111         /**
   133         /**
   112         * Store active views UID
   134         * Store active views UID
   113         * @since S60 5.0
   135         * @since S60 5.0
   114         * @param aActiveViewId Active view's UID
   136         * @param aActiveViewId Active view's UID
   115         */
   137         */
   142         * @param aIapId WLAN IAP id to connect to.
   164         * @param aIapId WLAN IAP id to connect to.
   143         */
   165         */
   144         IMPORT_C int ConnectL( TUint32 aIapId );
   166         IMPORT_C int ConnectL( TUint32 aIapId );
   145         
   167         
   146         /**
   168         /**
   147         * Connects to the given WLAN IAP
   169         * Asyncronous request to the server to connect to the given WLAN IAP
   148         * @since S60 5.2
   170         * @since S60 5.2
       
   171         * @param aPckg request result
   149         * @param aIapId WLAN IAP id to connect to.
   172         * @param aIapId WLAN IAP id to connect to.
   150         */
   173         * @param aPersistence The value of the persistence property
   151         IMPORT_C int ConnectWithoutConnWaiterL( TUint32 aIapId, 
   174         * @param aStatus The request status object used to contain 
   152                                                 TBool aTestedAccessPoint );
   175         *        the completion status of the request.
   153         /**
   176         */
   154         * Starts auto-disconnect timer for connected network
   177         IMPORT_C void ConnectL( TPckgBuf<TBool>& aPckg, TUint32 aIapId, 
   155         * @since S60 5.2
   178                                TWsfIapPersistence aPersistence,
   156         */
   179                                TRequestStatus& aStatus );
   157         IMPORT_C void FinalizeConnectL();
   180 
       
   181         /**
       
   182         * Sets connection result
       
   183         * @since S60 5.2
       
   184         * @param aResult connection result
       
   185         * @param aIapId WLAN IAP
       
   186         */
       
   187         IMPORT_C void SetConnectResultL( TInt aResult, TUint aIapId );
   158 
   188 
   159         /**
   189         /**
   160         * Disconnects WLAN
   190         * Disconnects WLAN
   161         * @since S60 5.0
   191         * @since S60 5.0
   162         */
   192         */
   163         IMPORT_C void DisconnectL();
   193         IMPORT_C void DisconnectL();
       
   194         
       
   195         /**
       
   196         * Asyncronous request to the server to disconnect
       
   197         * @since S60 5.2
       
   198         * @param aPckg request result
       
   199         * @param aStatus The request status object used to contain 
       
   200         *        the completion status of the request.
       
   201         */
       
   202         IMPORT_C void Disconnect( TPckgBuf<TBool>& aPckg, 
       
   203                                   TRequestStatus& aStatus );
   164         
   204         
   165         /**
   205         /**
   166         * Check if the engine is refreshing
   206         * Check if the engine is refreshing
   167         * @since S60 5.0
   207         * @since S60 5.0
   168         * @return ETrue if first refreshing
   208         * @return ETrue if first refreshing
   257         * @since S60 5.0
   297         * @since S60 5.0
   258         * @return ETrue on success
   298         * @return ETrue on success
   259         */
   299         */
   260         IMPORT_C TBool RefreshScanL();
   300         IMPORT_C TBool RefreshScanL();
   261         
   301         
       
   302 		/**
       
   303         * Asyncronous request to the server to make a scan
       
   304         * @since S60 5.2
       
   305         * @param aPckg request result
       
   306         * @param aStatus The request status object used to contain 
       
   307         *        the completion status of the request.
       
   308         */
       
   309         IMPORT_C void RefreshScan( TPckgBuf<TBool>& aPckg, 
       
   310                                    TRequestStatus& aStatus );
       
   311         
   262         /**
   312         /**
   263         * Launches and helper application to create an accesspoint 
   313         * Launches and helper application to create an accesspoint 
   264         * @since S60 5.0
   314         * @since S60 5.0
   265         * @param aWlanInfo The WlanInfo object to be passed to the helper app
   315         * @param aWlanInfo The WlanInfo object to be passed to the helper app
   266         * @param aConnecting ETrue if default connection is used, EFalse otherwise.
   316         * @param aConnecting ETrue if default connection is used, EFalse otherwise.
   299         * @since S60 5.0
   349         * @since S60 5.0
   300         * @param aWlanInfo The wlaninfo object to fill
   350         * @param aWlanInfo The wlaninfo object to fill
   301         * @return ETrue if success, EFalse otherwise.
   351         * @return ETrue if success, EFalse otherwise.
   302         */
   352         */
   303         IMPORT_C TBool GetConnectedWlanDetailsL( TWsfWlanInfo& aWlanInfo );
   353         IMPORT_C TBool GetConnectedWlanDetailsL( TWsfWlanInfo& aWlanInfo );
       
   354         
       
   355         /**
       
   356         * Asyncronous request to the server to return connected network
       
   357         * @since S60 5.2
       
   358         * @param aPckg request result
       
   359         * @param aWlanInfo The wlaninfo object to fill
       
   360         * @param aStatus The request status object used to contain 
       
   361         *        the completion status of the request.
       
   362         */
       
   363         IMPORT_C void GetConnectedWlanDetails( TPckgBuf<TBool>& aPckg,
       
   364                                                TWsfWlanInfo& aWlanInfo,
       
   365                                                TRequestStatus& aStatus );
   304       
   366       
   305         /**
   367         /**
   306         * Queries whether a connecting process is going on
   368         * Queries whether a connecting process is going on
   307         * @since S60 5.0
   369         * @since S60 5.0
   308         * @return ETrue if connection is in progress
   370         * @return ETrue if connection is in progress
   349         * Launches Browser application using selected iap
   411         * Launches Browser application using selected iap
   350         * @since S60 5.0
   412         * @since S60 5.0
   351         * @param aIapId IAP id passed as a parameter
   413         * @param aIapId IAP id passed as a parameter
   352         */
   414         */
   353         IMPORT_C void LaunchBrowserL( TUint32 aIapId );
   415         IMPORT_C void LaunchBrowserL( TUint32 aIapId );
   354 
       
   355         
       
   356         /**
       
   357         * Cleans up the possibly temporary IAP after user cancelled 
       
   358         * the browser launch
       
   359         * @since S60 5.0
       
   360         */
       
   361         IMPORT_C void CleanUpCancelledLaunchL();
       
   362 
   416 
   363         
   417         
   364     public:     // From MWsfBrowserLaunchObserver
   418     public:     // From MWsfBrowserLaunchObserver
   365 
   419 
   366         /**
   420         /**
   526         
   580         
   527         /**
   581         /**
   528         * Indicates if "Connect" or "Start Web browsing" is selected.
   582         * Indicates if "Connect" or "Start Web browsing" is selected.
   529         */
   583         */
   530         TBool iConnectOnly;
   584         TBool iConnectOnly;
       
   585         
       
   586 		/**
       
   587         * ICT class. Owned.
       
   588         */
       
   589         CIctsClientInterface* iIct;
   531 
   590 
   532     };
   591     };
   533 
   592 
   534 
   593 
   535 #include "wsfmodel.inl"
   594 #include "wsfmodel.inl"