camerauis/cameraxui/cxengine/inc/cxegeotaggingtrail_symbian_p.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 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 #ifndef CXEGEOTAGGINGTRAIL_SYMBIAN_P_H
       
    19 #define CXEGEOTAGGINGTRAIL_SYMBIAN_P_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 // Forward declarations
       
    32 class CxeSettings;
       
    33 class RLocationTrail;
       
    34 class CxeStillCaptureControl;
       
    35 class CxeVideoCaptureControl;
       
    36 
       
    37 class CxeGeoTaggingTrailPrivate : public QObject,
       
    38                                   public CxeStateMachine
       
    39 {
       
    40     Q_OBJECT
       
    41 
       
    42 private:
       
    43 
       
    44     CxeGeoTaggingTrailPrivate(CxeStillCaptureControl &stillControl,
       
    45                               CxeVideoCaptureControl &videoControl,
       
    46                               CxeSettings &settings);
       
    47     ~CxeGeoTaggingTrailPrivate();
       
    48 
       
    49 signals:
       
    50     void stateChanged(CxeGeoTaggingTrail::State newState, CxeError::Id error);
       
    51 
       
    52 protected: // from CxeStateMachine
       
    53     void handleStateChanged(int newStateId, CxeError::Id error);
       
    54 
       
    55 private:
       
    56     void start();
       
    57     void initializeStates();
       
    58     bool canStopTrail() const;
       
    59     CxeGeoTaggingTrail::State state() const;
       
    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();
       
    66 
       
    67 private:
       
    68     CxeStillCaptureControl &mStillCaptureControl;
       
    69     CxeVideoCaptureControl &mVideoCaptureControl;
       
    70     CxeSettings &mSettings;
       
    71     QTimer mStopLocationTrailTimer;
       
    72     bool mPendingStopTrailSession;
       
    73     RLocationTrail mLocationTrail;
       
    74     
       
    75     friend class CxeGeoTaggingTrail;
       
    76 };
       
    77 
       
    78 #endif // CXEGEOTAGGINGTRAIL_SYMBIAN_P_H