|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The factory for creating graphic drawer instances |
|
15 // |
|
16 // |
|
17 |
|
18 #include "WSGRAPHICDRAWERFACTORY.H" |
|
19 #include "Graphics/WSGRAPHICDRAWER.H" |
|
20 #include <Graphics/WSGRAPHICDRAWERINTERFACE.H> |
|
21 #include "panics.h" |
|
22 #include <bitstd.h> |
|
23 |
|
24 // WsGraphicDrawer \\\\\\\\\\\\\\\\\\\\\\\\ |
|
25 |
|
26 EXPORT_C CWsGraphicDrawer* WsGraphicDrawer::CreateLC(TUid aType,MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId,MWsClient& aOwner,const TDesC8& aData) |
|
27 { |
|
28 //static const TUid KWsGraphicDrawerInterface = {0x10281924}; |
|
29 //ECOM resolution |
|
30 CWsGraphicDrawer* drawer = reinterpret_cast<CWsGraphicDrawer*>(REComSession::CreateImplementationL(aType,_FOFF(CWsGraphicDrawer,iDtor_ID_Key))); |
|
31 User::LeaveIfNull(drawer); |
|
32 CleanupStack::PushL(drawer); |
|
33 drawer->ConstructL(aEnv,aId,aOwner,aData); |
|
34 return drawer; // drawer is left on stack |
|
35 } |
|
36 |
|
37 EXPORT_C void WsGraphicDrawer::FinalClose() |
|
38 { |
|
39 REComSession::FinalClose(); |
|
40 } |
|
41 |