diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2020-03-04 19:32:03 +0100 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2020-03-09 15:03:20 +0100 |
commit | 5c750385d02116a92fa4c120ccc26abb8267bc97 (patch) | |
tree | a1ac931e48956a5d94e275447d061e630376d0aa /mediaplayer/mediaplayer.cpp | |
parent | cd1a7f3bcbaef1e9c23549f472bce4ae42b2afad (diff) |
eliminate unneeded dependencies on public headers
- Remove unneeded dependencies from libqtappfw public
headers, specifically MessageEngine and Message
hierarchy header files, in preparation for refactoring
work on these areas.
This change helps shield client apps from the
upcoming changes in the library, and highlight the
separation between the library's core and the various
modules providing public interfaces to those apps.
- Make MessageType an scoped enum to fwd declare it.
- Update Copyright statement on files updated by
this patch.
Bug-AGL: SPEC-3112
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: I12fd9cdc034aa1166f6448c07befadd9d2042b05
Diffstat (limited to 'mediaplayer/mediaplayer.cpp')
-rw-r--r-- | mediaplayer/mediaplayer.cpp | 12 |
1 files changed, 8 insertions, 4 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()) { |