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...
#include <TelepathyQt/FixedFeatureFactory>
Inherits Tp::DBusProxyFactory.
Inherited by Tp::AccountFactory, and Tp::ConnectionFactory.
The FixedFeatureFactory class is a base class for all D-Bus proxy factories which want the same set of features for all constructed proxies.
◆ ~FixedFeatureFactory()
Tp::FixedFeatureFactory::~FixedFeatureFactory |
( |
| ) |
|
|
virtual |
◆ FixedFeatureFactory()
Tp::FixedFeatureFactory::FixedFeatureFactory |
( |
const QDBusConnection & |
bus | ) |
|
|
protected |
Class constructor.
The intention for storing the bus here is that it generally doesn't make sense to construct proxies for multiple buses in the same context. Allowing that would lead to more complex keying needs in the cache, as well.
- Parameters
-
bus | The D-Bus bus connection for the objects constructed using this factory. |
◆ features()
Features Tp::FixedFeatureFactory::features |
( |
| ) |
const |
Gets the features this factory will make ready on constructed proxies.
- Returns
- The set of features.
◆ addFeature()
void Tp::FixedFeatureFactory::addFeature |
( |
const Feature & |
feature | ) |
|
Adds a single feature this factory will make ready on further constructed proxies.
No feature removal is provided, to guard against uncooperative modules removing features other modules have set and depend on.
- Parameters
-
feature | The feature to add. |
◆ addFeatures()
void Tp::FixedFeatureFactory::addFeatures |
( |
const Features & |
features | ) |
|
Adds a set of features this factory will make ready on further constructed proxies.
No feature removal is provided, to guard against uncooperative modules removing features other modules have set and depend on.
- Parameters
-
features | The features to add. |
◆ featuresFor()
Features Tp::FixedFeatureFactory::featuresFor |
( |
const DBusProxyPtr & |
proxy | ) |
const |
|
protectedvirtual |