UpdateOperationFactory Class
(KDUpdater::UpdateOperationFactory)The UpdateOperationFactory class is used to create update operations based on their name. More...
Header: | #include <UpdateOperationFactory> |
Inherits: | GenericFactory |
Public Functions
void | registerUpdateOperation(const QString &name) |
- 4 public functions inherited from GenericFactory
Static Public Members
KDUpdater::UpdateOperationFactory & | instance() |
Detailed Description
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