diff -r 000000000000 -r 5a93021fdf25 connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ConnectionUiUtilitiesCommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ConnectionUiUtilitiesCommon.h Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,96 @@ +/* +* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Declares the common used constants and types for +* Connection Ui Utilities. +* +*/ + + +#ifndef CONNECTIONUIUTILITIES_COMMON_H +#define CONNECTIONUIUTILITIES_COMMON_H + +// INCLUDES +#include +#include "ConnectionDialogsUidDefs.h" + + +// CONSTANTS +const TInt KEasyWepQuery256BitMaxLength = 58; +const TInt KEasyWepQueryNon256BitMaxLength = 26; +const TInt KEasyWpaQueryMaxLength = 64; +const TInt KEasyWapiQueryMaxLength = 64; + +// Note and Query Ids +enum TConnUINoteAndQueryIds + { + EReconnectToConnMethodConfirmationQuery = 1, + ERoamingToConnMethodConfirmationQuery, + EConnectedViaDestConnMethodConfirmationNote, + EConnectingToConnMethodInfoNote, + EConfirmMethodUsageQuery, + EConnectedViaConnMethodConfirmationNote, + EConfirmMethodUsageQueryInHomeNetwork, + EConfirmMethodUsageQueryInForeignNetwork + }; + +/** + * Defines preferences of the WlanNetwork + */ +class TConnUiUiWlanNetworkPrefs + { +public: + TWlanSsid iSsId; ///< Ssid of Wlan network + TWlanConnectionMode iNetworkMode; ///< mode of Wlan network + TWlanConnectionSecurityMode iSecMode; ///< Security mode of Wlan network + TWlanConnectionExtentedSecurityMode iExtSecMode; ///< Extended security mode of Wlan network + TBool iProtectedSetupSupported; + ///< Wlan network supports Protected Setup + }; + +/** +* +*/ +class TWepKeyData + { +public: + TBuf< KEasyWepQuery256BitMaxLength > iKey; + TBool iHex; + }; + +/** +* +*/ +class TConnUiUiDestConnMethodNoteId + { +public: + TUint32 iDestination; ///< Destination of connection + TUint32 iConnectionMethod; ///< Connection method of connection + TInt iNoteId; ///< Which note will be used + TBool iNextBestExists; ///< If it exists another method to try + TWlanSsid iSsid; ///< SSID of the connected EasyWlan + + }; + +class TConnUiConnectingViaDiscreetPopup + { +public: + TUint32 iIapId; + TBool iConnectionAlreadyActive; + }; + +#endif // CONNECTIONUIUTILITIES_COMMON_H + + +// End of File