File indexing completed on 2024-04-14 03:48:00
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com> 0004 // 0005 0006 #include "PlaybackTourControlItem.h" 0007 0008 #include "GeoDataTourControl.h" 0009 0010 namespace Marble 0011 { 0012 0013 PlaybackTourControlItem::PlaybackTourControlItem(const GeoDataTourControl* tourControl) 0014 { 0015 m_tourControl = tourControl; 0016 } 0017 0018 const GeoDataTourControl* PlaybackTourControlItem::tourControl() const 0019 { 0020 return m_tourControl; 0021 } 0022 0023 void PlaybackTourControlItem::play() 0024 { 0025 if( m_tourControl->playMode() == GeoDataTourControl::Pause ) { 0026 emit paused(); 0027 } 0028 } 0029 0030 double PlaybackTourControlItem::duration() const 0031 { 0032 return 0; 0033 } 0034 0035 void PlaybackTourControlItem::pause() 0036 { 0037 // nothing to do 0038 } 0039 0040 void PlaybackTourControlItem::seek( double position ) 0041 { 0042 Q_UNUSED( position ); 0043 // nothing to do 0044 } 0045 0046 void PlaybackTourControlItem::stop() 0047 { 0048 // nothing to do 0049 } 0050 0051 }