|
1 /* |
|
2 * Copyright (c) 2006 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: A stub implementation of an interface for receiving Mediator events. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32base.h> |
|
21 #include "MediatorEventConsumer.h" |
|
22 #include "MediatorEventConsumerBody.h" |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CMediatorEventConsumer::CMediatorEventConsumer |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CMediatorEventConsumer::CMediatorEventConsumer() |
|
32 { |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CMediatorEventConsumer::ConstructL |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 void CMediatorEventConsumer::ConstructL( MMediatorEventObserver* /*aObserver*/ ) |
|
40 { |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CMediatorEventConsumer::NewL |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C CMediatorEventConsumer* CMediatorEventConsumer::NewL( MMediatorEventObserver* aObserver ) |
|
48 { |
|
49 CMediatorEventConsumer* self = new( ELeave ) CMediatorEventConsumer(); |
|
50 CleanupStack::PushL( self ); |
|
51 self->ConstructL( aObserver ); |
|
52 CleanupStack::Pop( self ); |
|
53 return self; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CMediatorEventConsumer::~CMediatorEventConsumer |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 CMediatorEventConsumer::~CMediatorEventConsumer() |
|
61 { |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CMediatorEventConsumer::SubscribeEvent |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 EXPORT_C TInt CMediatorEventConsumer::SubscribeEvent( TUid /*aDomain*/, |
|
69 TUid /*aCategory*/, |
|
70 const REventList& /*aEvents*/ ) |
|
71 { |
|
72 return KErrNotSupported; |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CMediatorEventConsumer::SubscribeEvent |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C TInt CMediatorEventConsumer::SubscribeEvent( TUid /*aDomain*/, |
|
80 TUid /*aCategory*/, |
|
81 TInt /*aEventId*/, |
|
82 TVersion /*aVersion*/ ) |
|
83 { |
|
84 return KErrNotSupported; |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CMediatorEventConsumer::UnsubscribeEvent |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 EXPORT_C TInt CMediatorEventConsumer::UnsubscribeEvent( TUid /*aDomain*/, |
|
92 TUid /*aCategory*/, |
|
93 const REventList& /*aEvents*/ ) |
|
94 { |
|
95 return KErrNotSupported; |
|
96 } |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // CMediatorEventConsumer::UnsubscribeEvent |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C TInt CMediatorEventConsumer::UnsubscribeEvent( TUid /*aDomain*/, |
|
103 TUid /*aCategory*/, |
|
104 TInt /*aEventId*/ ) |
|
105 { |
|
106 return KErrNotSupported; |
|
107 } |