Home · All Classes · All Namespaces · Modules · Functions · Files |
The ContactFactory class is responsible for constructing Contact objects according to application-defined settings. More...
#include <TelepathyQt4/ContactFactory>
Inherits Tp::RefCounted.
The ContactFactory class is responsible for constructing Contact objects according to application-defined settings.
Tp::ContactFactory::~ContactFactory | ( | ) | [virtual] |
Class destructor.
Tp::ContactFactory::ContactFactory | ( | const Features & | features | ) | [protected] |
Class constructor.
features | The features to make ready on constructed contacts. |
Creates a new ContactFactory.
features | The features to make ready on constructed contacts. |
Features Tp::ContactFactory::features | ( | ) | const |
Gets the features this factory will make ready on constructed contacts.
void Tp::ContactFactory::addFeature | ( | const Feature & | feature | ) |
Adds a single feature this factory will make ready on further constructed contacts.
No feature removal is provided, to guard against uncooperative modules removing features other modules have set and depend on.
feature | The feature to add. |
void Tp::ContactFactory::addFeatures | ( | const Features & | features | ) |
Adds a set of features this factory will make ready on further constructed contacts.
No feature removal is provided, to guard against uncooperative modules removing features other modules have set and depend on.
features | The features to add. |
ContactPtr Tp::ContactFactory::construct | ( | Tp::ContactManager * | manager, | |
const ReferencedHandles & | handle, | |||
const Features & | features, | |||
const QVariantMap & | attributes | |||
) | const [protected, virtual] |
Can be used by subclasses to override the Contact subclass constructed by the factory.
The default implementation constructs Tp::Contact objects.
manager | The contact manager this contact belongs. | |
handle | The contact handle. | |
features | The desired contact features. | |
attributes | The desired contact attributes. |
PendingOperation * Tp::ContactFactory::prepare | ( | const ContactPtr & | contact | ) | const [protected, virtual] |
Can be used by subclasses to do arbitrary manipulation on constructed Contact objects.
The default implementation does nothing.
contact | The contact to be prepared. |
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation |
Telepathy-Qt4 0.6.5
|