Marble

PlaybackSoundCueItem.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
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 
17 namespace Marble
18 {
19 
20 class GeoDataSoundCue;
21 
22 class PlaybackSoundCueItem : public PlaybackItem
23 {
24  Q_OBJECT
25 public:
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 private:
34  const GeoDataSoundCue* m_soundCue;
35  QString m_href;
36 #if HAVE_PHONON
37  Phonon::MediaObject m_mediaObject;
38 #endif
39 };
40 
41 }
42 #endif
Q_OBJECTQ_OBJECT
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 Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.