|
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 the License "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: My Videos indicator plugin inlines.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 #ifndef MYVIDEOSINDICATOR_INL |
|
20 #define MYVIDEOSINDICATOR_INL |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // Instantiates appropriate plugin implementation. |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 inline CMyVideosIndicator* CMyVideosIndicator::NewL() |
|
27 { |
|
28 TEComResolverParams resolverParams; |
|
29 TAny* ext = REComSession::CreateImplementationL( |
|
30 TUid::Uid( KMyVideosIndicatorInterfaceUid ), |
|
31 _FOFF( CMyVideosIndicator, iDtor_ID_Key ), |
|
32 resolverParams ); |
|
33 |
|
34 CMyVideosIndicator* result = reinterpret_cast<CMyVideosIndicator*>( ext ); |
|
35 |
|
36 return result; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // Interface's destructor |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 inline CMyVideosIndicator::~CMyVideosIndicator() |
|
44 { |
|
45 // Inform the ECOM framework that this specific instance of the |
|
46 // interface has been destroyed. |
|
47 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
48 } |
|
49 |
|
50 #endif // MYVIDEOSINDICATOR_INL |