|
1 /* |
|
2 * Copyright (c) 2005 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: Inline functions for CPslnFWPluginInteface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ============================ MEMBER FUNCTIONS =============================== |
|
20 // ----------------------------------------------------------------------------- |
|
21 // Destructor. |
|
22 // ----------------------------------------------------------------------------- |
|
23 // |
|
24 inline CPslnFWPluginInterface::~CPslnFWPluginInterface() |
|
25 { |
|
26 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
27 } |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Two-phased constructor. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 inline CPslnFWPluginInterface* CPslnFWPluginInterface::NewL( |
|
34 TUid aImplementationUid, |
|
35 CAknViewAppUi* aAppUi ) |
|
36 { |
|
37 TAny* ptr; |
|
38 TInt32 keyOffset = _FOFF( CPslnFWPluginInterface, iDtor_ID_Key ); |
|
39 ptr = REComSession::CreateImplementationL( |
|
40 aImplementationUid, |
|
41 keyOffset, |
|
42 aAppUi ); |
|
43 |
|
44 CPslnFWPluginInterface* plugin = |
|
45 reinterpret_cast <CPslnFWPluginInterface*> (ptr); |
|
46 plugin->iAppUi = aAppUi; |
|
47 return plugin; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CPslnFWPluginInterface::CustomOperationL() |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 inline TAny* CPslnFWPluginInterface::CustomOperationL( |
|
55 TAny* /*aParam1*/, |
|
56 TAny* /*aParam2*/ ) |
|
57 { |
|
58 return NULL; |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CPslnFWPluginInterface::GetLocationTypeAndIndex() |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 inline void CPslnFWPluginInterface::GetLocationTypeAndIndex( |
|
66 TPslnFWLocationType& aType, |
|
67 TInt& aIndex ) const |
|
68 { |
|
69 aType = EPslnFWNotSpecified; |
|
70 aIndex = KErrNotFound; |
|
71 } |
|
72 |
|
73 // End of File |