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: Implementation of class CWiFiProtUiClient. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: tr1cfwln#9 % |
|
20 */ |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 #include <wifiprotuiclient.h> |
|
25 |
|
26 #include "wifiprotuiclientimpl.h" |
|
27 #include "wifiprotlogger.h" |
|
28 |
|
29 |
|
30 // ================= MEMBER FUNCTIONS ======================= |
|
31 |
|
32 // --------------------------------------------------------- |
|
33 // CWiFiProtUiClient::NewL |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 EXPORT_C CWiFiProtUiClient* CWiFiProtUiClient::NewL() |
|
37 { |
|
38 CLOG_ENTERFN( "CWiFiProtUiClient::NewL" ); |
|
39 CWiFiProtUiClient* wifi = new ( ELeave ) CWiFiProtUiClient(); |
|
40 CleanupStack::PushL( wifi ); |
|
41 wifi->iImpl = CWiFiProtUiClientImpl::NewL(); |
|
42 CleanupStack::Pop( wifi ); |
|
43 CLOG_LEAVEFN( "CWiFiProtUiClient::NewL" ); |
|
44 return wifi; |
|
45 } |
|
46 |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // CWiFiProtUiClient::~CWiFiProtUiClient |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C CWiFiProtUiClient::~CWiFiProtUiClient() |
|
53 { |
|
54 CLOG_ENTERFN( "CWiFiProtUiClient::~CWiFiProtUiClient" ); |
|
55 delete iImpl; |
|
56 CLOG_LEAVEFN( "CWiFiProtUiClient::~CWiFiProtUiClient" ); |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------- |
|
60 // CWiFiProtUiClient::StartWiFiProtL |
|
61 // --------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C void CWiFiProtUiClient::StartWiFiProtL( const TWlanSsid& aSSid, |
|
64 TBool aConnectionNeeded, |
|
65 RArray<TUint32>& aUidsReturned, |
|
66 WiFiProt::TWiFiReturn& aReturnValue, |
|
67 TRequestStatus& aStatus ) |
|
68 { |
|
69 CLOG_ENTERFN( "CWiFiProtUiClient::StartWiFiProtL" ); |
|
70 iImpl->StartWiFiProtL( aSSid, aConnectionNeeded, aUidsReturned, aReturnValue, aStatus ); |
|
71 CLOG_LEAVEFN( "CWiFiProtUiClient::StartWiFiProtL" ); |
|
72 } |
|
73 |
|
74 // --------------------------------------------------------- |
|
75 // CWiFiProtUiClient::StartWiFiProtL |
|
76 // --------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C WiFiProt::TWiFiReturn CWiFiProtUiClient::StartWiFiProtSyncL( |
|
79 const TWlanSsid& aSSid, TBool aConnectionNeeded,RArray<TUint32>& aUidsReturned ) |
|
80 { |
|
81 CLOG_WRITE( "CWiFiProtUiClient::StartWiFiProtSyncL" ); |
|
82 return iImpl->StartWiFiProtSyncL( aSSid, aConnectionNeeded, aUidsReturned ); |
|
83 } |
|
84 |
|
85 // --------------------------------------------------------- |
|
86 // CWiFiProtUiClient::CancelWiFiProt |
|
87 // --------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C void CWiFiProtUiClient::CancelWiFiProt() |
|
90 { |
|
91 CLOG_ENTERFN( "CWiFiProtUiClient::CancelWiFiProt" ); |
|
92 iImpl->CancelWiFiProt(); |
|
93 CLOG_LEAVEFN( "CWiFiProtUiClient::CancelWiFiProt" ); |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------- |
|
97 // CWiFiProtUiClient::StartWiFiProtConnL |
|
98 // --------------------------------------------------------- |
|
99 // |
|
100 EXPORT_C void CWiFiProtUiClient::StartWiFiProtConnL( const TWlanSsid& aSSid, |
|
101 TWlanProtectedSetupCredentialAttribute& |
|
102 aNetworkSettings, |
|
103 WiFiProt::TWiFiReturn& aReturnValue, |
|
104 TRequestStatus& aStatus ) |
|
105 { |
|
106 CLOG_ENTERFN( "CWiFiProtUiClient::StartWiFiProtConnL" ); |
|
107 iImpl->StartWiFiProtConnL( aSSid, aNetworkSettings, aReturnValue, aStatus ); |
|
108 CLOG_LEAVEFN( "CWiFiProtUiClient::StartWiFiProtConnL" ); |
|
109 } |
|
110 // End of File |
|