|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Entry point for accessing xmluiml language specific element plugins. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "xnecomelementproxy.h" |
|
22 #include "utf.h" |
|
23 #include "xndomvisitor.rh" |
|
24 |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // TXnEComElementProxy::CreateImplementationL |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C MXnDomVisitor * TXnEComElementProxy::CreateImplementationL( |
|
33 const TDesC8& aNS ) |
|
34 { |
|
35 TUid dtor={0}; |
|
36 TUid interfaceUid = {KXnDomVisitorIId}; |
|
37 // Let's find namespace e.g http://www.series60.com/xml/xmluiml/1 |
|
38 TEComResolverParams resolverParams; |
|
39 resolverParams.SetDataType( aNS ); |
|
40 resolverParams.SetWildcardMatch( ETrue ); |
|
41 |
|
42 TAny * ecom = NULL; |
|
43 #ifdef _DEBUG |
|
44 TRAPD(err, ecom= REComSession::CreateImplementationL( interfaceUid, dtor, |
|
45 NULL, resolverParams)); |
|
46 if( err != KErrNone ) |
|
47 { |
|
48 REComSession::FinalClose(); |
|
49 User::Leave( err ); |
|
50 } |
|
51 #else |
|
52 ecom= REComSession::CreateImplementationL( interfaceUid, dtor, |
|
53 NULL, resolverParams); |
|
54 #endif |
|
55 MXnDomVisitor* element = element = reinterpret_cast<MXnDomVisitor*>(ecom); |
|
56 element->SetDtorKey( dtor ); |
|
57 |
|
58 return element; |
|
59 } |
|
60 // End of File |