23#include "platform_p.h"
24#include "platformplugin.h"
26#include <QCoreApplication>
30#include <QApplication>
35void Platform::saveVolume(
const QString &outputName, qreal volume)
37#ifndef QT_NO_PHONON_PLATFORMPLUGIN
38 PlatformPlugin *f = Factory::platformPlugin();
40 f->saveVolume(outputName, volume);
48qreal Platform::loadVolume(
const QString &outputName)
50#ifndef QT_NO_PHONON_PLATFORMPLUGIN
51 const PlatformPlugin *f = Factory::platformPlugin();
53 return f->loadVolume(outputName);
63#ifndef QT_NO_PHONON_PLATFORMPLUGIN
64 PlatformPlugin *f = Factory::platformPlugin();
66 return f->createMediaStream(url, parent);
75QIcon Platform::icon(
const QString &name, QStyle *style)
78#ifndef QT_NO_PHONON_PLATFORMPLUGIN
79 if (
const PlatformPlugin *f = Factory::platformPlugin()) {
89 if (name == QLatin1String(
"player-volume")) {
91 }
else if (name == QLatin1String(
"player-volume-muted")) {
105 QString choppedName =
name;
114void Platform::notification(
const char *notificationName,
const QString &text,
115 const QStringList &actions, QObject *receiver,
116 const char *actionSlot)
118#ifndef QT_NO_PHONON_PLATFORMPLUGIN
119 const PlatformPlugin *f = Factory::platformPlugin();
121 f->notification(notificationName, text, actions, receiver, actionSlot);
124 Q_UNUSED(notificationName);
128 Q_UNUSED(actionSlot);
132QString Platform::applicationName()
134#ifndef QT_NO_PHONON_PLATFORMPLUGIN
135 const PlatformPlugin *f = Factory::platformPlugin();
137 return f->applicationName();
146QList<QPair<QByteArray, QString> > Platform::deviceAccessListFor(
const Phonon::AudioOutputDevice &deviceDesc)
148#ifndef QT_NO_PHONON_PLATFORMPLUGIN
149 const PlatformPlugin *f = Factory::platformPlugin();
151 return f->deviceAccessListFor(deviceDesc);
154 return QList<QPair<QByteArray, QString> >();
QString name(StandardAction id)
QString applicationFilePath()
QIcon fromTheme(const QString &name)
bool isNull() const const
bool isEmpty() const const
qsizetype lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const const
void resize(qsizetype newSize, QChar fillChar)
virtual QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *option, const QWidget *widget) const const=0