UpdateOperationFactory Class

class KDUpdater::UpdateOperationFactory

The UpdateOperationFactory class is used to create update operations based on their name. More...

Header: #include <UpdateOperationFactory>
Inherits: GenericFactory

Static Public Members

KDUpdater::UpdateOperationFactory &instance()

Detailed Description

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] KDUpdater::UpdateOperationFactory &UpdateOperationFactory::instance()

Returns the UpdateOperationFactory instance. The instance is created if needed.

© 2021 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.