|
1 /* |
|
2 * Copyright (c) 2006-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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ----------------------------------------------------------------------------- |
|
21 // Function : CIRMediaEngineInterface |
|
22 // default constructor |
|
23 // @param none |
|
24 // @return none |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 inline CIRMediaEngineInterface::CIRMediaEngineInterface() |
|
28 { |
|
29 //No implementation |
|
30 } |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // Function : ~CIRMediaEngineInterface |
|
34 // default destructor |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 inline CIRMediaEngineInterface::~CIRMediaEngineInterface() |
|
38 { |
|
39 // Destroy any instance variables and then |
|
40 // inform the framework that this specific |
|
41 // instance of the interface has been destroyed. |
|
42 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // Function : NewL |
|
47 // function to creates an instance of CIRMediaEngineInterface |
|
48 // Two phase constructor |
|
49 // @param matching string |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 inline CIRMediaEngineInterface* CIRMediaEngineInterface::NewL(const TDesC8& aMatchString) |
|
53 { |
|
54 // Set up the interface find for the default resolver. |
|
55 TEComResolverParams resolverParams; |
|
56 resolverParams.SetDataType(aMatchString); |
|
57 resolverParams.SetWildcardMatch(ETrue); // Allow wildcard matching |
|
58 |
|
59 return reinterpret_cast<CIRMediaEngineInterface*> |
|
60 (REComSession::CreateImplementationL(KMediaEngineInterfaceUid, |
|
61 _FOFF(CIRMediaEngineInterface,iDtor_ID_Key), |
|
62 NULL,resolverParams)); |
|
63 } |
|
64 |