diff -r f10336de0cd6 -r faa5ef4f80da bearermanagement/mpm/inc/mpmwlanquerydialog.h --- a/bearermanagement/mpm/inc/mpmwlanquerydialog.h Thu Jun 17 22:32:02 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,145 +0,0 @@ -/* -* Copyright (c) 2008-2009 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: Handles displaying wlan related dialogs -* -*/ - - -#ifndef MPMWLANQUERYDIALOG_H -#define MPMWLANQUERYDIALOG_H - -#include -#include //for struct -#include - -#include "mpmcommsdataccess.h" - -// ID of OfflineWlanNote dialog -const TUid KUidCOfflineWlanNoteDlg = { 0x101FD671 }; - -/** - * This structure is copied from ConnectionUiUtilitiesCommon.h, - * but given here a different name. - * Defines preferences of the Wlan Network - */ -class TMpmWlanNetworkPrefs - { -public: - TWlanSsid iSsId; ///< Ssid of Wlan network - TWlanConnectionMode iNetworkMode; ///< mode of Wlan network - TWlanConnectionSecurityMode iSecMode; ///< Security mode of Wlan network - TBool iProtectedSetupSupported; - ///< Wlan network supports Protected Setup - }; - -class CMPMIapSelection; - -/** - * Handles displaying wlan related dialogs - * - * @lib mpmserver.exe - * @since S60 v3.2 - */ -class CMPMWlanQueryDialog : public CActive - { - -enum TWlanQueryState - { - EOffline - }; - -public: - - static CMPMWlanQueryDialog* NewL( CMPMIapSelection& aSession, - TUint32 aSelectedWlanIap ); - - /** - * Destructor. - */ - virtual ~CMPMWlanQueryDialog(); - -public: // Functions from base classes - - /** - * From CActive. Cancels UI dialogs. - * @since 3.2 - */ - void DoCancel(); - - /** - * From CActive. Run when UI dialog finished. - * @since 3.2 - */ - void RunL(); - - /** - * From CActive. Run if RunL leaves. - * @since 3.2 - * @param aError Error that caused leave. - * @return KErrNone - */ - TInt RunError( TInt aError ); - -public: - - /** - * Starts displaying wlan dialogs if necessary - * @since 3.2 - */ - void StartWlanQueryL(); - -private: - - /** - * Propagates wlan network selection as an initial value for the dialog, - * Used if there are several dialogs queued. - * - * @param aDialogStatus Status of the dialog when destroyed. - * @since 3.2 - */ - void OfferInformation( TInt aDialogStatus ); - - CMPMWlanQueryDialog( CMPMIapSelection& aIapSelection, - TUint32 aSelectedWlanIap ); - - void ConstructL(); - -private: // data - - // Reference to iap selection object - CMPMIapSelection& iIapSelection; - - // Stores data for offline note - TPckgBuf iOfflineReply; - - // Stores data for wlan network guery - TPckgBuf iNetworkPrefs; - - //Interfce to Notifier - RNotifier iNotifier; - - //State of querying Wlan settings - TWlanQueryState iWlanQueryState; - - // Connection Ui Utilities pointer - CConnectionUiUtilities* iConnUiUtils; - - // Wlan iap - TUint32 iWlanIapId; - - // Flag that can be used to cancel the dialog startup based on earlier dialog - TInt iOverrideStatus; - }; - -#endif // MPMWLANQUERYDIALOG_H