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