connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ActiveWrapper.h
changeset 0 5a93021fdf25
child 20 9c97ad6591ae
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2006 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __ACTIVE_WRAPPER_H__
       
    21 #define __ACTIVE_WRAPPER_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "ConnectionUiUtilitiesClient.h"
       
    26 
       
    27 
       
    28 // CONSTANTS
       
    29 const TUint KNumberOfWrappedDialogs = 13;
       
    30 
       
    31 enum TWrappedDialogs
       
    32     {
       
    33     ESearchWlan = 0, 
       
    34     EOffLineWlan,
       
    35     EWlanDisabled,
       
    36     EWlanNetwUnavail,
       
    37     EConnViaDestCM,
       
    38     EChangingConnTo,
       
    39     EConnViaCM,
       
    40     EWlanEasyWep,
       
    41     EWlanEasyWpa,
       
    42     EWlanEasyWapi,
       
    43     ENoWlanNetwsAvail,
       
    44     EConnectingViaDiscreetPopup,
       
    45     EConnectionErrorDiscreetPopup
       
    46     };
       
    47 
       
    48 
       
    49 
       
    50 // CLASS DECLARATION
       
    51 
       
    52 /**
       
    53 *  ?one_line_short_description.
       
    54 *  ?other_description_lines
       
    55 *
       
    56 *  @lib ?library
       
    57 *  @since Series ?XX ?SeriesXX_version
       
    58 */
       
    59 NONSHARABLE_CLASS( CActiveWrapper ) : public CActive
       
    60     {
       
    61     public:  // Constructors and destructor
       
    62         
       
    63         /**
       
    64         * Two-phased constructor.
       
    65         */
       
    66         static CActiveWrapper* NewL( const TUint aIndexOfNote );
       
    67         
       
    68         /**
       
    69         * Destructor.
       
    70         */
       
    71         virtual ~CActiveWrapper();
       
    72 
       
    73     public: // New functions
       
    74         
       
    75         void StartSearchWLANNetwork( 
       
    76                         TPckgBuf<TConnUiUiWlanNetworkPrefs>& aNetworkPrefs );
       
    77 
       
    78         void StartSearchWLANNetworkAsync( TRequestStatus& aStatus, 
       
    79                                 TWlanSsid& aSSID,
       
    80                                 TWlanConnectionMode& aConnectionMode,
       
    81                                 TWlanConnectionSecurityMode& aSecurityMode,
       
    82                                 TWlanConnectionExtentedSecurityMode& aExtSecurityMode, 
       
    83                                 TBool& aProtectedSetupSupported );
       
    84 
       
    85         void StartGenericNote( const TUint aIndexOfNote, 
       
    86                                const TUint32 aConnMId  = 0,
       
    87                                const TUint32 aDestId = 0 );
       
    88 
       
    89         TInt StartEasyWepDlg( TPckgBuf< TWepKeyData >& aKey  );
       
    90 
       
    91         void StartEasyWepDlgAsync( TRequestStatus& aStatus, TDes* aKey, TBool& aHex );
       
    92     
       
    93         TInt StartEasyWpaDlg( TPckgBuf< TBuf< KEasyWpaQueryMaxLength > >& aKey );
       
    94     
       
    95         void StartEasyWpaDlgAsync( TRequestStatus& aStatus, TDes* aKey );
       
    96     
       
    97         TInt StartEasyWapiDlg( TPckgBuf< TBuf< KEasyWapiQueryMaxLength > >& aKey );
       
    98 
       
    99         void StartConnectingViaDiscreetPopup(TPckgBuf< TConnUiConnectingViaDiscreetPopup>& aInfo);
       
   100 
       
   101         void StartConnectionErrorDiscreetPopup( TPckgBuf<TInt>& aErrCode);
       
   102         
       
   103     public: // Functions from base classes
       
   104 
       
   105         void DoCancel();
       
   106         void RunL();
       
   107         
       
   108     protected:  // New functions
       
   109         
       
   110 
       
   111     protected:  // Functions from base classes
       
   112         
       
   113 
       
   114     private:
       
   115 
       
   116         /**
       
   117         * C++ default constructor.
       
   118         */
       
   119         CActiveWrapper( const TUint aIndexOfNote );
       
   120 
       
   121         /**
       
   122         * By default Symbian 2nd phase constructor is private.
       
   123         */
       
   124         void ConstructL();
       
   125 
       
   126     protected:  // Data
       
   127 
       
   128         RConnectionUiUtilitiesSession iNotif; ///< notifier client
       
   129         
       
   130         CActiveSchedulerWait    iWait;
       
   131 
       
   132         TPckgBuf<TConnUiUiWlanNetworkPrefs> iNetworkPrefs;
       
   133         TWlanSsid* iSSID;
       
   134         TWlanConnectionMode* iConnectionMode;
       
   135         TWlanConnectionSecurityMode* iSecurityMode;
       
   136         TWlanConnectionExtentedSecurityMode* iExtSecurityMode;
       
   137         TBool* iProtectedSetupSupported; 
       
   138 
       
   139         TRequestStatus* iRS;
       
   140         TUint iIndexOfNote;
       
   141                 
       
   142         
       
   143         TPckgBuf< TWepKeyData > iWepKey;//used only for async version
       
   144         
       
   145         TPckgBuf< TBuf< KEasyWpaQueryMaxLength > > iWpaKey;//used only for async version
       
   146         
       
   147         TDes* iKey;
       
   148         TBool* iHex;
       
   149         
       
   150     };
       
   151 
       
   152 #endif      // __ACTIVE_WRAPPER_H__
       
   153             
       
   154 // End of File