|
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 "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: Implentation of functions shared between all |
|
15 * implementations of the LBS Network Protocol Module |
|
16 * interface/ECom plugin. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <ecom/ecom.h> |
|
23 |
|
24 #include <lbs/lbslocinfoconverterpluginbase.h> |
|
25 #include <lbs/lbslocinfoconverterpluginclasstypes.h> |
|
26 |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // MLbsLocInfoConverterPluginObserver::ExtendedInterface() |
|
30 // other items were commented in the header |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 EXPORT_C TVersion MLbsLocInfoConverterPluginObserver::Version() const |
|
34 { |
|
35 return TVersion( 1, 0, 0 ); |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // MLbsLocInfoConverterPluginObserver::ExtendedInterface() |
|
40 // other items were commented in the header |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 EXPORT_C TAny* MLbsLocInfoConverterPluginObserver::ExtendedInterface( |
|
44 TInt /*aFunctionNumber*/, |
|
45 TAny* /*aPtr1*/, |
|
46 TAny* /*aPtr2*/ ) |
|
47 { |
|
48 return NULL; |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // CLbsLocInfoConverterPluginBase::NewL() |
|
53 // other items were commented in the header |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 EXPORT_C CLbsLocInfoConverterPluginBase* CLbsLocInfoConverterPluginBase::NewL( |
|
57 TUid aImplementationUid, |
|
58 TLbsLocInfoConverterPluginParams& aParams ) |
|
59 { |
|
60 TAny* ptr = REComSession::CreateImplementationL( aImplementationUid, |
|
61 _FOFF( CLbsLocInfoConverterPluginBase, iDtor_ID_Key ), |
|
62 reinterpret_cast<TAny*>( &aParams ) ); |
|
63 |
|
64 return reinterpret_cast<CLbsLocInfoConverterPluginBase*>(ptr); |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // CLbsLocInfoConverterPluginBase::~CLbsLocInfoConverterPluginBase() |
|
69 // other items were commented in the header |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C CLbsLocInfoConverterPluginBase::~CLbsLocInfoConverterPluginBase() |
|
73 { |
|
74 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // CLbsLocInfoConverterPluginBase::Version() |
|
79 // other items were commented in the header |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C TVersion CLbsLocInfoConverterPluginBase::Version() const |
|
83 { |
|
84 return TVersion( 1, 0, 0 ); |
|
85 } |
|
86 |
|
87 // --------------------------------------------------------------------------- |
|
88 // CLbsLocInfoConverterPluginBase::ExtendedInterface() |
|
89 // other items were commented in the header |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 EXPORT_C TAny* CLbsLocInfoConverterPluginBase::ExtendedInterface( |
|
93 TInt /*aFunctionNumber*/, |
|
94 TAny* /*aPtr1*/, |
|
95 TAny* /*aPtr2*/ ) |
|
96 { |
|
97 return NULL; |
|
98 } |
|
99 |
|
100 // --------------------------------------------------------------------------- |
|
101 // TLbsLocInfoConverterPluginParams::TLbsLocInfoConverterPluginParams() |
|
102 // other items were commented in the header |
|
103 // --------------------------------------------------------------------------- |
|
104 // |
|
105 EXPORT_C TLbsLocInfoConverterPluginParams::TLbsLocInfoConverterPluginParams( |
|
106 MLbsLocInfoConverterPluginObserver& aObserver ):iObserver(aObserver) |
|
107 { |
|
108 iClassType = ELbsLocInfoConverterPluginParamsClass; |
|
109 iClassSize = sizeof(TLbsLocInfoConverterPluginParams); |
|
110 } |
|
111 |
|
112 // --------------------------------------------------------------------------- |
|
113 // TLbsLocInfoConverterPluginParams::Observer() |
|
114 // other items were commented in the header |
|
115 // --------------------------------------------------------------------------- |
|
116 // |
|
117 EXPORT_C MLbsLocInfoConverterPluginObserver& TLbsLocInfoConverterPluginParams::Observer() const |
|
118 { |
|
119 return iObserver; |
|
120 } |