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