|
|
@ -359,6 +359,7 @@ Message::Message( const Message& replayingTo, const TQString& errorName,
|
|
|
|
Message Message::operator=( const Message& other )
|
|
|
|
Message Message::operator=( const Message& other )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//FIXME: ref the other.d->msg instead of copying it?
|
|
|
|
//FIXME: ref the other.d->msg instead of copying it?
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Destructs message.
|
|
|
|
* Destructs message.
|
|
|
@ -508,42 +509,49 @@ Message& Message::operator<<( bool b )
|
|
|
|
const dbus_bool_t right_size_bool = b;
|
|
|
|
const dbus_bool_t right_size_bool = b;
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_BOOLEAN, &right_size_bool,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( TQ_INT8 byte )
|
|
|
|
Message& Message::operator<<( TQ_INT8 byte )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_BYTE, &byte,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_BYTE, &byte,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( TQ_INT32 num )
|
|
|
|
Message& Message::operator<<( TQ_INT32 num )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_INT32, &num,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_INT32, &num,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( TQ_UINT32 num )
|
|
|
|
Message& Message::operator<<( TQ_UINT32 num )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_UINT32, &num,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_UINT32, &num,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( TQ_INT64 num )
|
|
|
|
Message& Message::operator<<( TQ_INT64 num )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_INT64, &num,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_INT64, &num,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( TQ_UINT64 num )
|
|
|
|
Message& Message::operator<<( TQ_UINT64 num )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_UINT64, &num,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_UINT64, &num,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( double num )
|
|
|
|
Message& Message::operator<<( double num )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_DOUBLE, &num,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_DOUBLE, &num,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( const TQString& str )
|
|
|
|
Message& Message::operator<<( const TQString& str )
|
|
|
@ -551,11 +559,13 @@ Message& Message::operator<<( const TQString& str )
|
|
|
|
const char *u = str.utf8();
|
|
|
|
const char *u = str.utf8();
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_STRING, &u,
|
|
|
|
dbus_message_append_args( d->msg, DBUS_TYPE_STRING, &u,
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
DBUS_TYPE_INVALID );
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Message& Message::operator<<( const TQVariant& custom )
|
|
|
|
Message& Message::operator<<( const TQVariant& custom )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//FIXME: imeplement
|
|
|
|
//FIXME: imeplement
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|