|
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 CXEGEOTAGGINGTRAIL_DESKTOP_P_H |
|
19 #define CXEGEOTAGGINGTRAIL_DESKTOP_P_H |
|
20 |
|
21 #include <QTimer> |
|
22 #include <QObject> |
|
23 #include <QVariant> |
|
24 #include <QString> |
|
25 |
|
26 #include "cxeerror.h" |
|
27 #include "cxestatemachine.h" |
|
28 #include "cxegeotaggingtrail.h" |
|
29 |
|
30 // Forward declarations |
|
31 class CxeSettings; |
|
32 |
|
33 class CxeGeoTaggingTrailPrivate : public QObject, |
|
34 public CxeStateMachine |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 private: |
|
39 CxeGeoTaggingTrailPrivate(CxeStillCaptureControl &stillControl, |
|
40 CxeVideoCaptureControl &videoControl, |
|
41 CxeSettings &settings); |
|
42 ~CxeGeoTaggingTrailPrivate(); |
|
43 |
|
44 signals: |
|
45 void stateChanged(CxeGeoTaggingTrail::State newState, CxeError::Id error); |
|
46 |
|
47 protected: // from CxeStateMachine |
|
48 void handleStateChanged(int newStateId, CxeError::Id error); |
|
49 |
|
50 private: |
|
51 void start(); |
|
52 void initializeStates(); |
|
53 CxeGeoTaggingTrail::State state() const; |
|
54 |
|
55 private slots: |
|
56 void handleSettingValueChanged(const QString&, QVariant); |
|
57 void stop(bool closeSession = false); |
|
58 |
|
59 private: |
|
60 CxeSettings &mSettings; |
|
61 |
|
62 friend class CxeGeoTaggingTrail; |
|
63 }; |
|
64 |
|
65 #endif // CXEGEOTAGGINGTRAIL_DESKTOP_P_H |