|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Notification from engine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "wlmnotification.h" |
|
20 #include "am_debug.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // CSessionNotification::CSessionNotification |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 CSessionNotification::CSessionNotification( |
|
31 CWlmSession& aSession, |
|
32 TUint32 aNotificationMask ) : |
|
33 iSession( aSession ), |
|
34 iNotificationMask( aNotificationMask ) |
|
35 { |
|
36 DEBUG( "CSessionNotification::CSessionNotification()" ); |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CSessionNotification::NewL |
|
41 // Two-phased constructor. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CSessionNotification* CSessionNotification::NewL( |
|
45 CWlmSession& aSession, |
|
46 TUint32 aNotificationMask ) |
|
47 { |
|
48 DEBUG( "CSessionNotification::NewL()" ); |
|
49 CSessionNotification* self = |
|
50 new( ELeave ) CSessionNotification( aSession, aNotificationMask ); |
|
51 return self; |
|
52 } |
|
53 |
|
54 // Destructor |
|
55 CSessionNotification::~CSessionNotification() |
|
56 { |
|
57 DEBUG( "CSessionNotification::~CSessionNotification()" ); |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CSessionNotification::AddNotification |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 void CSessionNotification::AddNotification( |
|
65 TUint aNotification, |
|
66 TDes8& aData ) |
|
67 { |
|
68 DEBUG( "CSessionNotification::AddNotification()" ); |
|
69 |
|
70 if( iNotificationMask & aNotification ) |
|
71 { |
|
72 iSession.AddNotification( aNotification, aData ); |
|
73 } |
|
74 } |
|
75 |
|
76 // End of File |