43
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CXEGEOTAGGINGTRAIL_H
|
|
19 |
#define CXEGEOTAGGINGTRAIL_H
|
|
20 |
|
|
21 |
#include <QObject>
|
|
22 |
#include <QMetaType>
|
|
23 |
#include "cxeerror.h"
|
|
24 |
|
|
25 |
class CxeSettings;
|
|
26 |
class CxeStillCaptureControl;
|
|
27 |
class CxeVideoCaptureControl;
|
|
28 |
|
|
29 |
class CxeGeoTaggingTrailPrivate;
|
|
30 |
|
|
31 |
class CxeGeoTaggingTrail : public QObject
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
|
|
37 |
//! Geotagging trail states
|
|
38 |
enum State {
|
|
39 |
//! location utility not connected
|
|
40 |
NotConnected = 0x01,
|
|
41 |
|
|
42 |
//! connected to location utility, but location trail NOT STARTED.
|
|
43 |
Connected = 0x02,
|
|
44 |
|
|
45 |
//! starting Location trail, GPS data not yet available
|
|
46 |
TrailStarted = 0x04,
|
|
47 |
|
|
48 |
//! location trail started and GPS data available.
|
|
49 |
DataAvailable = 0x08
|
|
50 |
};
|
|
51 |
|
|
52 |
public:
|
|
53 |
|
|
54 |
CxeGeoTaggingTrail(CxeStillCaptureControl &stillControl,
|
|
55 |
CxeVideoCaptureControl &videoControl,
|
|
56 |
CxeSettings &settings);
|
|
57 |
|
|
58 |
~CxeGeoTaggingTrail();
|
|
59 |
|
|
60 |
signals:
|
|
61 |
void stateChanged(CxeGeoTaggingTrail::State newState, CxeError::Id error);
|
|
62 |
|
|
63 |
public slots:
|
|
64 |
void start();
|
|
65 |
void stop();
|
|
66 |
|
|
67 |
public:
|
|
68 |
State state();
|
|
69 |
|
|
70 |
protected:
|
|
71 |
CxeGeoTaggingTrailPrivate *const d_ptr;
|
|
72 |
|
|
73 |
private:
|
|
74 |
Q_DECLARE_PRIVATE(CxeGeoTaggingTrail)
|
|
75 |
|
|
76 |
};
|
|
77 |
|
|
78 |
Q_DECLARE_METATYPE(CxeGeoTaggingTrail::State)
|
|
79 |
|
|
80 |
#endif // CXEGEOTAGGINGTRAIL_H
|