Marble

AnimatedUpdateTrack.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #ifndef ANIMATEDUPDATETRACK_H
7 #define ANIMATEDUPDATETRACK_H
8 
9 #include <QDateTime>
10 #include <QTimer>
11 
12 namespace Marble
13 {
14 
15 class GeoDataFeature;
16 class GeoDataContainer;
17 class GeoDataPlacemark;
18 class PlaybackAnimatedUpdateItem;
19 
20 class AnimatedUpdateTrack : public QObject
21 {
22  Q_OBJECT
23 
24 public:
25  explicit AnimatedUpdateTrack( PlaybackAnimatedUpdateItem* item );
26  void setDelayBeforeTrackStarts( double delay );
27  double delayBeforeTrackStarts() const;
28  void play();
29  void pause();
30  void seek( double position );
31  void stop();
32  void setPaused( bool );
33 
34 Q_SIGNALS:
35  void balloonHidden();
36  void balloonShown( GeoDataPlacemark* );
37  void updated( GeoDataFeature* );
38  void added( GeoDataContainer *parent, GeoDataFeature *feature, int row );
39  void removed( const GeoDataFeature *feature );
40 
41 public Q_SLOTS:
42  void playSlot();
43 
44 private:
45  PlaybackAnimatedUpdateItem* m_item;
46  QDateTime m_playTime;
47  QDateTime m_pauseTime;
48  double m_delayBeforeTrackStarts;
49  double m_progress;
50  QTimer m_timer;
51  bool m_paused;
52 };
53 }
54 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
void stop(Ekos::AlignState mode)
Q_SCRIPTABLE Q_NOREPLY void pause()
Binds a QML item to a specific geodetic location in screen coordinates.
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.