Marble

SoundTrack.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #ifndef SOUNDTRACK_H
7 #define SOUNDTRACK_H
8 
9 #include <QDateTime>
10 #include <QTimer>
11 
12 namespace Marble
13 {
14 
15 class PlaybackSoundCueItem;
16 
17 class SoundTrack : public QObject
18 {
19  Q_OBJECT
20 
21 public:
22  explicit SoundTrack( PlaybackSoundCueItem* item );
23  void setDelayBeforeTrackStarts( double delay );
24  double delayBeforeTrackStarts() const;
25  void play();
26  void pause();
27  void seek( double position );
28  void stop();
29  void setPaused( bool );
30 
31 public Q_SLOTS:
32  void playSlot();
33 
34 private:
35  PlaybackSoundCueItem* m_item;
36  QDateTime m_playTime;
37  QDateTime m_pauseTime;
38  double m_delayBeforeTrackStarts;
39  double m_progress;
40  QTimer m_timer;
41  bool m_paused;
42 };
43 }
44 #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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.