|
1 /* |
|
2 * Copyright (c) 2004 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: Connection mode notifier. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <e32std.h> |
|
20 #include "cimpsconnuiconnectionmodenotifierng.h" |
|
21 #include "CIMPSConnUiConnectionModeNotifierImp.h" |
|
22 #include "IMPSCommonUiDebugPrint.h" |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 // Two-phased constructor. |
|
26 EXPORT_C CIMPSConnUiConnectionModeNotifier* CIMPSConnUiConnectionModeNotifier::NewL( |
|
27 TIMPSConnectionClient aClient ) |
|
28 { |
|
29 CIMPSConnUiConnectionModeNotifier* self = CIMPSConnUiConnectionModeNotifier::NewLC( aClient ); |
|
30 CleanupStack::Pop( self ); //self |
|
31 return self; |
|
32 } |
|
33 |
|
34 |
|
35 // Two-phased constructor. |
|
36 EXPORT_C CIMPSConnUiConnectionModeNotifier* CIMPSConnUiConnectionModeNotifier::NewLC( |
|
37 TIMPSConnectionClient aClient ) |
|
38 { |
|
39 CIMPSConnUiConnectionModeNotifier* self = new ( ELeave ) CIMPSConnUiConnectionModeNotifier; |
|
40 CleanupStack::PushL( self ); |
|
41 self->ConstructL( aClient ); |
|
42 return self; |
|
43 } |
|
44 |
|
45 |
|
46 // Destructor |
|
47 EXPORT_C CIMPSConnUiConnectionModeNotifier::~CIMPSConnUiConnectionModeNotifier() |
|
48 { |
|
49 IMPSCUI_DP_TXT( "CIMPSConnUiConnectionModeNotifier::~CIMPSConnUiConnectionModeNotifier()" ); |
|
50 delete iImp; |
|
51 } |
|
52 |
|
53 |
|
54 // C++ constructor |
|
55 CIMPSConnUiConnectionModeNotifier::CIMPSConnUiConnectionModeNotifier() |
|
56 { |
|
57 IMPSCUI_DP_TXT( "CIMPSConnUiConnectionModeNotifier::CIMPSConnUiConnectionModeNotifier()" ); |
|
58 } |
|
59 |
|
60 |
|
61 // Symbian OS constructor |
|
62 void CIMPSConnUiConnectionModeNotifier::ConstructL( TIMPSConnectionClient aClient ) |
|
63 { |
|
64 iImp = CIMPSConnUiConnectionModeNotifierImp::NewL( *this, aClient ); |
|
65 } |
|
66 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CIMPSConnUiConnectionModeNotifier::StartL() |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CIMPSConnUiConnectionModeNotifier::StartL() |
|
73 { |
|
74 iImp->StartL(); |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CIMPSConnUiConnectionModeNotifier::Stop() |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C void CIMPSConnUiConnectionModeNotifier::Stop() |
|
83 { |
|
84 iImp->Stop(); |
|
85 } |
|
86 |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // CIMPSConnUiConnectionModeNotifier::AddObserverL() |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 EXPORT_C void CIMPSConnUiConnectionModeNotifier::AddObserverL( |
|
93 MIMPSConnUiConnectionModeObserver* aObserver ) |
|
94 { |
|
95 iImp->AddObserverL( aObserver ); |
|
96 } |
|
97 |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CIMPSConnUiConnectionModeNotifier::RemoveObserver() |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 EXPORT_C TInt CIMPSConnUiConnectionModeNotifier::RemoveObserver( |
|
104 MIMPSConnUiConnectionModeObserver* aObserver ) |
|
105 { |
|
106 return iImp->RemoveObserver( aObserver ); |
|
107 } |
|
108 |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // CIMPSConnUiConnectionModeNotifier::ConnectionModeL() |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 EXPORT_C TIMPSConnectionModeEvent CIMPSConnUiConnectionModeNotifier::ConnectionModeL() |
|
115 { |
|
116 return iImp->ConnectionModeByCategoryL( EIMPSCMEUserLevelSelectionEventGroup ); |
|
117 } |
|
118 |
|
119 |
|
120 // ----------------------------------------------------------------------------- |
|
121 // CIMPSConnUiConnectionModeNotifier::ConnectionModeByCategoryL() |
|
122 // ----------------------------------------------------------------------------- |
|
123 // |
|
124 EXPORT_C TIMPSConnectionModeEvent CIMPSConnUiConnectionModeNotifier::ConnectionModeByCategoryL( |
|
125 TIMPSConnectionModeEvent aModeEventCateqory ) |
|
126 { |
|
127 return iImp->ConnectionModeByCategoryL( aModeEventCateqory ); |
|
128 } |
|
129 |
|
130 |
|
131 |
|
132 // End of File |
|
133 |
|
134 |
|
135 |
|
136 |