* removed simple DBus Loop from DBusWrapper - is not needed anymore since Sockethand...
authorchristian mueller <christian.ei.mueller@bmw.de>
Mon, 27 Feb 2012 07:43:02 +0000 (08:43 +0100)
committerchristian mueller <christian.ei.mueller@bmw.de>
Mon, 27 Feb 2012 07:43:02 +0000 (08:43 +0100)
AudioManagerDaemon/src/DBusWrapper.cpp
includes/dbus/DBusWrapper.h

index 5a310ce..bfe6706 100644 (file)
@@ -187,16 +187,6 @@ DBusHandlerResult DBusWrapper::cbRootIntrospection(DBusConnection *conn, DBusMes
     }
 }
 
-void DBusWrapper::dbusMainLoop()
-{
-    logInfo("DBusWrapper::dbusMainLoop Entering MainLoop");
-
-    while (dbus_connection_read_write_dispatch(mDbusConnection, -1))
-    {
-
-    }
-}
-
 void DBusWrapper::getDBusConnection(DBusConnection *& connection) const
 {
     connection = mDbusConnection;
index 24b2795..76fd2c1 100644 (file)
@@ -40,7 +40,6 @@ namespace am
 class DBusWrapper
 {
 public:
-    DBusWrapper();
     DBusWrapper(SocketHandler* socketHandler);
     virtual ~DBusWrapper();
 
@@ -59,11 +58,6 @@ public:
      */
     void getDBusConnection(DBusConnection*& connection) const;
 
-    /**
-     * If Dbus is used, this MainLoop must be called as mainloop, otherwise the messages are not dispatched.
-     */
-    void dbusMainLoop();
-
     static dbus_bool_t addWatch(DBusWatch *watch, void *userData);
     static void removeWatch(DBusWatch *watch, void *userData);
     static void toogleWatch(DBusWatch *watch, void *userData);