Home · Modules · All Classes · All Namespaces |
Base class for channel implementations. More...
#include <TelepathyQt/BaseChannel>
Inherits Tp::DBusService.
Signals | |
void | closed () |
Signals inherited from Tp::Object | |
void | propertyChanged (const QString &propertyName) |
Public Member Functions | |
virtual | ~BaseChannel () |
QVariantMap | immutableProperties () const |
bool | registerObject (DBusError *error=NULL) |
virtual QString | uniqueName () const |
Tp::BaseConnection * | connection () const |
QString | channelType () const |
QList< AbstractChannelInterfacePtr > | interfaces () const |
AbstractChannelInterfacePtr | interface (const QString &interfaceName) const |
uint | targetHandle () const |
QString | targetID () const |
uint | targetHandleType () const |
bool | requested () const |
uint | initiatorHandle () const |
QString | initiatorID () const |
Tp::ChannelDetails | details () const |
void | setInitiatorHandle (uint initiatorHandle) |
void | setInitiatorID (const QString &initiatorID) |
void | setTargetID (const QString &targetID) |
void | setRequested (bool requested) |
void | close () |
bool | plugInterface (const AbstractChannelInterfacePtr &interface) |
Public Member Functions inherited from Tp::DBusService | |
DBusService (const QDBusConnection &dbusConnection) | |
virtual | ~DBusService () |
QDBusConnection | dbusConnection () const |
QString | busName () const |
QString | objectPath () const |
DBusObject * | dbusObject () const |
bool | isRegistered () const |
Public Member Functions inherited from Tp::Object | |
virtual | ~Object () |
Public Member Functions inherited from Tp::RefCounted | |
RefCounted () | |
virtual | ~RefCounted () |
Static Public Member Functions | |
static BaseChannelPtr | create (BaseConnection *connection, const QString &channelType, Tp::HandleType targetHandleType=Tp::HandleTypeNone, uint targetHandle=0) |
Protected Member Functions | |
BaseChannel (const QDBusConnection &dbusConnection, BaseConnection *connection, const QString &channelType, uint targetHandleType, uint targetHandle) | |
virtual bool | registerObject (const QString &busName, const QString &objectPath, DBusError *error) |
Protected Member Functions inherited from Tp::Object | |
Object () | |
void | notify (const char *propertyName) |
Base class for channel implementations.
|
virtual |
Class destructor.
|
protected |
|
inlinestatic |
|
virtual |
Return the immutable properties of this channel object.
Immutable properties cannot change after the object has been registered on the bus with registerObject().
Implements Tp::DBusService.
bool Tp::BaseChannel::registerObject | ( | DBusError * | error = NULL | ) |
|
virtual |
Return a unique name for this channel.
BaseConnection * Tp::BaseChannel::connection | ( | ) | const |
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.
interfaceName | The D-Bus name of the interface, ex. TP_QT_IFACE_PROTOCOL_INTERFACE_ADDRESSING. |
uint Tp::BaseChannel::targetHandle | ( | ) | const |
QString Tp::BaseChannel::targetID | ( | ) | const |
uint Tp::BaseChannel::targetHandleType | ( | ) | const |
bool Tp::BaseChannel::requested | ( | ) | const |
uint Tp::BaseChannel::initiatorHandle | ( | ) | const |
QString Tp::BaseChannel::initiatorID | ( | ) | const |
Tp::ChannelDetails Tp::BaseChannel::details | ( | ) | 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 | ) |
void Tp::BaseChannel::close | ( | ) |
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().
interface | An AbstractProtocolInterface instance that implements the interface that is to be plugged. |
true
on success or false
otherwise
|
signal |
|
protectedvirtual |
Reimplemented from DBusService.
Reimplemented from Tp::DBusService.
TelepathyQt 0.9.8 | Generated by 1.8.15 |