Home · All Classes · All Namespaces · Modules · Functions · Files
Public Slots | Signals | List of all members
Tp::Service::ConnectionInterfaceAliasingAdaptor Class Reference

#include <TelepathyQt/_gen/svc-connection.h>

Inheritance diagram for Tp::Service::ConnectionInterfaceAliasingAdaptor:
Inheritance graph
[legend]

Public Slots

uint GetAliasFlags (const QDBusMessage &dbusMessage)
 
QStringList RequestAliases (const Tp::UIntList &contacts, const QDBusMessage &dbusMessage)
 
Tp::AliasMap GetAliases (const Tp::UIntList &contacts, const QDBusMessage &dbusMessage)
 
void SetAliases (const Tp::AliasMap &aliases, const QDBusMessage &dbusMessage)
 

Signals

void AliasesChanged (const Tp::AliasPairList &aliases)
 

Additional Inherited Members

- Public Member Functions inherited from Tp::AbstractAdaptor
 AbstractAdaptor (const QDBusConnection &connection, QObject *adaptee, QObject *parent)
 
 ~AbstractAdaptor ()
 
QDBusConnection dbusConnection () const
 
QObjectadaptee () const
 
- Public Member Functions inherited from QDBusAbstractAdaptor
 ~QDBusAbstractAdaptor ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
virtual ~QObject ()
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
virtual const QMetaObjectmetaObject () const
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool block)
 
QThreadthread () const
 
void moveToThread (QThread *targetThread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void destroyed (QObject *obj)
 
QObjectparent () const
 
bool inherits (const char *className) const
 
void deleteLater ()
 
 QObject (QObject *parent, const char *name)
 
void insertChild (QObject *object)
 
void removeChild (QObject *object)
 
bool isA (const char *className) const
 
const char * className () const
 
const char * name () const
 
const char * name (const char *defaultName) const
 
void setName (const char *name)
 
- Static Public Member Functions inherited from QObject
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
- Protected Member Functions inherited from QDBusAbstractAdaptor
 QDBusAbstractAdaptor (QObject *obj)
 
void setAutoRelaySignals (bool enable)
 
bool autoRelaySignals () const
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Adaptor class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Connection.Interface.Aliasing".

Member Function Documentation

◆ GetAliasFlags

uint Tp::Service::ConnectionInterfaceAliasingAdaptor::GetAliasFlags ( const QDBusMessage dbusMessage)
slot

Begins a call to the exported D-Bus method GetAliasFlags on this object.

Adaptees should export this method as a Qt slot with the following signature: void getAliasFlags(const Tp::Service::ConnectionInterfaceAliasingAdaptor::GetAliasFlagsContextPtr &context);

Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.

Return a bitwise OR of flags detailing the behaviour of aliases on this connection.

Returns
An integer with a bitwise OR of flags from ConnectionAliasFlags

◆ RequestAliases

QStringList Tp::Service::ConnectionInterfaceAliasingAdaptor::RequestAliases ( const Tp::UIntList contacts,
const QDBusMessage dbusMessage 
)
slot

Begins a call to the exported D-Bus method RequestAliases on this object.

Adaptees should export this method as a Qt slot with the following signature: void requestAliases(const Tp::UIntList& contacts, const Tp::Service::ConnectionInterfaceAliasingAdaptor::RequestAliasesContextPtr &context);

Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.

Request the value of several contacts' aliases at once.

Parameters
contacts
An array of handles representing contacts
Returns
A list of aliases in the same order as the contact handles

◆ GetAliases

Tp::AliasMap Tp::Service::ConnectionInterfaceAliasingAdaptor::GetAliases ( const Tp::UIntList contacts,
const QDBusMessage dbusMessage 
)
slot

Begins a call to the exported D-Bus method GetAliases on this object.

Adaptees should export this method as a Qt slot with the following signature: void getAliases(const Tp::UIntList& contacts, const Tp::Service::ConnectionInterfaceAliasingAdaptor::GetAliasesContextPtr &context);

Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.

Request the value of several contacts' aliases at once. This SHOULD only return cached aliases, falling back on the contact identifier (i.e. the string corresponding to the handle) if none is present. Also if there was no cached alias, a request SHOULD be started of which the result is later signalled by AliasesChanged.

Parameters
contacts
An array of handles representing contacts
Returns
A dictionary mapping contact handles to aliases

◆ SetAliases

void Tp::Service::ConnectionInterfaceAliasingAdaptor::SetAliases ( const Tp::AliasMap aliases,
const QDBusMessage dbusMessage 
)
slot

Begins a call to the exported D-Bus method SetAliases on this object.

Adaptees should export this method as a Qt slot with the following signature: void setAliases(const Tp::AliasMap& aliases, const Tp::Service::ConnectionInterfaceAliasingAdaptor::SetAliasesContextPtr &context);

Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.

Request that the alias of the given contact be changed. Success will be indicated by emitting an AliasesChanged signal. On connections where the CONNECTION_ALIAS_FLAG_USER_SET flag is not set, this method will only ever succeed if the contact is the user's own handle (as returned by Connection.GetSelfHandle).

Parameters
aliases
A dictionary mapping integer handles of contacts to strings of the 
new alias to set.

◆ AliasesChanged

void Tp::Service::ConnectionInterfaceAliasingAdaptor::AliasesChanged ( const Tp::AliasPairList aliases)
signal

Represents the exported D-Bus signal AliasesChanged on this object.

Adaptees should export this signal as a Qt signal with the following signature: void aliasesChanged(const Tp::AliasPairList& aliases);

The adaptee signal will be automatically relayed as a D-Bus signal once emitted.

Parameters
aliases An array containing structs of:
  • the handle representing the contact
  • the new alias


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