Marble

PlaybackTourControlItem.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #include "PlaybackTourControlItem.h"
7 
8 #include "GeoDataTourControl.h"
9 
10 namespace Marble
11 {
12 
13 PlaybackTourControlItem::PlaybackTourControlItem(const GeoDataTourControl* tourControl)
14 {
15  m_tourControl = tourControl;
16 }
17 
18 const GeoDataTourControl* PlaybackTourControlItem::tourControl() const
19 {
20  return m_tourControl;
21 }
22 
23 void PlaybackTourControlItem::play()
24 {
25  if( m_tourControl->playMode() == GeoDataTourControl::Pause ) {
26  emit paused();
27  }
28 }
29 
30 double PlaybackTourControlItem::duration() const
31 {
32  return 0;
33 }
34 
36 {
37  // nothing to do
38 }
39 
40 void PlaybackTourControlItem::seek( double position )
41 {
42  Q_UNUSED( position );
43  // nothing to do
44 }
45 
47 {
48  // nothing to do
49 }
50 
51 }
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 Tue Oct 3 2023 04:09:49 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.