42
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef R_RLOCATIONTRAIL_H
|
|
19 |
#define R_RLOCATIONTRAIL_H
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <etel3rdparty.h>
|
|
23 |
#include <lbsposition.h>
|
|
24 |
#include <locationdatatype.h>
|
|
25 |
|
|
26 |
typedef TPckg<TLocality> TLocalityPckg;
|
|
27 |
|
|
28 |
/**
|
|
29 |
* RLocationManager dummy.
|
|
30 |
*/
|
|
31 |
class RLocationTrail
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
|
|
35 |
enum TTrailState
|
|
36 |
{
|
|
37 |
ETrailStopped,
|
|
38 |
EWaitingGPSData,
|
|
39 |
ESearchingGPS,
|
|
40 |
ETrailStarted,
|
|
41 |
ETrailStopping,
|
|
42 |
ETrailStarting
|
|
43 |
};
|
|
44 |
enum TTrailCaptureSetting
|
|
45 |
{
|
|
46 |
EOff,
|
|
47 |
ECaptureNetworkInfo,
|
|
48 |
ECaptureAll
|
|
49 |
};
|
|
50 |
|
|
51 |
public:
|
|
52 |
RLocationTrail();
|
|
53 |
~RLocationTrail();
|
|
54 |
|
|
55 |
TInt Connect();
|
|
56 |
void Close();
|
|
57 |
|
|
58 |
TInt StartLocationTrail(TTrailCaptureSetting aState);
|
|
59 |
TInt StopLocationTrail();
|
|
60 |
TInt GetLocationTrailState( TTrailState& aState );
|
|
61 |
void NotifyLocationTrailStateChange( TRequestStatus& aStatus );
|
|
62 |
void CancelNotificationRequest();
|
|
63 |
TInt RetrieveLocation( const TTime& aTimeStamp,
|
|
64 |
TLocationData& aLocationData,
|
|
65 |
TTrailState& aState );
|
|
66 |
void CurrentLocation( TRequestStatus& aStatus,
|
|
67 |
TLocationData& aLocationData);
|
|
68 |
void CancelLocationRequest();
|
|
69 |
TInt GetTrailCaptureSetting( TTrailCaptureSetting& aCaptureSetting );
|
|
70 |
};
|
|
71 |
|
|
72 |
#endif // R_RLOCATIONTRAIL_H
|
|
73 |
|
|
74 |
// end of file
|