|void||registerUpdateOperation(const QString &name)|
- 4 public functions inherited from KDGenericFactory
Static Public Members
The UpdateOperationFactory class is used to create update operations based on their name.
This class acts as a factory for
KDUpdater::UpdateOperation. You can register one or more update operations with this factory and query operations based on their name.
This class follows the singleton design pattern. Only one instance of this class can be created and its reference can be fetched from the instance() method.
The following operations are registered by default:
- Copy operation
- Move operation
- Delete operation
- Mkdir operation
- Rmdir operation
- AppendFile operation
- PrependFile operation
Member Function Documentation
[static] UpdateOperationFactory &UpdateOperationFactory::instance()
Returns the UpdateOperationFactory instance. The instance is created if needed.
void UpdateOperationFactory::registerUpdateOperation(const QString &name)
Registers a new update operation with the factory based on name. When create() is called with that name, the update operation is constructed using its default constructor.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.