|
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: RWiFiProtSession class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef R_WIFIPROTSESSION_H |
|
21 #define R_WIFIPROTSESSION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 #include "wifiparams.h" |
|
27 #include "wifiprotactiveresp.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * RWiFiProtSession |
|
33 * Session class to handle communication with Notifier Framework |
|
34 */ |
|
35 class RWiFiProtSession : public RSessionBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Constructor. |
|
41 */ |
|
42 RWiFiProtSession(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~RWiFiProtSession(); |
|
48 |
|
49 /** |
|
50 * Connect to the notifier server. Must be called before any other |
|
51 * function. |
|
52 * @return KErrNone if connection succeeded and a standard error code |
|
53 * otherwise. |
|
54 */ |
|
55 TInt Connect(); |
|
56 |
|
57 /** |
|
58 * Disconnect from the notifier server. |
|
59 */ |
|
60 void Close(); |
|
61 |
|
62 /** |
|
63 * Starts WiFi Protected Setup sequence |
|
64 * @param aSSid contains SSid of the network we want to configure |
|
65 * @param aConnectionNeeded not used anymore |
|
66 * @param aUidsReturned uids of the configured connection methods |
|
67 * @param aReturnValue - possible return values are ok, cancel |
|
68 * process and not use protected setup (No Automatic Setup). |
|
69 * @param aStatus - Request status of the client |
|
70 */ |
|
71 void StartWiFiProtL( const TWlanSsid& aSSid, TBool aConnectionNeeded, |
|
72 RArray<TUint32>& aUidsReturned, |
|
73 WiFiProt::TWiFiReturn& aReturnValue, |
|
74 TRequestStatus& aStatus ); |
|
75 |
|
76 /** |
|
77 * Starts WiFi Protected Setup sequence in Connection initiation mode |
|
78 * (WPS phase 2 implementation) |
|
79 * @param aSSid contains SSid of the network we want to configure |
|
80 * @param aNetworkSettings configuration settings of the network to use |
|
81 * for the connection (returned as the result of Protected Setup) |
|
82 * @param aReturnValue - possible return values are ok, cancel |
|
83 * process and not use protected setup (No Automatic Setup). |
|
84 * @param aStatus - Request status of the client |
|
85 */ |
|
86 void StartWiFiProtConnL( const TWlanSsid& aSSid, |
|
87 TWlanProtectedSetupCredentialAttribute& |
|
88 aNetworkSettings, |
|
89 WiFiProt::TWiFiReturn& aReturnValue, |
|
90 TRequestStatus& aStatus ); |
|
91 /** |
|
92 * Cancels WiFi Protected Setup sequence |
|
93 */ |
|
94 void CancelWiFiProt(); |
|
95 |
|
96 private: |
|
97 // Pointer to the client interface |
|
98 RNotifier* iNotifier; |
|
99 // Active object used to get TDesC data from the Notifier Framework |
|
100 // message |
|
101 CWiFiProtActiveResp* iWiFiProtActiveResp; |
|
102 }; |
|
103 |
|
104 #endif /* R_WIFIPROTSESSION_H */ |
|
105 |
|
106 // End of File |
|
107 |