|
1 /* |
|
2 * Copyright (c) 2005-2007 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 * Provides UniEditor Plugin methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <e32base.h> |
|
24 #include <ecom.h> |
|
25 #include "UniPluginApi.h" |
|
26 |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CUniEditorPlugin::NewL |
|
32 // Factory function. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C CUniEditorPlugin* CUniEditorPlugin::NewL( |
|
36 const TUid& aImplementationUid, |
|
37 CMsvSession& aSession, |
|
38 CUniClientMtm& aUniMtm ) |
|
39 { |
|
40 TUniPluginParams params( aSession, aUniMtm ); |
|
41 // Get the instantiation |
|
42 CUniEditorPlugin* plugin = |
|
43 REINTERPRET_CAST( CUniEditorPlugin*, |
|
44 REComSession::CreateImplementationL( |
|
45 aImplementationUid, |
|
46 _FOFF( CUniEditorPlugin, iDtor_ID_Key ), |
|
47 ¶ms ) ); |
|
48 return plugin; |
|
49 } |
|
50 |
|
51 // Destructor |
|
52 EXPORT_C CUniEditorPlugin::~CUniEditorPlugin() |
|
53 { |
|
54 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
55 } |
|
56 |
|
57 // End of File |