1 /* |
|
2 * Copyright (c) 2001-2009 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 the License "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: Declares the common used constants and types for Wi-Fi Protected Setup. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: tr1cfwln#7 % |
|
20 */ |
|
21 |
|
22 #ifndef T_WIFIPARAMS_H |
|
23 #define T_WIFIPARAMS_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <wlanmgmtcommon.h> |
|
27 #include <wifiprotreturn.h> |
|
28 |
|
29 namespace WiFiProt |
|
30 { |
|
31 struct TWiFiInputParams |
|
32 { |
|
33 // ssid of the network we want to configure |
|
34 TWlanSsid iSSid; |
|
35 // a flag to indicate that a connection is needed |
|
36 // when setup is complete |
|
37 TBool iConnectionNeeded; |
|
38 // constructor to initialise input parameters data |
|
39 inline TWiFiInputParams( const TDesC8& aInitBuf, |
|
40 const TBool aConnectionNeeded ); |
|
41 }; |
|
42 |
|
43 const TInt KMaxNumberOfUids = 30; //to be specified |
|
44 |
|
45 struct TWiFiOutputParams |
|
46 { |
|
47 // returned iapids of the configured connection methods |
|
48 TBuf8<KMaxNumberOfUids*sizeof(TUint32)> iIapIds; |
|
49 // return value, see TWiFiReturn |
|
50 TWiFiReturn iReturn; |
|
51 // constructor to initialise output parameters data |
|
52 inline TWiFiOutputParams( const TDesC8& aInitBuf ); |
|
53 }; |
|
54 |
|
55 struct TWiFiConnOutputParams |
|
56 { |
|
57 // returned iapids of the configured connection methods |
|
58 TWlanProtectedSetupCredentialAttribute iNetworkSettings; |
|
59 // return value, see TWiFiReturn |
|
60 TWiFiReturn iReturn; |
|
61 // constructor to initialise output parameters data |
|
62 inline TWiFiConnOutputParams( |
|
63 const TWlanProtectedSetupCredentialAttribute& aNetworkSettings ); |
|
64 // default constructor |
|
65 inline TWiFiConnOutputParams( ); |
|
66 }; |
|
67 } |
|
68 #include "wifiparams.inl" |
|
69 #endif // T_WIFIPARAMS_H |
|
70 |
|
71 |
|
72 // End of File |
|