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

Base class for channel implementations. More...

#include <TelepathyQt/BaseChannel>

Inherits Tp::DBusService.

List of all members.

Signals

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

Base class for channel implementations.


Constructor & Destructor Documentation

Class destructor.

Tp::BaseChannel::BaseChannel ( const QDBusConnection &  dbusConnection,
BaseConnection connection,
const QString &  channelType,
uint  targetHandleType,
uint  targetHandle 
) [protected]

Member Function Documentation

static BaseChannelPtr Tp::BaseChannel::create ( BaseConnection connection,
const QString &  channelType,
Tp::HandleType  targetHandleType = Tp::HandleTypeNone,
uint  targetHandle = 0 
) [inline, static]
QVariantMap Tp::BaseChannel::immutableProperties ( ) const [virtual]

Return the immutable properties of this channel object.

Immutable properties cannot change after the object has been registered on the bus with registerObject().

Returns:
The immutable properties of this channel object.

Implements Tp::DBusService.

bool Tp::BaseChannel::registerObject ( DBusError error = NULL)
QString Tp::BaseChannel::uniqueName ( ) const [virtual]

Return a unique name for this channel.

Returns:
A unique name for this channel.
QString Tp::BaseChannel::channelType ( ) const
QList< AbstractChannelInterfacePtr > Tp::BaseChannel::interfaces ( ) const
AbstractChannelInterfacePtr Tp::BaseChannel::interface ( const QString &  interfaceName) const

Return a pointer to the interface with the given name.

Parameters:
interfaceNameThe D-Bus name of the interface, ex. TP_QT_IFACE_PROTOCOL_INTERFACE_ADDRESSING.
Returns:
A pointer to the AbstractProtocolInterface object that implements the D-Bus interface with the given name, or a null pointer if such an interface has not been plugged into this object.
See also:
plugInterface(), interfaces()
QString Tp::BaseChannel::targetID ( ) const
QString Tp::BaseChannel::initiatorID ( ) const
void Tp::BaseChannel::setInitiatorHandle ( uint  initiatorHandle)
void Tp::BaseChannel::setInitiatorID ( const QString &  initiatorID)
void Tp::BaseChannel::setTargetID ( const QString &  targetID)
void Tp::BaseChannel::setRequested ( bool  requested)
bool Tp::BaseChannel::plugInterface ( const AbstractChannelInterfacePtr &  interface)

Plug a new interface into this Protocol D-Bus object.

This property is immutable and cannot change after this Protocol object has been registered on the bus with registerObject().

Parameters:
interfaceAn AbstractProtocolInterface instance that implements the interface that is to be plugged.
Returns:
true on success or false otherwise
See also:
interfaces(), interface()
void Tp::BaseChannel::closed ( ) [signal]
bool Tp::BaseChannel::registerObject ( const QString &  busName,
const QString &  objectPath,
DBusError error 
) [protected, virtual]

Reimplemented from DBusService.

Reimplemented from Tp::DBusService.


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