1 /* |
|
2 * Copyright (c) 2010 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 "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: |
|
15 * This is a source file for connmon library stub functions for emulator. |
|
16 */ |
|
17 |
|
18 #include <QString> |
|
19 #include <QObject> |
|
20 #include <QVariant> |
|
21 #include <rconnmon.h> |
|
22 #include <nifvar.h> |
|
23 #include <cmmanager_shim.h> |
|
24 |
|
25 #include "wlanqtutilsap.h" |
|
26 |
|
27 #ifdef __WINS__ |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CConnMonEventBase::CConnMonEventBase |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CConnMonEventBase::CConnMonEventBase( const TInt aEventType, const TUint aConnectionId ) |
|
34 { |
|
35 iEventType = aEventType; |
|
36 iConnectionId = aConnectionId; |
|
37 } |
|
38 |
|
39 // Destructor |
|
40 CConnMonEventBase::~CConnMonEventBase() |
|
41 { |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CConnMonEventBase::EventType |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 TInt CConnMonEventBase::EventType() const |
|
49 { |
|
50 return iEventType; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CConnMonConnectionStatusChange::CConnMonConnectionStatusChange |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 CConnMonConnectionStatusChange::CConnMonConnectionStatusChange( |
|
58 const TUint aConnectionId, |
|
59 const TUint aSubConnectionId, |
|
60 const TInt aConnectionStatus ) : |
|
61 CConnMonEventBase(EConnMonConnectionStatusChange, aConnectionId) |
|
62 { |
|
63 iSubConnectionId = aSubConnectionId; |
|
64 iConnectionStatus = aConnectionStatus; |
|
65 } |
|
66 |
|
67 // Destructor |
|
68 CConnMonConnectionStatusChange::~CConnMonConnectionStatusChange() |
|
69 { |
|
70 } |
|
71 |
|
72 #endif // __WINS__ |
|