[OpenDocString] kdeconnect-kde (cpp)
mprisremoteplayermediaplayer2.cpp
MprisRemotePlayerMediaPlayer2::MprisRemotePlayerMediaPlayer2(MprisRemotePlayer *parent, const MprisRemotePlugin *plugin)
    : QDBusAbstractAdaptor{parent}
    , m_parent{parent}
    , m_plugin{plugin}
{
}
Constructs a new media player object of the given parent and plugin.
MprisRemotePlayerMediaPlayer2::~MprisRemotePlayerMediaPlayer2() = default;
Sets the default media player to the remote device.
bool MprisRemotePlayerMediaPlayer2::CanQuit() const
{
    return false;
}
This implements checking if the media player can quit.
bool MprisRemotePlayerMediaPlayer2::CanRaise() const
{
    return false;
}
This implements checking if the media player can raise a signal.
bool MprisRemotePlayerMediaPlayer2::HasTrackList() const
{
    return false;
}
This implements checking if the media player has a track list.
QString MprisRemotePlayerMediaPlayer2::DesktopEntry() const
{
    // Allows controlling mpris from the KDE Connect application's taskbar entry.
    return QStringLiteral("org.kde.kdeconnect.app");
}
Returns a QString object that allows controlling mpris from the KDE Connect application.
QString MprisRemotePlayerMediaPlayer2::Identity() const
{
    return m_parent->identity() + QStringLiteral(" - ") + m_plugin->device()->name();
}
Returns the identity string for the remote player.
void MprisRemotePlayerMediaPlayer2::Quit()
{
}
This removes all data associated with the current media player.
void MprisRemotePlayerMediaPlayer2::Raise()
{
}
This raises an exception.
QStringList MprisRemotePlayerMediaPlayer2::SupportedUriSchemes() const
{
    return {};
}
Returns an empty list.
QStringList MprisRemotePlayerMediaPlayer2::SupportedMimeTypes() const
{
    return {};
}
Returns an empty list.