|
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 #include "cxutils.h" |
|
19 #include "cxegeotaggingtrail.h" |
|
20 #include "cxegeotaggingtrailprivate.h" |
|
21 |
|
22 /*! |
|
23 * Constructor |
|
24 */ |
|
25 CxeGeoTaggingTrail::CxeGeoTaggingTrail(CxeStillCaptureControl &stillControl, |
|
26 CxeVideoCaptureControl &videoControl, |
|
27 CxeSettings &settings) |
|
28 : d_ptr(new CxeGeoTaggingTrailPrivate(stillControl, videoControl, settings)) |
|
29 { |
|
30 // connect signal state changed signal. |
|
31 connect(d_ptr, SIGNAL(stateChanged(CxeGeoTaggingTrail::State, CxeError::Id)), |
|
32 this, SIGNAL(stateChanged(CxeGeoTaggingTrail::State, CxeError::Id)), |
|
33 Qt::UniqueConnection); |
|
34 } |
|
35 |
|
36 |
|
37 /*! |
|
38 * Destructor |
|
39 */ |
|
40 CxeGeoTaggingTrail::~CxeGeoTaggingTrail() |
|
41 { |
|
42 delete d_ptr; |
|
43 } |
|
44 |
|
45 /*! |
|
46 * Slot to start location trail. |
|
47 */ |
|
48 void CxeGeoTaggingTrail::start() |
|
49 { |
|
50 Q_D(CxeGeoTaggingTrail); |
|
51 d->start(); |
|
52 } |
|
53 |
|
54 /*! |
|
55 * Slot to stop location trail. |
|
56 */ |
|
57 void CxeGeoTaggingTrail::stop() |
|
58 { |
|
59 Q_D(CxeGeoTaggingTrail); |
|
60 d->stop(); |
|
61 } |
|
62 |
|
63 |
|
64 |
|
65 /*! |
|
66 * Returns current state of Geo-tagging trail. |
|
67 */ |
|
68 CxeGeoTaggingTrail::State CxeGeoTaggingTrail::state() |
|
69 { |
|
70 Q_D(CxeGeoTaggingTrail); |
|
71 return d->state(); |
|
72 } |
|
73 |
|
74 // end of file |