|
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 #include <xnexteventhandler.h> |
|
23 |
|
24 // Local constants |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 // ---------------------------------------------------------------------------- |
|
29 // CXnExtRenderingPluginAdapter::NewL() |
|
30 // ---------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C CXnExtRenderingPluginAdapter* CXnExtRenderingPluginAdapter::NewL( TUid aImplUid ) |
|
33 { |
|
34 TAny* ptr = REComSession::CreateImplementationL( aImplUid, |
|
35 _FOFF( CXnExtRenderingPluginAdapter, iDestructKey ) ); |
|
36 |
|
37 CXnExtRenderingPluginAdapter* adapter = |
|
38 reinterpret_cast< CXnExtRenderingPluginAdapter* >( ptr ); |
|
39 |
|
40 if( adapter ) |
|
41 { |
|
42 adapter->iImplUid = aImplUid; |
|
43 } |
|
44 |
|
45 return adapter; |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------- |
|
49 // CXnExtRenderingPluginAdapter::ImplUid() |
|
50 // ----------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C TUid CXnExtRenderingPluginAdapter::ImplUid() const |
|
53 { |
|
54 return iImplUid; |
|
55 } |
|
56 |
|
57 // ---------------------------------------------------------------------------- |
|
58 // CXnExtRenderingPluginAdapter::~CXnExtRenderingPluginAdapter() |
|
59 // ---------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C CXnExtRenderingPluginAdapter::~CXnExtRenderingPluginAdapter() |
|
62 { |
|
63 REComSession::DestroyedImplementation( iDestructKey ); |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // CXnExtRenderingPluginAdapter::EnterPowerSaveModeL() |
|
68 // ---------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C void CXnExtRenderingPluginAdapter::EnterPowerSaveModeL() |
|
71 { |
|
72 } |
|
73 |
|
74 // ---------------------------------------------------------------------------- |
|
75 // CXnExtRenderingPluginAdapter::ExitPowerSaveModeL() |
|
76 // ---------------------------------------------------------------------------- |
|
77 // |
|
78 EXPORT_C void CXnExtRenderingPluginAdapter::ExitPowerSaveModeL() |
|
79 { |
|
80 } |
|
81 |
|
82 // ---------------------------------------------------------------------------- |
|
83 // CXnExtRenderingPluginAdapter::SkinChanged() |
|
84 // ---------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C void CXnExtRenderingPluginAdapter::SkinChanged() |
|
87 { |
|
88 } |
|
89 |
|
90 // ---------------------------------------------------------------------------- |
|
91 // CXnExtRenderingPluginAdapter::FocusChanged() |
|
92 // ---------------------------------------------------------------------------- |
|
93 // |
|
94 EXPORT_C void CXnExtRenderingPluginAdapter::FocusChanged( TDrawNow /*aDrawNow*/ ) |
|
95 { |
|
96 } |
|
97 |
|
98 // ---------------------------------------------------------------------------- |
|
99 // CXnExtRenderingPluginAdapter::SizeChanged() |
|
100 // ---------------------------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C void CXnExtRenderingPluginAdapter::SizeChanged() |
|
103 { |
|
104 } |
|
105 |
|
106 // ---------------------------------------------------------------------------- |
|
107 // CXnExtRenderingPluginAdapter::SetEventHandler() |
|
108 // ---------------------------------------------------------------------------- |
|
109 // |
|
110 EXPORT_C void CXnExtRenderingPluginAdapter::SetEventHandler( |
|
111 MXnExtEventHandler* /*aEventHandler*/ ) |
|
112 { |
|
113 |
|
114 } |
|
115 |
|
116 // ---------------------------------------------------------------------------- |
|
117 // CXnExtRenderingPluginAdapter::SetDataL() |
|
118 // ---------------------------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C void CXnExtRenderingPluginAdapter::SetDataL( const TDesC8& /*aData*/, |
|
121 const TDesC& /*aType*/, TInt /*aIndex*/ ) |
|
122 { |
|
123 |
|
124 } |
|
125 |
|
126 // End of file |