|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 #include "CPhoneMediatorCommandListener.h" |
|
18 #include "globals.h" |
|
19 |
|
20 extern TInt commandListenerInitialised; |
|
21 CPhoneMediatorCommandListener* CPhoneMediatorCommandListener::Instance() { return NULL; } |
|
22 void CPhoneMediatorCommandListener::Initialize( MPhoneMenuAndCbaEvents*, MPhoneEngineMessageSender*, MPEEngineInfo* ) |
|
23 { |
|
24 commandListenerInitialised = ETrue; |
|
25 }; |
|
26 |
|
27 #include "CPhoneMediatorMessageFactory.h" |
|
28 |
|
29 CPhoneMediatorMessageFactory* CPhoneMediatorMessageFactory::NewL( MPEEngineInfo& ) |
|
30 { |
|
31 if( Singleton::Instance()->iLeave ) |
|
32 { |
|
33 User::Leave( KErrNoMemory ); |
|
34 return NULL; // never reached, here just because otherwise compiler complains |
|
35 } |
|
36 else |
|
37 { |
|
38 return NULL; |
|
39 } |
|
40 } |
|
41 MPhoneMediatorMessage* CPhoneMediatorMessageFactory::CreateMessageL( TInt, TInt ) |
|
42 { |
|
43 if( Singleton::Instance()->iCreateMessageLeave ) |
|
44 { |
|
45 User::Leave( KErrNoMemory ); |
|
46 return NULL; // never reached, here just because otherwise compiler complains |
|
47 } |
|
48 else |
|
49 { |
|
50 if( Singleton::Instance()->iMessageObject != 0 ) |
|
51 { |
|
52 return reinterpret_cast<MPhoneMediatorMessage*>( Singleton::Instance()->iMessageObject ); |
|
53 } |
|
54 else |
|
55 { |
|
56 return NULL; |
|
57 } |
|
58 } |
|
59 } |
|
60 |
|
61 #include "CPhoneMediatorSender.h" |
|
62 |
|
63 CPhoneMediatorSender* CPhoneMediatorSender::Instance() |
|
64 { |
|
65 if( Singleton::Instance()->iSenderObject != 0 ) |
|
66 { |
|
67 return reinterpret_cast<CPhoneMediatorSender*>( Singleton::Instance()->iSenderObject ); |
|
68 } |
|
69 else |
|
70 { |
|
71 return NULL; |
|
72 } |
|
73 } |
|
74 |
|
75 #include "cphonelogger.h" |
|
76 |
|
77 CPhoneMethodLogger::CPhoneMethodLogger( |
|
78 TPhoneUILoggingComponent /*aLoggingComponent*/, |
|
79 TPtrC /*aString*/ ) |
|
80 { |
|
81 } |
|
82 |
|
83 CPhoneMethodLogger::~CPhoneMethodLogger() |
|
84 { |
|
85 } |
|
86 |
|
87 #include <coemain.h> |
|
88 CCoeStatic* CCoeEnv::Static( TUid ) { return NULL; } |
|
89 |
|
90 CCoeStatic::~CCoeStatic() {} |
|
91 CCoeStatic::CCoeStatic() {} |
|
92 CCoeStatic::CCoeStatic( TUid, TScope ) { } |
|
93 void CCoeStatic::CCoeStatic_Reserved1() {} |
|
94 void CCoeStatic::CCoeStatic_Reserved2() {} |
|
95 |
|
96 |
|
97 |