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