X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/62534f260f89ae5581a4586b4e41301813fdc76a..aea6128fe66171a411172089dcba85c90b89953f:/src/views/versioncontrol/kversioncontrolplugin.h diff --git a/src/views/versioncontrol/kversioncontrolplugin.h b/src/views/versioncontrol/kversioncontrolplugin.h index 1696f975c..0d94a3fc8 100644 --- a/src/views/versioncontrol/kversioncontrolplugin.h +++ b/src/views/versioncontrol/kversioncontrolplugin.h @@ -22,8 +22,9 @@ #include -#include #include +#include + class KFileItemList; class KFileItem; /** @@ -136,7 +137,7 @@ public: */ IgnoredVersion, /** - * The file is is tracked by the version control system, but + * The file is tracked by the version control system, but * is missing in the directory (e.g. by deleted without using * a version control command). * @since 4.8 @@ -144,8 +145,8 @@ public: MissingVersion }; - KVersionControlPlugin(QObject* parent = 0); - virtual ~KVersionControlPlugin(); + KVersionControlPlugin(QObject* parent = nullptr); + ~KVersionControlPlugin() override; /** * Returns the name of the file which stores @@ -179,14 +180,17 @@ public: virtual ItemVersion itemVersion(const KFileItem& item) const = 0; /** - * @return List of actions that are available for the items \p items. - * It is recommended to keep the number of returned actions small - * in case if an item is an unversioned directory that is not - * inside the hierarchy tree of the version control system. This - * prevents having a cluttered context menu for directories - * outside the version control system. + * @return List of actions that are available for the \p items in a version controlled + * path. + */ + virtual QList versionControlActions(const KFileItemList& items) const = 0; + + /** + * @return List of actions that are available for the out of version control + * items \p items. It's opposed to the \p versionedActions. Common usage + * is for clone/checkout actions. */ - virtual QList actions(const KFileItemList& items) const = 0; + virtual QList outOfVersionControlActions(const KFileItemList& items) const = 0; Q_SIGNALS: /**