|
1 /* |
|
2 * Copyright (c) 2006 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: Implementation for CUSBClassChangeUIPluginInterface class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // Default constructor. |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 inline CUSBClassChangeUIPluginInterface::CUSBClassChangeUIPluginInterface() |
|
24 { |
|
25 } |
|
26 |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // Destructor. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 inline CUSBClassChangeUIPluginInterface::~CUSBClassChangeUIPluginInterface() |
|
33 { |
|
34 //REComSession::DestroyedImplementation can't be called, because the |
|
35 //GS framework wants to do it. |
|
36 } |
|
37 |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // Create new plugin having the given UID. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 inline CUSBClassChangeUIPluginInterface* CUSBClassChangeUIPluginInterface::NewL( |
|
44 TUid aImplementationUid, |
|
45 TAny* aInitParams ) |
|
46 { |
|
47 TAny* ptr; |
|
48 TInt32 keyOffset = _FOFF( CUSBClassChangeUIPluginInterface, iDtor_ID_Key ); |
|
49 |
|
50 ptr = REComSession::CreateImplementationL( |
|
51 aImplementationUid, |
|
52 keyOffset, |
|
53 aInitParams); |
|
54 |
|
55 return static_cast< CUSBClassChangeUIPluginInterface* >( ptr ); |
|
56 } |
|
57 |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // Signal destruction of interface implementation to ECOM. |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 inline void CUSBClassChangeUIPluginInterface::SignalDestruction() |
|
64 { |
|
65 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
66 } |