wlanutilities/wpswizard/inc/cwpsactiverunner.h
branchGCC_SURGE
changeset 47 b3d8f88532b7
parent 19 10810c91db26
parent 46 2fbd1d709fe7
equal deleted inserted replaced
34:30a5f517c615 47:b3d8f88532b7
    17 
    17 
    18 #ifndef CWPSACTIVERUNNER_H_
    18 #ifndef CWPSACTIVERUNNER_H_
    19 #define CWPSACTIVERUNNER_H_
    19 #define CWPSACTIVERUNNER_H_
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <QObject>
       
    23 #include <QStringList>
       
    24 #include <e32base.h>
    22 #include <e32base.h>
    25 #include <wlanmgmtclient.h>
    23 #include <wlanmgmtclient.h>
    26 
    24 
    27 // User includes
    25 // User includes
    28 #include "mwpsactiverunnercallback.h"
    26 #include "mwpsactiverunnercallback.h"
    29 
    27 
    30 // Forward declarations
    28 // Forward declarations
    31 // External data types
    29 // External data types
    32 // Constants
    30 // Constants
    33 
    31 
    34 
    32 /*!
    35 /*! 
    33  * @addtogroup group_wps_wizard_plugin
    36  * The wrapper class for wlan management engine calls  
    34  * @{
    37  */
    35  */
    38 // Class declaration
    36 // Class declaration
    39 class CWpsActiveRunner : public CActive
    37 class CWpsActiveRunner : public CActive
    40     {
    38 {
    41 
       
    42 public:
    39 public:
    43     static CWpsActiveRunner* NewL(MWpsActiveRunnerCallback& aObserver);
    40     static CWpsActiveRunner* NewL(MWpsActiveRunnerCallback& aObserver);
    44     virtual ~CWpsActiveRunner();
    41     virtual ~CWpsActiveRunner();
    45 public:
    42 public:
    46     
    43 
    47     void InitL();
       
    48     void RunL();
    44     void RunL();
    49     void DoCancel();
    45     void DoCancel();
    50     TInt RunError(TInt aError);
    46     TInt RunError(TInt aError);
    51     void StartSetup(RBuf8& aSsid, int aPin);
    47     void StartSetup(RBuf8& aSsid, int aPin);
       
    48 	
       
    49 protected:
    52 
    50 
    53 private:
    51 private:
    54     CWpsActiveRunner(MWpsActiveRunnerCallback& aObserver);
    52     explicit CWpsActiveRunner(MWpsActiveRunnerCallback& aObserver);
    55     void ConstructL();
    53     void ConstructL();
    56     void InitializeL();
    54     void InitializeL();
    57 private:    
    55 private:    
       
    56 
       
    57     //! observer for notification of WPS setup completion
    58     MWpsActiveRunnerCallback& iObserver;
    58     MWpsActiveRunnerCallback& iObserver;
    59 #ifdef __arm
    59     //! To know if cancel was called before the completion
       
    60     TBool isCancelTriggered;
       
    61     //! WLAN management client object
    60     CWlanMgmtClient* iWLANMgmtClient;
    62     CWlanMgmtClient* iWLANMgmtClient;
       
    63     //! Array to hold the results of the WPS setup
    61     CArrayFixSeg<TWlanProtectedSetupCredentialAttribute>* iIapParametersArray;
    64     CArrayFixSeg<TWlanProtectedSetupCredentialAttribute>* iIapParametersArray;
    62 #else
    65     
    63     //Temporary for testing in WINSCW.
    66     friend class TestWlanWizardContext;
    64     RTimer iTimer;
    67 };
    65     void RunProtectedSetup_Stub();
       
    66 #endif    
       
    67     };
       
    68 
    68 
    69 #endif /* CWPSACTIVERUNNER_H_ */
    69 #endif /* CWPSACTIVERUNNER_H_ */