1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: WPS Wizard: Wrapper for middleware calls |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CWPSACTIVERUNNER_H_ |
|
19 #define CWPSACTIVERUNNER_H_ |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include <QStringList> |
|
24 #include <e32base.h> |
|
25 #include <wlanmgmtclient.h> |
|
26 |
|
27 // User includes |
|
28 #include "mwpsactiverunnercallback.h" |
|
29 |
|
30 // Forward declarations |
|
31 // External data types |
|
32 // Constants |
|
33 |
|
34 |
|
35 /*! |
|
36 * The wrapper class for wlan management engine calls |
|
37 */ |
|
38 // Class declaration |
|
39 class CWpsActiveRunner : public CActive |
|
40 { |
|
41 |
|
42 public: |
|
43 static CWpsActiveRunner* NewL(MWpsActiveRunnerCallback& aObserver); |
|
44 virtual ~CWpsActiveRunner(); |
|
45 public: |
|
46 |
|
47 void InitL(); |
|
48 void RunL(); |
|
49 void DoCancel(); |
|
50 TInt RunError(TInt aError); |
|
51 void StartSetup(RBuf8& aSsid, int aPin); |
|
52 |
|
53 private: |
|
54 CWpsActiveRunner(MWpsActiveRunnerCallback& aObserver); |
|
55 void ConstructL(); |
|
56 void InitializeL(); |
|
57 private: |
|
58 MWpsActiveRunnerCallback& iObserver; |
|
59 #ifdef __arm |
|
60 CWlanMgmtClient* iWLANMgmtClient; |
|
61 CArrayFixSeg<TWlanProtectedSetupCredentialAttribute>* iIapParametersArray; |
|
62 #else |
|
63 //Temporary for testing in WINSCW. |
|
64 RTimer iTimer; |
|
65 void RunProtectedSetup_Stub(); |
|
66 #endif |
|
67 }; |
|
68 |
|
69 #endif /* CWPSACTIVERUNNER_H_ */ |
|