|
|
@ -48,8 +48,8 @@
|
|
|
|
#include <tdeio/job.h>
|
|
|
|
#include <tdeio/job.h>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_DBUS
|
|
|
|
#ifdef HAVE_DBUS
|
|
|
|
|
|
|
|
# include "dbus/dbus.h"
|
|
|
|
# include <kstaticdeleter.h>
|
|
|
|
# include <kstaticdeleter.h>
|
|
|
|
# include <dbus/connection.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "kmplayerview.h"
|
|
|
|
#include "kmplayerview.h"
|
|
|
@ -1897,19 +1897,16 @@ TDE_NO_EXPORT void FFMpeg::processStopped (TDEProcess *) {
|
|
|
|
struct KMPLAYER_NO_EXPORT DBusStatic {
|
|
|
|
struct KMPLAYER_NO_EXPORT DBusStatic {
|
|
|
|
DBusStatic ();
|
|
|
|
DBusStatic ();
|
|
|
|
~DBusStatic ();
|
|
|
|
~DBusStatic ();
|
|
|
|
DBusQt::Connection *connection; // FIXME find a way to detect if already connected
|
|
|
|
|
|
|
|
DBusConnection *dbus_connnection;
|
|
|
|
DBusConnection *dbus_connnection;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static DBusStatic * dbus_static = 0L;
|
|
|
|
static DBusStatic * dbus_static = 0L;
|
|
|
|
|
|
|
|
|
|
|
|
DBusStatic::DBusStatic ()
|
|
|
|
DBusStatic::DBusStatic ()
|
|
|
|
: connection (new DBusQt::Connection (DBUS_BUS_SESSION, 0L)),
|
|
|
|
: dbus_connnection (0L) {}
|
|
|
|
dbus_connnection (0L) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DBusStatic::~DBusStatic () {
|
|
|
|
DBusStatic::~DBusStatic () {
|
|
|
|
dbus_connection_unref (dbus_connnection);
|
|
|
|
dbus_connection_unref (dbus_connnection);
|
|
|
|
delete connection;
|
|
|
|
|
|
|
|
dbus_static = 0L;
|
|
|
|
dbus_static = 0L;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|