summaryrefslogtreecommitdiffstats
path: root/src/libs/kdtools/kdupdaterupdateoperationfactory.cpp
diff options
context:
space:
mode:
authorkh <karsten.heimrich@theqtcompany.com>2014-11-25 16:00:24 +0100
committerNiels Weber <niels.weber@theqtcompany.com>2014-12-01 15:51:39 +0100
commita439e6fab484461744a657f5173a738622064edf (patch)
treefb91ee0093cf27e7b049a75938ffbf52d498b191 /src/libs/kdtools/kdupdaterupdateoperationfactory.cpp
parent579d562e25bacbf169cab30976f0e8b0e42b849f (diff)
Documentation updates and fixes.
Change-Id: Ie9fc9e1c2a0b84082cb48732e270913bc90d9a79 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/libs/kdtools/kdupdaterupdateoperationfactory.cpp')
-rw-r--r--src/libs/kdtools/kdupdaterupdateoperationfactory.cpp35
1 files changed, 23 insertions, 12 deletions
diff --git a/src/libs/kdtools/kdupdaterupdateoperationfactory.cpp b/src/libs/kdtools/kdupdaterupdateoperationfactory.cpp
index 8a2f5aa21..9296bc955 100644
--- a/src/libs/kdtools/kdupdaterupdateoperationfactory.cpp
+++ b/src/libs/kdtools/kdupdaterupdateoperationfactory.cpp
@@ -40,26 +40,37 @@
using namespace KDUpdater;
/*!
- \inmodule kdupdater
- \class KDUpdater::UpdateOperationFactory kdupdaterupdateoperationfactory.h KDUpdaterUpdateOperationFactory
- \brief Factory for \ref KDUpdater::UpdateOperation
+ \inmodule kdupdater
+ \class KDUpdater::UpdateOperationFactory
+ \brief The UpdateOperationFactory class is used to create update operations based on their name.
- This class acts as a factory for \ref KDUpdater::UpdateOperation. You can register
- one or more update operations with this factory and query operations based on their name.
+ This class acts as a factory for \c 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 \ref instance() method.
+ 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:
+ \list
+ \li Copy operation
+ \li Move operation
+ \li Delete operation
+ \li Mkdir operation
+ \li Rmdir operation
+ \li AppendFile operation
+ \li PrependFile operation
+ \endlist
*/
/*!
- \fn KDUpdater::UpdateOperationFactory::registerUpdateOperation( const QString& name )
+ \fn void KDUpdater::UpdateOperationFactory::registerUpdateOperation(const QString &name)
- Registers T as new UpdateOperation with \a name. When create() is called with that \a name,
- T is constructed using its default constructor.
+ Registers a new update operation with the factory based on \a name. When create() is called
+ with that \a name, the update operation is constructed using its default constructor.
*/
/*!
- Returns the UpdateOperationFactory instance. The instance is created if needed.
+ Returns the UpdateOperationFactory instance. The instance is created if needed.
*/
UpdateOperationFactory &UpdateOperationFactory::instance()
{
@@ -68,7 +79,7 @@ UpdateOperationFactory &UpdateOperationFactory::instance()
}
/*!
- Constructor
+ Constructor
*/
UpdateOperationFactory::UpdateOperationFactory()
{