43
|
1 |
/*
|
45
|
2 |
* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
|
43
|
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 |
*
|
45
|
14 |
* Description: An interface to Location Trail.
|
43
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef R_RLOCATIONTRAIL_H
|
|
19 |
#define R_RLOCATIONTRAIL_H
|
|
20 |
|
|
21 |
|
|
22 |
/**
|
45
|
23 |
* Fake implementation of RLocationManager class which is used for creating a Location Manager session.
|
|
24 |
* Location Manager is used to start and stop the location trail, retrieve
|
|
25 |
* location information and write the location information to images.
|
|
26 |
*/
|
|
27 |
class RLocationTrail
|
43
|
28 |
{
|
|
29 |
public:
|
45
|
30 |
/**
|
|
31 |
* Location trail states.
|
|
32 |
*/
|
43
|
33 |
enum TTrailState
|
|
34 |
{
|
|
35 |
ETrailStopped,
|
|
36 |
EWaitingGPSData,
|
|
37 |
ESearchingGPS,
|
|
38 |
ETrailStarted,
|
|
39 |
ETrailStopping,
|
|
40 |
ETrailStarting
|
|
41 |
};
|
45
|
42 |
|
43
|
43 |
enum TTrailCaptureSetting
|
45
|
44 |
{
|
|
45 |
EOff,
|
|
46 |
ECaptureNetworkInfo,
|
|
47 |
ECaptureAll
|
|
48 |
};
|
43
|
49 |
|
|
50 |
public:
|
45
|
51 |
RLocationTrail();
|
|
52 |
|
|
53 |
~RLocationTrail();
|
43
|
54 |
|
45
|
55 |
/**
|
|
56 |
* Starts recording location information to location trail.
|
|
57 |
* @since S60 3.2
|
|
58 |
* @param aState, an enumeration of ECaptureNetworkInfo
|
|
59 |
* (only cell ID stored) and ECaptureAll
|
|
60 |
* (GPS coordinates and cell ID stored).
|
|
61 |
* @return KErrNone if successful, otherwise one of the other
|
|
62 |
* system-wide error codes.
|
|
63 |
*/
|
|
64 |
int StartLocationTrail(TTrailCaptureSetting aState);
|
|
65 |
|
|
66 |
/**
|
|
67 |
* Stops recording location information to location trail.
|
|
68 |
* @since S60 3.1
|
|
69 |
* @param None.
|
|
70 |
* @return KErrNone if successful, otherwise one of the other
|
|
71 |
* system-wide error codes.
|
|
72 |
*/
|
|
73 |
int StopLocationTrail();
|
|
74 |
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Connect to location trail server
|
|
78 |
* @return KErrNone if successful, otherwise one of the other
|
|
79 |
* system-wide error codes.
|
|
80 |
**/
|
|
81 |
int Connect();
|
|
82 |
|
43
|
83 |
void Close();
|
|
84 |
|
45
|
85 |
private:
|
|
86 |
bool mTrailConnected;
|
|
87 |
bool mTrailStarted;
|
43
|
88 |
};
|
45
|
89 |
|
43
|
90 |
#endif // R_RLOCATIONTRAIL_H
|
|
91 |
|
45
|
92 |
//End of File
|