|
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 CWifiProtUiInProcess. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include <cmmanagerext.h> |
|
22 #include <wifiprotreturn.h> |
|
23 #include <wifiprotuiinprocess.h> |
|
24 |
|
25 #include "wifiprotdlgsplugin.h" |
|
26 #include "wifiprotlogger.h" |
|
27 |
|
28 using namespace WiFiProt; |
|
29 |
|
30 // =========================== MEMBER FUNCTIONS ============================= |
|
31 |
|
32 // -------------------------------------------------------------------------- |
|
33 // CWifiProtUiInProcess* CWifiProtUiInProcess::NewL() |
|
34 // -------------------------------------------------------------------------- |
|
35 // |
|
36 EXPORT_C CWifiProtUiInProcess* CWifiProtUiInProcess::NewL( RCmManagerExt* |
|
37 aCmManagerExt ) |
|
38 { |
|
39 CLOG_ENTERFN( "WiFiProtDlgsPlugin::NewL" ); |
|
40 |
|
41 CWifiProtUiInProcess* self = new ( ELeave ) CWifiProtUiInProcess(); |
|
42 CleanupStack::PushL( self ); |
|
43 self->ConstructL( aCmManagerExt ); |
|
44 CleanupStack::Pop(); |
|
45 CLOG_LEAVEFN( "WiFiProtDlgsPlugin::NewL" ); |
|
46 return self; |
|
47 } |
|
48 |
|
49 |
|
50 // -------------------------------------------------------------------------- |
|
51 // CWifiProtUiInProcess::~CWifiProtUiInProcess |
|
52 // -------------------------------------------------------------------------- |
|
53 // |
|
54 CWifiProtUiInProcess::~CWifiProtUiInProcess( ) |
|
55 |
|
56 { |
|
57 CLOG_ENTERFN( "WiFiProtDlgsPlugin::~CWifiProtUiInProcess" ); |
|
58 delete iWiFiProtDlgsPlugin; |
|
59 CLOG_LEAVEFN( "WiFiProtDlgsPlugin::~CWifiProtUiInProcess" ); |
|
60 } |
|
61 |
|
62 // -------------------------------------------------------------------------- |
|
63 // WiFiProt::TWiFiReturn CWifiProtUiInProcess::StartFromUiL |
|
64 // -------------------------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C WiFiProt::TWiFiReturn CWifiProtUiInProcess::StartFromUiL( |
|
67 const TWlanSsid& aSSid, |
|
68 TBool aConnectionNeeded, |
|
69 RArray<TUint32>& aUidsReturned ) |
|
70 { |
|
71 CLOG_ENTERFN( "WiFiProtDlgsPlugin::StartFromUiL" ); |
|
72 |
|
73 WiFiProt::TWiFiReturn ret = |
|
74 iWiFiProtDlgsPlugin->StartFromUiL( aSSid, |
|
75 aConnectionNeeded, |
|
76 aUidsReturned ); |
|
77 |
|
78 CLOG_LEAVEFN( "WiFiProtDlgsPlugin::StartFromUiL" ); |
|
79 |
|
80 return ret; |
|
81 } |
|
82 |
|
83 |
|
84 // -------------------------------------------------------------------------- |
|
85 // CWifiProtUiInProcess::CWifiProtUiInProcess |
|
86 // -------------------------------------------------------------------------- |
|
87 // |
|
88 CWifiProtUiInProcess::CWifiProtUiInProcess( ): |
|
89 iWiFiProtDlgsPlugin(NULL) |
|
90 { |
|
91 CLOG_ENTERFN( "WiFiProtDlgsPlugin::CWifiProtUiInProcess" ); |
|
92 CLOG_LEAVEFN( "WiFiProtDlgsPlugin::CWifiProtUiInProcess" ); |
|
93 } |
|
94 |
|
95 // -------------------------------------------------------------------------- |
|
96 // void CWifiProtUiInProcess::ConstructL( ) |
|
97 // -------------------------------------------------------------------------- |
|
98 // |
|
99 void CWifiProtUiInProcess::ConstructL( RCmManagerExt* aCmManagerExt ) |
|
100 { |
|
101 CLOG_ENTERFN( "WiFiProtDlgsPlugin::ConstructL" ); |
|
102 |
|
103 iWiFiProtDlgsPlugin = CWiFiProtDlgsPlugin::NewL( ETrue, aCmManagerExt ); |
|
104 |
|
105 CLOG_LEAVEFN( "WiFiProtDlgsPlugin::ConstructL" ); |
|
106 |
|
107 } |
|
108 // End of File |