|
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: External rendering plugin adapter base class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 // System include files |
|
19 #include <ecom/ecom.h> |
|
20 #include <ecom/implementationinformation.h> |
|
21 #include <xnextrenderingpluginadapter.h> |
|
22 |
|
23 // Local constants |
|
24 |
|
25 // TODO: Content controller ECom interface UID |
|
26 const TUid KInterfaceUidContentController = { 0x20026F51 }; |
|
27 |
|
28 // ======== MEMBER FUNCTIONS ======== |
|
29 |
|
30 // ---------------------------------------------------------------------------- |
|
31 // CXnExtRenderingPluginAdapter::NewL() |
|
32 // ---------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CXnExtRenderingPluginAdapter* CXnExtRenderingPluginAdapter::NewL( TUid aImplUid ) |
|
35 { |
|
36 TAny* ptr = REComSession::CreateImplementationL( aImplUid, |
|
37 _FOFF( CXnExtRenderingPluginAdapter, iDestructKey ) ); |
|
38 |
|
39 CXnExtRenderingPluginAdapter* adapter = |
|
40 reinterpret_cast< CXnExtRenderingPluginAdapter* >( ptr ); |
|
41 |
|
42 if( adapter ) |
|
43 { |
|
44 adapter->iImplUid = aImplUid; |
|
45 } |
|
46 |
|
47 return adapter; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------- |
|
51 // CXnExtRenderingPluginAdapter::ImplUid() |
|
52 // ----------------------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C TUid CXnExtRenderingPluginAdapter::ImplUid() const |
|
55 { |
|
56 return iImplUid; |
|
57 } |
|
58 |
|
59 // ---------------------------------------------------------------------------- |
|
60 // CXnExtRenderingPluginAdapter::~CXnExtRenderingPluginAdapter() |
|
61 // ---------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C CXnExtRenderingPluginAdapter::~CXnExtRenderingPluginAdapter() |
|
64 { |
|
65 REComSession::DestroyedImplementation( iDestructKey ); |
|
66 } |
|
67 |
|
68 // ---------------------------------------------------------------------------- |
|
69 // CXnExtRenderingPluginAdapter::EnterPowerSaveModeL() |
|
70 // ---------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CXnExtRenderingPluginAdapter::EnterPowerSaveModeL() |
|
73 { |
|
74 } |
|
75 |
|
76 // ---------------------------------------------------------------------------- |
|
77 // CXnExtRenderingPluginAdapter::ExitPowerSaveModeL() |
|
78 // ---------------------------------------------------------------------------- |
|
79 // |
|
80 EXPORT_C void CXnExtRenderingPluginAdapter::ExitPowerSaveModeL() |
|
81 { |
|
82 } |
|
83 |
|
84 // ---------------------------------------------------------------------------- |
|
85 // CXnExtRenderingPluginAdapter::SkinChanged() |
|
86 // ---------------------------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void CXnExtRenderingPluginAdapter::SkinChanged() |
|
89 { |
|
90 } |
|
91 |
|
92 // ---------------------------------------------------------------------------- |
|
93 // CXnExtRenderingPluginAdapter::FocusChanged() |
|
94 // ---------------------------------------------------------------------------- |
|
95 // |
|
96 EXPORT_C void CXnExtRenderingPluginAdapter::FocusChanged( TDrawNow /*aDrawNow*/ ) |
|
97 { |
|
98 } |
|
99 |
|
100 // ---------------------------------------------------------------------------- |
|
101 // CXnExtRenderingPluginAdapter::SizeChanged() |
|
102 // ---------------------------------------------------------------------------- |
|
103 // |
|
104 EXPORT_C void CXnExtRenderingPluginAdapter::SizeChanged() |
|
105 { |
|
106 } |
|
107 |
|
108 |
|
109 // End of file |