Home · Modules · All Classes · All Namespaces |
#include <TelepathyQt/_gen/svc-channel.h>
Inherits Tp::AbstractAdaptor.
Public Slots | |
void | AcknowledgePendingMessages (const Tp::UIntList &IDs, const QDBusMessage &dbusMessage) |
Tp::UIntList | GetMessageTypes (const QDBusMessage &dbusMessage) |
Tp::PendingTextMessageList | ListPendingMessages (bool clear, const QDBusMessage &dbusMessage) |
void | Send (uint type, const QString &text, const QDBusMessage &dbusMessage) |
Signals | |
void | LostMessage () |
void | Received (uint ID, uint timestamp, uint sender, uint type, uint flags, const QString &text) |
void | SendError (uint error, uint timestamp, uint type, const QString &text) |
void | Sent (uint timestamp, uint type, const QString &text) |
Additional Inherited Members | |
Public Member Functions inherited from Tp::AbstractAdaptor | |
AbstractAdaptor (const QDBusConnection &connection, QObject *adaptee, QObject *parent) | |
~AbstractAdaptor () | |
QDBusConnection | dbusConnection () const |
QObject * | adaptee () const |
Adaptor class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Type.Text".
|
slot |
Begins a call to the exported D-Bus method AcknowledgePendingMessages
on this object.
Adaptees should export this method as a Qt slot with the following signature: void acknowledgePendingMessages(const Tp::UIntList& IDs, const Tp::Service::ChannelTypeTextAdaptor::AcknowledgePendingMessagesContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
Inform the channel that you have handled messages by displaying them to the user (or equivalent), so they can be removed from the pending queue.
IDs | The IDs of the messages to acknowledge |
|
slot |
Begins a call to the exported D-Bus method GetMessageTypes
on this object.
Adaptees should export this method as a Qt slot with the following signature: void getMessageTypes(const Tp::Service::ChannelTypeTextAdaptor::GetMessageTypesContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
Return an array indicating which types of message may be sent on this channel.
An array of integer message types (ChannelTextMessageType)
|
slot |
Begins a call to the exported D-Bus method ListPendingMessages
on this object.
Adaptees should export this method as a Qt slot with the following signature: void listPendingMessages(bool clear, const Tp::Service::ChannelTypeTextAdaptor::ListPendingMessagesContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
List the messages currently in the pending queue, and optionally remove then all.
clear | If true, behave as if AcknowledgePendingMessages had also been called. |
An array of structs representing the pending queue. Each contains:
|
slot |
Begins a call to the exported D-Bus method Send
on this object.
Adaptees should export this method as a Qt slot with the following signature: void send(uint type, const QString& text, const Tp::Service::ChannelTypeTextAdaptor::SendContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
Request that a message be sent on this channel. When the message has been submitted for delivery, this method will return and the Sent() signal will be emitted. If the message cannot be submitted for delivery, the method returns an error and no signal is emitted.
This method SHOULD return before the Sent signal is emitted.
When a Text channel implements the ChannelInterfaceMessagesInterface interface, that "SHOULD" becomes a "MUST".
type | An integer indicating the type of the message |
text | The message to send |
|
signal |
Represents the exported D-Bus signal LostMessage
on this object.
Adaptees should export this signal as a Qt signal with the following signature: void lostMessage();
The adaptee signal will be automatically relayed as a D-Bus signal once emitted.
|
signal |
Represents the exported D-Bus signal Received
on this object.
Adaptees should export this signal as a Qt signal with the following signature: void received(uint ID, uint timestamp, uint sender, uint type, uint flags, const QString& text);
The adaptee signal will be automatically relayed as a D-Bus signal once emitted.
ID | A numeric identifier for acknowledging the message |
timestamp | A Unix timestamp indicating when the message was received |
sender | The handle of the contact who sent the message |
type | The type of the message (normal, action, notice, etc.) |
flags | A bitwise OR of the message flags |
text | The text of the message |
|
signal |
Represents the exported D-Bus signal SendError
on this object.
Adaptees should export this signal as a Qt signal with the following signature: void sendError(uint error, uint timestamp, uint type, const QString& text);
The adaptee signal will be automatically relayed as a D-Bus signal once emitted.
error | The error that occurred |
timestamp | The Unix timestamp indicating when the message was sent |
type | The message type |
text | The text of the message |
|
signal |
Represents the exported D-Bus signal Sent
on this object.
Adaptees should export this signal as a Qt signal with the following signature: void sent(uint timestamp, uint type, const QString& text);
The adaptee signal will be automatically relayed as a D-Bus signal once emitted.
timestamp | Unix timestamp indicating when the message was sent |
type | The message type (normal, action, notice, etc) from ChannelTextMessageType |
text | The text of the message. If the message was, or will be, altered during transmission, this argument SHOULD reflect what other contacts will receive rather than being a copy of the argument to Send. |
TelepathyQt 0.9.8 | Generated by 1.8.15 |