diff -r 30a5f517c615 -r b3d8f88532b7 wlanutilities/wpswizard/inc/cwpsactiverunner.h --- a/wlanutilities/wpswizard/inc/cwpsactiverunner.h Fri Jun 11 16:27:29 2010 +0100 +++ b/wlanutilities/wpswizard/inc/cwpsactiverunner.h Thu Jul 22 16:44:32 2010 +0100 @@ -19,8 +19,6 @@ #define CWPSACTIVERUNNER_H_ // System includes -#include -#include #include #include @@ -31,39 +29,41 @@ // External data types // Constants - -/*! - * The wrapper class for wlan management engine calls +/*! + * @addtogroup group_wps_wizard_plugin + * @{ */ // Class declaration class CWpsActiveRunner : public CActive - { - +{ public: static CWpsActiveRunner* NewL(MWpsActiveRunnerCallback& aObserver); virtual ~CWpsActiveRunner(); public: - - void InitL(); + void RunL(); void DoCancel(); TInt RunError(TInt aError); void StartSetup(RBuf8& aSsid, int aPin); + +protected: private: - CWpsActiveRunner(MWpsActiveRunnerCallback& aObserver); + explicit CWpsActiveRunner(MWpsActiveRunnerCallback& aObserver); void ConstructL(); void InitializeL(); private: + + //! observer for notification of WPS setup completion MWpsActiveRunnerCallback& iObserver; -#ifdef __arm + //! To know if cancel was called before the completion + TBool isCancelTriggered; + //! WLAN management client object CWlanMgmtClient* iWLANMgmtClient; + //! Array to hold the results of the WPS setup CArrayFixSeg* iIapParametersArray; -#else - //Temporary for testing in WINSCW. - RTimer iTimer; - void RunProtectedSetup_Stub(); -#endif - }; + + friend class TestWlanWizardContext; +}; #endif /* CWPSACTIVERUNNER_H_ */