diff --git a/connection.cpp b/connection.cpp index a77da60..8333544 100644 --- a/connection.cpp +++ b/connection.cpp @@ -154,6 +154,7 @@ Message Connection::sendWithReplyAndBlock( const Message &m ) void* Connection::virtual_hook( int, void* ) { + return 0; } void Connection::dbus_connection_setup_with_qt_main (DBusConnection *connection) diff --git a/message.cpp b/message.cpp index 64c5731..ae68dc8 100644 --- a/message.cpp +++ b/message.cpp @@ -359,6 +359,7 @@ Message::Message( const Message& replayingTo, const TQString& errorName, Message Message::operator=( const Message& other ) { //FIXME: ref the other.d->msg instead of copying it? + return *this; } /** * Destructs message. @@ -508,42 +509,49 @@ Message& Message::operator<<( bool b ) const dbus_bool_t right_size_bool = b; dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( TQ_INT8 byte ) { dbus_message_append_args( d->msg, DBUS_TYPE_BYTE, &byte, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( TQ_INT32 num ) { dbus_message_append_args( d->msg, DBUS_TYPE_INT32, &num, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( TQ_UINT32 num ) { dbus_message_append_args( d->msg, DBUS_TYPE_UINT32, &num, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( TQ_INT64 num ) { dbus_message_append_args( d->msg, DBUS_TYPE_INT64, &num, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( TQ_UINT64 num ) { dbus_message_append_args( d->msg, DBUS_TYPE_UINT64, &num, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( double num ) { dbus_message_append_args( d->msg, DBUS_TYPE_DOUBLE, &num, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( const TQString& str ) @@ -551,11 +559,13 @@ Message& Message::operator<<( const TQString& str ) const char *u = str.utf8(); dbus_message_append_args( d->msg, DBUS_TYPE_STRING, &u, DBUS_TYPE_INVALID ); + return *this; } Message& Message::operator<<( const TQVariant& custom ) { //FIXME: imeplement + return *this; } }