diff -r 0e652f8f1fbd -r 24fd82631616 camerauis/cameraxui/cxengine/inc/cxegeotaggingtrail_desktop_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraxui/cxengine/inc/cxegeotaggingtrail_desktop_p.h Fri Jul 23 11:35:41 2010 +0300 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2010 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: +* +*/ + +#ifndef CXEGEOTAGGINGTRAIL_DESKTOP_P_H +#define CXEGEOTAGGINGTRAIL_DESKTOP_P_H + +#include +#include +#include +#include + +#include "cxeerror.h" +#include "cxestatemachine.h" +#include "cxegeotaggingtrail.h" + +// Forward declarations +class CxeSettings; + +class CxeGeoTaggingTrailPrivate : public QObject, + public CxeStateMachine +{ + Q_OBJECT + +private: + CxeGeoTaggingTrailPrivate(CxeStillCaptureControl &stillControl, + CxeVideoCaptureControl &videoControl, + CxeSettings &settings); + ~CxeGeoTaggingTrailPrivate(); + +signals: + void stateChanged(CxeGeoTaggingTrail::State newState, CxeError::Id error); + +protected: // from CxeStateMachine + void handleStateChanged(int newStateId, CxeError::Id error); + +private: + void start(); + void initializeStates(); + CxeGeoTaggingTrail::State state() const; + +private slots: + void handleSettingValueChanged(const QString&, QVariant); + void stop(bool closeSession = false); + +private: + CxeSettings &mSettings; + + friend class CxeGeoTaggingTrail; +}; + +#endif // CXEGEOTAGGINGTRAIL_DESKTOP_P_H