diff -r 000000000000 -r 5a93021fdf25 connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ActiveWrapper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ActiveWrapper.h Thu Dec 17 08:55:21 2009 +0200 @@ -0,0 +1,154 @@ +/* +* Copyright (c) 2006 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: +* +*/ + + + +#ifndef __ACTIVE_WRAPPER_H__ +#define __ACTIVE_WRAPPER_H__ + +// INCLUDES +#include +#include "ConnectionUiUtilitiesClient.h" + + +// CONSTANTS +const TUint KNumberOfWrappedDialogs = 13; + +enum TWrappedDialogs + { + ESearchWlan = 0, + EOffLineWlan, + EWlanDisabled, + EWlanNetwUnavail, + EConnViaDestCM, + EChangingConnTo, + EConnViaCM, + EWlanEasyWep, + EWlanEasyWpa, + EWlanEasyWapi, + ENoWlanNetwsAvail, + EConnectingViaDiscreetPopup, + EConnectionErrorDiscreetPopup + }; + + + +// CLASS DECLARATION + +/** +* ?one_line_short_description. +* ?other_description_lines +* +* @lib ?library +* @since Series ?XX ?SeriesXX_version +*/ +NONSHARABLE_CLASS( CActiveWrapper ) : public CActive + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CActiveWrapper* NewL( const TUint aIndexOfNote ); + + /** + * Destructor. + */ + virtual ~CActiveWrapper(); + + public: // New functions + + void StartSearchWLANNetwork( + TPckgBuf& aNetworkPrefs ); + + void StartSearchWLANNetworkAsync( TRequestStatus& aStatus, + TWlanSsid& aSSID, + TWlanConnectionMode& aConnectionMode, + TWlanConnectionSecurityMode& aSecurityMode, + TWlanConnectionExtentedSecurityMode& aExtSecurityMode, + TBool& aProtectedSetupSupported ); + + void StartGenericNote( const TUint aIndexOfNote, + const TUint32 aConnMId = 0, + const TUint32 aDestId = 0 ); + + TInt StartEasyWepDlg( TPckgBuf< TWepKeyData >& aKey ); + + void StartEasyWepDlgAsync( TRequestStatus& aStatus, TDes* aKey, TBool& aHex ); + + TInt StartEasyWpaDlg( TPckgBuf< TBuf< KEasyWpaQueryMaxLength > >& aKey ); + + void StartEasyWpaDlgAsync( TRequestStatus& aStatus, TDes* aKey ); + + TInt StartEasyWapiDlg( TPckgBuf< TBuf< KEasyWapiQueryMaxLength > >& aKey ); + + void StartConnectingViaDiscreetPopup(TPckgBuf< TConnUiConnectingViaDiscreetPopup>& aInfo); + + void StartConnectionErrorDiscreetPopup( TPckgBuf& aErrCode); + + public: // Functions from base classes + + void DoCancel(); + void RunL(); + + protected: // New functions + + + protected: // Functions from base classes + + + private: + + /** + * C++ default constructor. + */ + CActiveWrapper( const TUint aIndexOfNote ); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + protected: // Data + + RConnectionUiUtilitiesSession iNotif; ///< notifier client + + CActiveSchedulerWait iWait; + + TPckgBuf iNetworkPrefs; + TWlanSsid* iSSID; + TWlanConnectionMode* iConnectionMode; + TWlanConnectionSecurityMode* iSecurityMode; + TWlanConnectionExtentedSecurityMode* iExtSecurityMode; + TBool* iProtectedSetupSupported; + + TRequestStatus* iRS; + TUint iIndexOfNote; + + + TPckgBuf< TWepKeyData > iWepKey;//used only for async version + + TPckgBuf< TBuf< KEasyWpaQueryMaxLength > > iWpaKey;//used only for async version + + TDes* iKey; + TBool* iHex; + + }; + +#endif // __ACTIVE_WRAPPER_H__ + +// End of File