wlanutilities/wlansniffer/aiplugin/inc/wsfactivewrappers.h
branchRCL_3
changeset 15 dff6ebfd236f
child 18 981afc7d3841
equal deleted inserted replaced
8:c2bc3f8c7777 15:dff6ebfd236f
       
     1 /*
       
     2  * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Implementation of CWsfActiveWrappers.
       
    15  *
       
    16  */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef WSFACTIVEWRAPPERS_H
       
    21 #define WSFACTIVEWRAPPERS_H
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include "wsfcommon.h"
       
    29 #include "wsfaicontroller.h"
       
    30 #include "wsfmodel.h"
       
    31 
       
    32 //  FORWARD DECLARATIONS
       
    33 class CWsfWLANListActiveWrapper;
       
    34 class CWsfRefreshScanActiveWrapper;
       
    35 class CWsfDisconnectActiveWrapper;
       
    36 class CWsfConnectActiveWrapper;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41  *  Active object helper class that capsulates active wrapper classes
       
    42  *
       
    43  *  @lib wsfaiplugin.lib
       
    44  *  @since S60 v5.2
       
    45  * 
       
    46  */
       
    47 class CWsfActiveWrappers : public CBase
       
    48     {
       
    49 public:
       
    50     // Constructors and destructor
       
    51 
       
    52     /**
       
    53      * Destructor.
       
    54      * @since S60 5.2 
       
    55      */
       
    56     ~CWsfActiveWrappers();
       
    57 
       
    58     /**
       
    59      * Two-phased constructor.
       
    60      * @since S60 5.2  
       
    61      */
       
    62     static CWsfActiveWrappers* NewL(CWsfModel* aModel,
       
    63             TWsfAiController &aController);
       
    64 
       
    65     /**
       
    66      * Two-phased constructor.
       
    67      * @since S60 5.2 
       
    68      */
       
    69     static CWsfActiveWrappers* NewLC(CWsfModel* aModel,
       
    70             TWsfAiController &aController);
       
    71 
       
    72 public:
       
    73 
       
    74     /**
       
    75      * Starts disconnecting 
       
    76      * @since S60 5.2     
       
    77      */
       
    78     void Disconnect();
       
    79 
       
    80     /**
       
    81      * Starts connecting
       
    82      * @since S60 5.2     
       
    83      */
       
    84     void Connect(TUint aIapID, TWsfIapPersistence aPersistence);
       
    85 
       
    86     /**
       
    87      * Starts refresh scan
       
    88      * @since S60 5.2     
       
    89      */
       
    90     void RefreshScan();
       
    91 
       
    92     /**
       
    93      * Starts wlan list refreshing
       
    94      * @since S60 5.2   
       
    95      * @param aStarUp is this called called from plugin start up   
       
    96      */
       
    97     void RefreshWLANList( TBool aStarUp );
       
    98 
       
    99     /**
       
   100      * Returns the list of found WLANs. 
       
   101      * Ownership not passed.
       
   102      * @since S60 5.2
       
   103      * @return Array of WLANs
       
   104      */
       
   105     CWsfWlanInfoArray* GetWLANList();
       
   106 
       
   107     /**
       
   108      * Returns the connected wlan network 
       
   109      * @since S60 5.2
       
   110      * @return TWsfWlanInfo
       
   111      */
       
   112     TWsfWlanInfo GetConnectedWLANNetwork();
       
   113 
       
   114 private:
       
   115 
       
   116     /**
       
   117      * Constructor for performing 1st stage construction
       
   118      */
       
   119     CWsfActiveWrappers();
       
   120 
       
   121     /**
       
   122      * Constructor for performing 2nd stage construction
       
   123      */
       
   124     void ConstructL( CWsfModel* aModel, TWsfAiController &aController );
       
   125 
       
   126 private:
       
   127     // Data
       
   128 
       
   129     /**
       
   130      * Pointer to CWsfWLANListActiveWrapper
       
   131      * Own.
       
   132      */
       
   133     CWsfWLANListActiveWrapper* iWLANListActiveWrapper;
       
   134 
       
   135     /**
       
   136      * Pointer to CWsfRefreshScanActiveWrapper
       
   137      * Own.
       
   138      */
       
   139     CWsfRefreshScanActiveWrapper* iRefreshScanActiveWrapper;
       
   140 
       
   141     /**
       
   142      * Pointer to CWsfDisconnectActiveWrapper
       
   143      * Own.
       
   144      */
       
   145     CWsfDisconnectActiveWrapper* iDisconnectActiveWrapper;
       
   146 
       
   147     /**
       
   148      * Pointer to CWsfConnectActiveWrapper
       
   149      * Own.
       
   150      */
       
   151     CWsfConnectActiveWrapper* iConnectActiveWrapper;
       
   152 
       
   153     };
       
   154 
       
   155 #endif // WSFACTIVEWRAPPERS_H