Marble

PlaybackWaitItem.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #ifndef PLAYBACKWAITITEM_H
7 #define PLAYBACKWAITITEM_H
8 
9 #include "PlaybackItem.h"
10 #include <QDateTime>
11 
12 namespace Marble
13 {
14 
15 class GeoDataWait;
16 
17 class PlaybackWaitItem : public PlaybackItem
18 {
19  Q_OBJECT
20 public:
21  explicit PlaybackWaitItem( const GeoDataWait* wait );
22  const GeoDataWait* wait() const;
23  double duration() const override;
24  void play() override;
25  void pause() override;
26  void seek( double position ) override;
27  void stop() override;
28 
29 private Q_SLOTS:
30  void playNext();
31 
32 private:
33  const GeoDataWait* m_wait;
34  QDateTime m_start;
35  QDateTime m_pause;
36  bool m_isPlaying;
37 };
38 }
39 #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:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.