Home · All Classes · All Namespaces · Modules · Functions · Files
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions
Tp::Client::DebugInterface Class Reference

#include <TelepathyQt/DebugReceiver>

Inherits Tp::AbstractInterface.

List of all members.

Public Slots

Signals

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Debug".


Constructor & Destructor Documentation

Tp::Client::DebugInterface::DebugInterface ( const QString &  busName,
const QString &  objectPath,
QObject *  parent = 0 
)

Creates a DebugInterface associated with the given object on the session bus.

Parameters:
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.
Tp::Client::DebugInterface::DebugInterface ( const QDBusConnection &  connection,
const QString &  busName,
const QString &  objectPath,
QObject *  parent = 0 
)

Creates a DebugInterface associated with the given object on the given bus.

Parameters:
connectionThe bus via which the object can be reached.
busNameName of the service the object is on.
objectPathPath to the object on the service.
parentPassed to the parent class constructor.

Creates a DebugInterface associated with the same object as the given proxy.

Parameters:
proxyThe proxy to use. It will also be the QObject::parent() for this object.

Member Function Documentation

static QLatin1String Tp::Client::DebugInterface::staticInterfaceName ( ) [inline, static]

Returns the name of the interface "org.freedesktop.Telepathy.Debug", which this class represents.

Returns:
The D-Bus interface name.

Asynchronous getter for the remote object property Enabled of type bool.

TRUE if the NewDebugMessage signal should be emitted when a new debug message is generated.

Returns:
A pending variant which will emit finished when the property has been retrieved.

Asynchronous setter for the remote object property Enabled of type bool.

TRUE if the NewDebugMessage signal should be emitted when a new debug message is generated.

Returns:
A pending operation which will emit finished when the property has been set.

Request all of the DBus properties on the interface.

Returns:
A pending variant map which will emit finished when the properties have been retrieved.
QDBusPendingReply<Tp::DebugMessageList> Tp::Client::DebugInterface::GetMessages ( int  timeout = -1) [inline, slot]

Begins a call to the D-Bus method GetMessages on the remote object.

Retrieve buffered debug messages. An implementation could have a limit on how many message it keeps and so the array returned from this method should not be assumed to be all of the messages in the lifetime of the service.

Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.

Parameters:
timeoutThe timeout in milliseconds.
Returns:

A list of debug messages.

void Tp::Client::DebugInterface::NewDebugMessage ( double  time,
const QString &  domain,
uint  level,
const QString &  message 
) [signal]

Represents the signal NewDebugMessage on the remote object.

Emitted when a debug messages is generated if the Enabled property is set to TRUE.

Parameters:
timeTimestamp of the debug message.
domainDomain of the debug message, as described in the Debug_Message struct.
levelLevel of the debug message.
messageThe text of the debug message.
void Tp::Client::DebugInterface::invalidate ( Tp::DBusProxy proxy,
const QString &  error,
const QString &  message 
) [protected, virtual]

Reimplemented from Tp::AbstractInterface.


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.3