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