summaryrefslogtreecommitdiffstats
path: root/mediaplayer
diff options
context:
space:
mode:
Diffstat (limited to 'mediaplayer')
-rw-r--r--mediaplayer/mediaplayer.cpp12
-rw-r--r--mediaplayer/mediaplayer.h10
2 files changed, 14 insertions, 8 deletions
diff --git a/mediaplayer/mediaplayer.cpp b/mediaplayer/mediaplayer.cpp
index 96799dc..69b2dea 100644
--- a/mediaplayer/mediaplayer.cpp
+++ b/mediaplayer/mediaplayer.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018 Konsulko Group
+ * Copyright (C) 2018-2020 Konsulko Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,10 +14,13 @@
* limitations under the License.
*/
+#include <QDebug>
+
#include "message.h"
+#include "mediaplayermessage.h"
#include "messageengine.h"
#include "mediaplayer.h"
-#include "mediaplayermessage.h"
+
Playlist::Playlist(QVariantMap &item)
{
@@ -212,8 +215,9 @@ void Mediaplayer::onDisconnected()
void Mediaplayer::onMessageReceived(MessageType type, Message *message)
{
- if (type == MediaplayerEventMessage) {
- MediaplayerMessage *tmsg = qobject_cast<MediaplayerMessage*>(message);
+ if (type == MessageType::MediaplayerEventMessage) {
+ MediaplayerMessage *tmsg =
+ qobject_cast<MediaplayerMessage*>(message);
if (tmsg->isEvent()) {
if (tmsg->isPlaylistEvent()) {
diff --git a/mediaplayer/mediaplayer.h b/mediaplayer/mediaplayer.h
index fe49be4..f3930f4 100644
--- a/mediaplayer/mediaplayer.h
+++ b/mediaplayer/mediaplayer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018 Konsulko Group
+ * Copyright (C) 2018-2020 Konsulko Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,12 +17,14 @@
#ifndef MEDIAPLAYER_H
#define MEDIAPLAYER_H
-#include <QDebug>
#include <QObject>
-
#include <QtQml/QQmlContext>
#include <QtQml/QQmlListProperty>
-#include "messageengine.h"
+
+class MessageEngine;
+class Message;
+
+enum class MessageType;
class Playlist : public QObject
{