equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Stub file for observer of event |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // CLASS HEADER |
|
22 #include "tmshweventobserver_adapter.h" |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <EUnitMacros.h> |
|
26 // declate the enum to be printed as TInt |
|
27 EUNIT_DECLARE_PRINTABLE_AS_TINT( MMShwEventObserver_Observer::TMShwEventObserverMethodId ) |
|
28 |
|
29 // INTERNAL INCLUDES |
|
30 |
|
31 // CONSTRUCTION |
|
32 |
|
33 TMShwEventObserver_Adapter::TMShwEventObserver_Adapter( MMShwEventObserver_Observer* aObserver, MShwEventObserver* aAdaptee ) |
|
34 : iMMShwEventObserver_Observer( aObserver ), |
|
35 iMShwEventObserver( aAdaptee ) |
|
36 { |
|
37 } |
|
38 |
|
39 void TMShwEventObserver_Adapter::NotifyL( MShwEvent* aEvent ) |
|
40 { |
|
41 // inform the test case |
|
42 iMMShwEventObserver_Observer->MShwEventObserver_MethodCalled( MMShwEventObserver_Observer::E_void_NotifyL, aEvent ); |
|
43 // call the actual method |
|
44 if ( iMShwEventObserver ) |
|
45 { |
|
46 iMShwEventObserver->NotifyL( aEvent ); |
|
47 } |
|
48 } |
|
49 |
|
50 // END OF FILE |