Marble

PlaybackSoundCueItem.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef PLAYBACKSOUNDCUEITEM_H
7#define PLAYBACKSOUNDCUEITEM_H
8
9#include "PlaybackItem.h"
10
11#include <config-phonon.h>
12
13#if HAVE_PHONON
14#include <phonon/MediaObject>
15#endif
16
17namespace Marble
18{
19
20class GeoDataSoundCue;
21
22class PlaybackSoundCueItem : public PlaybackItem
23{
25public:
26 explicit PlaybackSoundCueItem(const GeoDataSoundCue *soundCue);
27 const GeoDataSoundCue *soundCue() const;
28 double duration() const override;
29 void play() override;
30 void pause() override;
31 void seek(double position) override;
32 void stop() override;
33
34private:
35 const GeoDataSoundCue *m_soundCue;
36 QString m_href;
37#if HAVE_PHONON
38 Phonon::MediaObject m_mediaObject;
39#endif
40};
41
42}
43#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.