Marble

SerialTrack.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef SERIALTRACK_H
7#define SERIALTRACK_H
8
9#include <QObject>
10
11#include "PlaybackItem.h"
12
13namespace Marble
14{
15class GeoDataCoordinates;
16
17class SerialTrack : public QObject
18{
20public:
21 SerialTrack();
22 ~SerialTrack() override;
23
24 void append(PlaybackItem *item);
25 void play();
26 void seek(double position);
27 double duration() const;
28 void clear();
29 int size() const;
30 PlaybackItem *at(int i);
31 double currentPosition();
32
34 void centerOn(const GeoDataCoordinates &coordinates);
35 void progressChanged(double);
36 void finished();
37 void paused();
38 void itemFinished(int index);
39
40public Q_SLOTS:
41 void handleFinishedItem();
42 void changeProgress(double);
43 void pause();
44 void stop();
45
46private:
48 int m_currentIndex;
49 double m_finishedPosition;
50 double m_currentPosition;
51 bool m_paused;
52};
53
54}
55#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.