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