// create the player if missing
if (!m_soundPlayer) {
m_soundPlayer = new KAudioPlayer(this);
+ m_soundPlayer->setPlayerID("plasma_applet_bball");
m_soundPlayer->setVolume(m_sound_volume);
}
#define bball_HEADER
#include <QtCore/QBasicTimer>
-#include <QtCore/qdatetime.h>
+#include <QtCore/QDateTime>
#include <QtGui/QVector2D>
+#include <QGraphicsSceneMouseEvent>
+#include <QSizeF>
#include <KConfigDialog>
#include <KMediaPlayer>
#include "ui_bballConfig.h"
-#include <QGraphicsSceneMouseEvent>
-#include <QSizeF>
-
class bballApplet : public Plasma::Applet
{
Q_OBJECT
X-KDE-PluginInfo-Depends=
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
-X-KDE-MediaPlayer=true
+X-KDE-MediaPlayer=plasma_applet_bball
X-Plasma-Requires-FileDialog=Unused
X-Plasma-Requires-LaunchApp=Unused
kDebug() ;
PlayData * data = new PlayData();
data->m_player = new KAudioPlayer();
+ data->m_player->setPlayerID("okulartpart_audio");
data->m_player->setVolume( float(si.volume) );
data->m_info = si;
bool valid = false;
Name[zh_TW]=文件檢視_Okular
X-KDE-ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
X-KDE-Library=okularpart
-X-KDE-MediaPlayer=true
+X-KDE-MediaPlayer=okularpart_audio,okularpart_video,okularpart_snapshot
Type=Service
MimeType=application/vnd.kde.okular-archive;
: QObject( parent )
, m_player( new KMediaPlayer )
{
+ m_player->setPlayerID("okularpart_snapshot");
m_player->load( url );
m_player->hide();
mainlay->setSpacing( 0 );
d->player = new KMediaPlayer( playerPage );
+ d->player->setPlayerID("okulartpart_video");
d->player->installEventFilter( playerPage );
mainlay->addWidget( d->player );