|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // SuplTiApi.cpp |
|
15 |
|
16 #include <ecom/ecom.h> |
|
17 |
|
18 #include <lbs/supltiapi.h> |
|
19 |
|
20 |
|
21 // CLbsSuplTiApi |
|
22 // |
|
23 |
|
24 EXPORT_C CLbsSuplTiApi* CLbsSuplTiApi::NewL(MLbsSuplTiObserver& aObserver, TUid aEcomModuleId) |
|
25 { |
|
26 TAny* ptr = REComSession::CreateImplementationL(aEcomModuleId, |
|
27 _FOFF(CLbsSuplTiApi, iDtor_ID_Key), |
|
28 reinterpret_cast<TAny*>(&aObserver)); |
|
29 |
|
30 return reinterpret_cast<CLbsSuplTiApi*>(ptr); |
|
31 } |
|
32 |
|
33 EXPORT_C CLbsSuplTiApi::CLbsSuplTiApi(MLbsSuplTiObserver& aObserver) |
|
34 :iSuplTiObserver(aObserver) |
|
35 { |
|
36 } |
|
37 |
|
38 EXPORT_C void CLbsSuplTiApi::ConstructL() |
|
39 { |
|
40 } |
|
41 |
|
42 EXPORT_C CLbsSuplTiApi::~CLbsSuplTiApi() |
|
43 { |
|
44 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
45 } |
|
46 |
|
47 void CLbsSuplTiApi::RequestLocation(const TLbsNetSessionId& /*aSessionId*/, |
|
48 const TLbsNetPosRequestOptionsBase& /*aOptions*/, |
|
49 const TLbsNetPosRequestMethod& /*aMethod*/) |
|
50 { |
|
51 } |
|
52 |
|
53 TInt CLbsSuplTiApi::CancelRequest(const TLbsNetSessionId& /*aSessionId*/) |
|
54 { |
|
55 return KErrNotSupported; |
|
56 } |
|
57 |
|
58 void CLbsSuplTiApi::CloseSession() |
|
59 { |
|
60 } |
|
61 |
|
62 TInt CLbsSuplTiApi::GetPosition(const TLbsNetSessionId& /*aSessionId*/, |
|
63 TPositionInfoBase& /*aPositionInfo*/) |
|
64 { |
|
65 return KErrNotSupported; |
|
66 } |
|
67 |
|
68 |
|
69 // MLbsSuplTiObserver |
|
70 // |
|
71 |
|
72 void MLbsSuplTiObserver::RequestComplete( TInt /*aReason*/, |
|
73 const TLbsNetSessionId& /*aSessionId*/) |
|
74 { |
|
75 } |
|
76 |