Marble

PlaybackFlyToItem.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef PLAYBACKFLYTOITEM_H
7#define PLAYBACKFLYTOITEM_H
8
9#include "PlaybackItem.h"
10
11#include <QDateTime>
12
13namespace Marble
14{
15class GeoDataCoordinates;
16class GeoDataFlyTo;
17
18class PlaybackFlyToItem : public PlaybackItem
19{
21public:
22 explicit PlaybackFlyToItem( const GeoDataFlyTo* flyTo );
23 const GeoDataFlyTo* flyTo() const;
24 double duration() const override;
25 void play() override;
26 void pause() override;
27 void seek( double position ) override;
28 void stop() override;
29 void center( double t );
30 void setBefore(PlaybackFlyToItem* before);
31 void setNext(PlaybackFlyToItem* next);
32 void setStartCoordinates( const GeoDataCoordinates &coordinates );
33 void setFirst( bool isFirst );
34
35private Q_SLOTS:
36 void playNext();
37
38private:
39 const GeoDataFlyTo* m_flyTo;
40 PlaybackFlyToItem* m_before;
41 PlaybackFlyToItem* m_next;
42 QDateTime m_start;
43 QDateTime m_pause;
44 bool m_isPlaying;
45 bool m_isFirst;
46};
47
48}
49#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:54:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.