Music Hub
..
A session-wide music playback service
|
|
Go to the documentation of this file.
22 #ifndef LOMIRI_MEDIAHUBSERVICE_ENGINE_H
23 #define LOMIRI_MEDIAHUBSERVICE_ENGINE_H
30 #include <QSharedPointer>
33 #include <QVariantMap>
41 namespace MediaHubService
64 typedef std::function<void(
const QVariantMap &)>
Callback;
65 virtual void meta_data_for_track_with_uri(
const QUrl &uri,
87 virtual bool play() = 0;
88 virtual bool stop() = 0;
89 virtual bool pause() = 0;
90 virtual bool seek_to(
const std::chrono::microseconds& ts) = 0;
97 virtual uint64_t
position()
const = 0;
98 virtual uint64_t
duration()
const = 0;
114 virtual void reset() = 0;
155 QScopedPointer<EnginePrivate> d_ptr;
161 #endif // LOMIRI_MEDIAHUBSERVICE_ENGINE_H