Marble

SoundTrack.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef SOUNDTRACK_H
7#define SOUNDTRACK_H
8
9#include <QDateTime>
10#include <QTimer>
11
12namespace Marble
13{
14
15class PlaybackSoundCueItem;
16
17class SoundTrack : public QObject
18{
20
21public:
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
31public Q_SLOTS:
32 void playSlot();
33
34private:
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
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.