Home · All Classes · All Namespaces · Modules · Functions · Files
Namespaces | Classes | Typedefs | Functions

Tp Namespace Reference

Namespaces

Classes

Typedefs

Functions


Typedef Documentation

typedef QSet<ContactPtr> Tp::Contacts
typedef QListIterator<uint> Tp::ReferencedHandlesIterator
typedef SharedPtr<ClientObject> Tp::ClientObjectPtr
typedef QSharedPointer<Contact> Tp::ContactPtr

Function Documentation

uint Tp::qHash ( const ContactPtr &  contact  )  [inline]
QDebug Tp::enabledDebug (  ) 
QDebug Tp::enabledWarning (  ) 
Q_DECL_IMPORT TfChannel * Tp::createFarsightChannel ( const StreamedMediaChannelPtr &  channel  ) 
Features Tp::operator| ( const Feature &  feature1,
const Feature &  feature2 
) [inline]
void Tp::registerTypes (  ) 

\ingroup types

Register the types used by the library with the QtDBus type system.

Call this function to register the types used before using anything else in the library.

bool Tp::operator== ( const SUSocketAddress &  v1,
const SUSocketAddress &  v2 
)
QDBusArgument& Tp::operator<< ( QDBusArgument &  arg,
const SUSocketAddress &  val 
)
const QDBusArgument& Tp::operator>> ( const QDBusArgument &  arg,
SUSocketAddress &  val 
)
QString Tp::escapeAsIdentifier ( const QString &  string  ) 

Escape an arbitrary string so it follows the rules for a C identifier, and hence an object path component, interface element component, bus name component or member name in D-Bus.

This is a reversible encoding, so it preserves distinctness.

The escaping consists of replacing all non-alphanumerics, and the first character if it's a digit, with an underscore and two lower-case hex digits:

"0123abc_xyz\x01\xff" -> _30123abc_5fxyz_01_ff

i.e. similar to URI encoding, but with _ taking the role of %, and a smaller allowed set. As a special case, "" is escaped to "_" (just for completeness, really).

Parameters:
string The string to be escaped.
Returns:
the escaped string.


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.4.2