camerauis/cameraxui/cxengine/src/cxegeotaggingtrail.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:04:02 +0300
changeset 37 64817133cd1d
child 45 24fd82631616
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#include "cxutils.h"
#include "cxegeotaggingtrail.h"
#include "cxegeotaggingtrailprivate.h"

/*!
* Constructor
*/
CxeGeoTaggingTrail::CxeGeoTaggingTrail(CxeStillCaptureControl &stillControl,
                                       CxeVideoCaptureControl &videoControl,
                                       CxeSettings &settings)
    : d_ptr(new CxeGeoTaggingTrailPrivate(stillControl, videoControl, settings))
{
    // connect signal state changed signal.
    connect(d_ptr, SIGNAL(stateChanged(CxeGeoTaggingTrail::State, CxeError::Id)), 
            this, SIGNAL(stateChanged(CxeGeoTaggingTrail::State, CxeError::Id)),
            Qt::UniqueConnection);
}


/*!
* Destructor
*/
CxeGeoTaggingTrail::~CxeGeoTaggingTrail()
{
    delete d_ptr;
}

/*!
* Slot to start location trail.
*/
void CxeGeoTaggingTrail::start()
{
    Q_D(CxeGeoTaggingTrail);
    d->start();
}

/*!
* Slot to stop location trail.
*/
void CxeGeoTaggingTrail::stop()
{
    Q_D(CxeGeoTaggingTrail);
    d->stop();
}



/*!
* Returns current state of Geo-tagging trail.
*/
CxeGeoTaggingTrail::State CxeGeoTaggingTrail::state()
{
    Q_D(CxeGeoTaggingTrail);
    return d->state();
}

// end of file