connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/SelectWLANDlg.h
changeset 0 5a93021fdf25
child 1 40cb640ef159
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Declares CSelectWLAN dialog.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef SELECTWLANDLG_H
       
    21 #define SELECTWLANDLG_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknlistquerydialog.h>
       
    25 #include <wlanmgmtcommon.h>
       
    26 #include "ExpiryTimerCallback.h"
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class CSelectWLanDlgPlugin;
       
    30 class CNetworkInfoArray;
       
    31 class CAknWaitDialog;
       
    32 class CExpiryTimer;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 * CSelectWLANDlg dialog class
       
    37 *
       
    38 */
       
    39 NONSHARABLE_CLASS( CSelectWLANDlg ) : public CAknListQueryDialog, public MExpiryTimerCallback
       
    40     {
       
    41     public: // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Two-phase construction.
       
    45         */
       
    46         static CSelectWLANDlg* NewL( CSelectWLanDlgPlugin* aPlugin,
       
    47                                      CNetworkInfoArray* *const aNetworkArray );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CSelectWLANDlg();
       
    53         
       
    54         
       
    55         /**
       
    56         *
       
    57         */
       
    58         void RefreshDialogL();
       
    59         
       
    60         /**
       
    61         *
       
    62         * @return The value of iFromOkToExit.
       
    63         */
       
    64         inline TBool GetOkToExit();
       
    65         
       
    66         TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent);
       
    67 
       
    68 
       
    69     protected:
       
    70         /**
       
    71         * Constructor.
       
    72         */
       
    73         CSelectWLANDlg( CSelectWLanDlgPlugin* aPlugin, TInt aIndex, 
       
    74                         CNetworkInfoArray* *const aNetworkArray );
       
    75 
       
    76 
       
    77         /**
       
    78         * Symbian default constructor.
       
    79         */      
       
    80         void ConstructL();
       
    81 
       
    82     private:
       
    83         // From CAknListQueryDialog
       
    84         TBool OkToExitL( TInt aButtonId );
       
    85         
       
    86         /**
       
    87         * Dialog expiration timeout callback
       
    88         */
       
    89         void HandleTimedOut();
       
    90 
       
    91         // From CAknListQueryDialog
       
    92         virtual void PreLayoutDynInitL();
       
    93 
       
    94         /**
       
    95         * Handle resource change events. 
       
    96         * @param aType: The type of resources that have changed
       
    97         */
       
    98         void HandleResourceChange( TInt aType );
       
    99         
       
   100         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
   101                                      TEventCode aType);
       
   102                                      
       
   103         void ShowInfoNoteL( TInt aResId );
       
   104 
       
   105 
       
   106     private:  // New functions
       
   107 
       
   108         /**
       
   109         * Sets graphic icons
       
   110         * @param    -
       
   111         */
       
   112         void SetIconsL();
       
   113 
       
   114         TBool ScanForWlanNwL( TWlanSsid& aSsid, 
       
   115                               TWlanConnectionMode& aConnectionMode,
       
   116                               TWlanConnectionSecurityMode& aSecurityMode,
       
   117                               TWlanConnectionExtentedSecurityMode& aExtSecurityMode,
       
   118                               TBool& aProtectedSetupSupported );
       
   119 
       
   120         void DestroyWaitDialog();
       
   121 
       
   122     private: //data
       
   123 
       
   124         // Pointer to the plugin
       
   125         CSelectWLanDlgPlugin*       iPlugin;
       
   126 
       
   127         // not owned
       
   128         CNetworkInfoArray* *const   iNetworkArray;
       
   129 
       
   130          // closed the dialof from OkToExitL or not
       
   131         TBool iFromOkToExit;
       
   132 
       
   133         CAknWaitDialog* iWaitDialog;
       
   134         
       
   135         // Pointer for dialog expiration timer
       
   136         CExpiryTimer* iExpiryTimer;
       
   137     };
       
   138 
       
   139 #include "SelectWLANDlg.inl"  
       
   140 
       
   141 #endif
       
   142 
       
   143 // End of File