Home · Modules · All Classes · All Namespaces
Classes | Functions
Utililty classes and functions

Classes

class  Tp::AccountCapabilityFilter
 The AccountCapabilityFilter class provides a filter object to be used to filter accounts by capabilities. More...
 
class  Tp::AccountFactory
 The AccountFactory class is responsible for constructing Account objects according to application-defined settings. More...
 
class  Tp::AccountPropertyFilter
 The AccountPropertyFilter class provides a filter object to be used to filter accounts by properties. More...
 
class  Tp::AndFilter< T >
 The AndFilter class provides a generic filter object to be used in conjunction of other filters. More...
 
class  Tp::BaseCallback
 Base class for all the callback classes. More...
 
class  Tp::Callback0< R >
 Callback with 0 arguments. More...
 
class  Tp::Callback1< R, Arg1 >
 Callback with 1 argument. More...
 
class  Tp::Callback2< R, Arg1, Arg2 >
 Callback with 2 arguments. More...
 
class  Tp::Callback3< R, Arg1, Arg2, Arg3 >
 Callback with 3 arguments. More...
 
class  Tp::Callback4< R, Arg1, Arg2, Arg3, Arg4 >
 Callback with 4 arguments. More...
 
class  Tp::Callback5< R, Arg1, Arg2, Arg3, Arg4, Arg5 >
 Callback with 5 arguments. More...
 
class  Tp::Callback6< R, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6 >
 Callback with 6 arguments. More...
 
class  Tp::Callback7< R, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7 >
 Callback with 7 arguments. More...
 
class  Tp::ChannelFactory
 The ChannelFactory class is responsible for constructing Channel objects according to application-defined settings. More...
 
class  Tp::ConnectionFactory
 The ConnectionFactory class is responsible for constructing Connection objects according to application-defined settings. More...
 
class  Tp::ContactFactory
 The ContactFactory class is responsible for constructing Contact objects according to application-defined settings. More...
 
class  Tp::DBusProxyFactory
 The DBusProxyFactory class is a base class for all D-Bus proxy factory classes. Handles proxy caching and making them ready as appropriate. More...
 
class  Tp::Feature
 The Feature class represents a feature that can be enabled on demand. More...
 
class  Tp::Features
 The Features class represents a list of Feature. More...
 
class  Tp::Filter< T >
 The Filter class provides a base class to be used by specialized filters such as GenericCapabilityFilter, GenericPropertyFilter, etc. More...
 
class  Tp::FixedFeatureFactory
 The FixedFeatureFactory class is a base class for all D-Bus proxy factories which want the same set of features for all constructed proxies. More...
 
class  Tp::GenericCapabilityFilter< T >
 The GenericCapabilityFilter class provides a generic filter object to be used to filter objects by capabilities. More...
 
class  Tp::GenericPropertyFilter< T >
 The GenericPropertyFilter class provides a generic filter object to be used to filter objects by properties. More...
 
class  Tp::IODevice
 The IODevice class represents a buffer with independent read-write. More...
 
class  Tp::MethodInvocationContext< T1, T2, T3, T4, T5, T6, T7, T8 >
 The MethodInvocationContext class provides a way for the service implementation to respond to method calls. More...
 
class  Tp::NotFilter< T >
 The NotFilter class provides a generic filter object to be used in conjunction of other filters. More...
 
class  Tp::OrFilter< T >
 The OrFilter class provides a generic filter object to be used in conjunction of other filters. More...
 
class  Tp::PendingSuccess
 The PendingSuccess class represents PendingOperation that is always successful. More...
 
class  Tp::PendingFailure
 The PendingFailure class represents a PendingOperation that always fails with the error passed to the constructor. More...
 
class  Tp::PendingVoid
 The PendingVoid class is a generic subclass of PendingOperation representing a pending D-Bus method call that does not return anything (or returns a result that is not interesting). More...
 
class  Tp::PendingComposite
 The PendingComposite class is a PendingOperation that can be used to track multiple pending operations at once. More...
 
class  Tp::PendingReady
 The PendingReady class represents the features requested and the reply to a request for an object to become ready. More...
 
class  Tp::PendingStringList
 The PendingStringList class is a generic subclass of PendingOperation representing a pending D-Bus method call that returns a string list. More...
 
class  Tp::PendingString
 The PendingString class is a generic subclass of PendingOperation representing a pending D-Bus method call that returns a string. More...
 
class  Tp::PendingVariantMap
 The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus method call that returns a variant map. More...
 
class  Tp::PendingVariant
 The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus method call that returns a variant. More...
 
class  Tp::Profile::Parameter
 The Profile::Parameter class represents a parameter defined in .profile files. More...
 
class  Tp::Profile::Presence
 The Profile::Presence class represents a presence defined in .profile files. More...
 
class  Tp::Profile
 The Profile class provides an easy way to read Telepathy profile files according to http://telepathy.freedesktop.org/wiki/service-profile-v1. More...
 
class  Tp::ReadinessHelper::Introspectable
 The ReadinessHelper::Introspectable class represents a introspectable used by ReadinessHelper. More...
 
class  Tp::ReadinessHelper
 The ReadinessHelper class is a helper class used by the introspection process. More...
 
class  Tp::RefCounted
 The RefCounted class is a base class for shared objects used by SharedPtr. More...
 
class  Tp::SharedPtr< T >
 The SharedPtr class is a pointer to an explicitly shared object. More...
 
class  Tp::WeakPtr< T >
 The WeakPtr class holds a weak reference to an object managed by SharedPtr. More...
 
class  Tp::SimpleCallObserver
 The SimpleCallObserver class provides an easy way to track calls in an account and can be optionally filtered by a contact and/or call direction. More...
 
class  Tp::SimpleObserver
 The SimpleObserver class provides an easy way to track channels in an account and can be optionally filtered by a contact. More...
 
class  Tp::SimpleTextObserver
 The SimpleTextObserver class provides an easy way to track sent/received text messages in an account and can be optionally filtered by a contact. More...
 

Functions

QString Tp::escapeAsIdentifier (const QString &string)
 
bool Tp::checkValidProtocolName (const QString &protocolName)
 
QVariant::Type Tp::variantTypeFromDBusSignature (const QString &signature)
 
QVariant Tp::parseValueWithDBusSignature (const QString &value, const QString &dbusSignature)
 

Detailed Description

Utility classes and functions

Function Documentation

◆ escapeAsIdentifier()

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
stringThe string to be escaped.
Returns
the escaped string.

◆ checkValidProtocolName()

bool Tp::checkValidProtocolName ( const QString &  protocolName)

◆ variantTypeFromDBusSignature()

QVariant::Type Tp::variantTypeFromDBusSignature ( const QString &  signature)

◆ parseValueWithDBusSignature()

QVariant Tp::parseValueWithDBusSignature ( const QString &  value,
const QString &  dbusSignature 
)