46
|
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: Declaration of CWifiProtUiInProcess
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: 5 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef C_WIFIPROTUIINPROCESS_H
|
|
23 |
#define C_WIFIPROTUIINPROCESS_H
|
|
24 |
|
|
25 |
|
|
26 |
// INCLUDES
|
|
27 |
#include <cmmanagerext.h>
|
|
28 |
#include <wlanmgmtcommon.h>
|
|
29 |
#include <wifiprotreturn.h>
|
|
30 |
|
|
31 |
class CWiFiProtDlgsPlugin;
|
|
32 |
|
|
33 |
/**
|
|
34 |
* CWifiProtUiInProcess class
|
|
35 |
* Private interface class that allows the client to run
|
|
36 |
* Wi-Fi Protected Setup directly, without using the
|
|
37 |
* Notifier Framework
|
|
38 |
*/
|
|
39 |
class CWifiProtUiInProcess : public CBase
|
|
40 |
{
|
|
41 |
|
|
42 |
public:
|
|
43 |
|
|
44 |
/**
|
|
45 |
* NewL function
|
|
46 |
* @param aCmManagerExt Cm Manager to use during Wi-Fi Protected Setup
|
|
47 |
* return CWifiProtUiInProcess*
|
|
48 |
*/
|
|
49 |
IMPORT_C static CWifiProtUiInProcess* NewL( RCmManagerExt*
|
|
50 |
aCmManagerExt );
|
|
51 |
|
|
52 |
/**
|
|
53 |
* Destructor
|
|
54 |
*/
|
|
55 |
~CWifiProtUiInProcess( );
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Starts Wi-Fi Protected Setup
|
|
59 |
* Private interface to be used by applications with ui
|
|
60 |
* runs in the same process, so pointers can be passed
|
|
61 |
* @param aSSid contains SSid of the network we want to configure
|
|
62 |
* @param aConnectionNeeded ETrue if we need a connection via the
|
|
63 |
* configured network
|
|
64 |
* @return possible return values are ok, cancel process and not use
|
|
65 |
* protected setup (No Auto).
|
|
66 |
*/
|
|
67 |
IMPORT_C WiFiProt::TWiFiReturn StartFromUiL( const TWlanSsid& aSSid,
|
|
68 |
TBool aConnectionNeeded,
|
|
69 |
RArray<TUint32>& aUidsReturned);
|
|
70 |
|
|
71 |
private:
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Constructor
|
|
75 |
*/
|
|
76 |
CWifiProtUiInProcess( );
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Second phase constructor
|
|
80 |
* @param aCmManagerExt CmManager to use
|
|
81 |
*/
|
|
82 |
void ConstructL( RCmManagerExt* aCmManagerExt = NULL );
|
|
83 |
|
|
84 |
private:
|
|
85 |
CWiFiProtDlgsPlugin* iWiFiProtDlgsPlugin; // notifier plugin class
|
|
86 |
};
|
|
87 |
|
|
88 |
|
|
89 |
#endif // C_WIFIPROTUIINPROCESS_H
|
|
90 |
|
|
91 |
// End of File
|