connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ConnectionUiUtilitiesCommon.h
changeset 0 5a93021fdf25
child 8 2e6c4614c58e
child 20 9c97ad6591ae
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2005 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 the common used constants and types for
       
    16 *     Connection Ui Utilities.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef CONNECTIONUIUTILITIES_COMMON_H
       
    22 #define CONNECTIONUIUTILITIES_COMMON_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <wlanmgmtcommon.h>
       
    26 #include "ConnectionDialogsUidDefs.h"
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 const TInt KEasyWepQuery256BitMaxLength = 58;
       
    31 const TInt KEasyWepQueryNon256BitMaxLength = 26;
       
    32 const TInt KEasyWpaQueryMaxLength = 64;
       
    33 const TInt KEasyWapiQueryMaxLength = 64;
       
    34 
       
    35 // Note and Query Ids
       
    36 enum TConnUINoteAndQueryIds
       
    37     {
       
    38     EReconnectToConnMethodConfirmationQuery = 1,
       
    39     ERoamingToConnMethodConfirmationQuery,
       
    40     EConnectedViaDestConnMethodConfirmationNote,
       
    41     EConnectingToConnMethodInfoNote,
       
    42     EConfirmMethodUsageQuery,
       
    43     EConnectedViaConnMethodConfirmationNote,
       
    44     EConfirmMethodUsageQueryInHomeNetwork,
       
    45     EConfirmMethodUsageQueryInForeignNetwork
       
    46     };
       
    47 
       
    48 /**
       
    49  * Defines preferences of the WlanNetwork
       
    50  */
       
    51 class TConnUiUiWlanNetworkPrefs
       
    52     {
       
    53 public:
       
    54     TWlanSsid                           iSsId;        ///< Ssid of Wlan network
       
    55     TWlanConnectionMode                 iNetworkMode; ///< mode of Wlan network
       
    56     TWlanConnectionSecurityMode         iSecMode;     ///< Security mode of Wlan network
       
    57     TWlanConnectionExtentedSecurityMode iExtSecMode;  ///< Extended security mode of Wlan network
       
    58     TBool                               iProtectedSetupSupported; 
       
    59                                         ///< Wlan network supports Protected Setup
       
    60     };
       
    61     
       
    62 /**
       
    63 *
       
    64 */
       
    65 class TWepKeyData
       
    66     {
       
    67 public:
       
    68     TBuf< KEasyWepQuery256BitMaxLength > iKey;
       
    69     TBool iHex;
       
    70     };
       
    71 
       
    72 /**
       
    73 *
       
    74 */
       
    75 class TConnUiUiDestConnMethodNoteId
       
    76     {
       
    77 public:
       
    78     TUint32   iDestination;       ///< Destination of connection
       
    79     TUint32   iConnectionMethod;  ///< Connection method of connection
       
    80     TInt      iNoteId;            ///< Which note will be used
       
    81     TBool     iNextBestExists;    ///< If it exists another method to try
       
    82    	TWlanSsid iSsid;              ///< SSID of the connected EasyWlan
       
    83 
       
    84     };
       
    85 
       
    86 class TConnUiConnectingViaDiscreetPopup
       
    87     {
       
    88 public:
       
    89     TUint32   iIapId;
       
    90     TBool iConnectionAlreadyActive;
       
    91     };
       
    92 
       
    93 #endif  // CONNECTIONUIUTILITIES_COMMON_H
       
    94 
       
    95 
       
    96 // End of File