camerauis/cameraxui/cxengine/inc/cxegeotaggingtrailprivate.h
changeset 46 c826656d6714
parent 42 feebad15db8c
child 52 7e18d488ac5f
equal deleted inserted replaced
42:feebad15db8c 46:c826656d6714
     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 #ifndef CXEGEOTAGGINGTRAILPRIVATE_H
       
    19 #define CXEGEOTAGGINGTRAILPRIVATE_H
       
    20 
       
    21 #include <QTimer>
       
    22 #include <QObject>
       
    23 #include <QVariant>
       
    24 #include <QString>
       
    25 
       
    26 #include "cxeerror.h"
       
    27 #include "rlocationtrail.h"
       
    28 #include "cxestatemachine.h"
       
    29 #include "cxegeotaggingtrail.h"
       
    30 
       
    31 
       
    32 
       
    33 
       
    34 // Forward declarations
       
    35 class CxeSettings;
       
    36 class RLocationTrail;
       
    37 class CxeStillCaptureControl;
       
    38 class CxeVideoCaptureControl;
       
    39 
       
    40 
       
    41 
       
    42 
       
    43 class CxeGeoTaggingTrailPrivate : public QObject,
       
    44                                   public CxeStateMachine
       
    45 {
       
    46     Q_OBJECT
       
    47 
       
    48 private:
       
    49 
       
    50     CxeGeoTaggingTrailPrivate(CxeStillCaptureControl &stillControl,
       
    51                               CxeVideoCaptureControl &videoControl,
       
    52                               CxeSettings &settings);
       
    53     ~CxeGeoTaggingTrailPrivate();
       
    54 
       
    55 signals:
       
    56     void stateChanged(CxeGeoTaggingTrail::State newState, CxeError::Id error);
       
    57 
       
    58 protected: // from CxeStateMachine
       
    59     void handleStateChanged(int newStateId, CxeError::Id error);
       
    60 
       
    61 private slots:
       
    62     void handleSettingValueChanged(const QString&,QVariant);
       
    63     void handleGeoTaggingPropertyEvent(long int uid, unsigned long int key, QVariant value);
       
    64     void timeout();
       
    65     void stop(bool closeSession = false);
       
    66 
       
    67 private:
       
    68     void start();
       
    69     void initializeStates();
       
    70     bool canStopTrail() const;
       
    71     CxeGeoTaggingTrail::State state() const;
       
    72 
       
    73 private:
       
    74     CxeStillCaptureControl &mStillCaptureControl;
       
    75     CxeVideoCaptureControl &mVideoCaptureControl;
       
    76     CxeSettings &mSettings;
       
    77     QTimer mStopLocationTrailTimer;
       
    78     bool mPendingStopTrailSession;
       
    79 #if defined(Q_OS_SYMBIAN)
       
    80     RLocationTrail mLocationTrail;
       
    81 #endif
       
    82     
       
    83     friend class CxeGeoTaggingTrail;
       
    84 };
       
    85 
       
    86 #endif // CXEGEOTAGGINGTRAILPRIVATE_H