Commit a5052934 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Deprecate DownloadManager class

This is just a thin wrapper around the engine and it has very few usages.

See https://phabricator.kde.org/T14010 for the discussion.
parent 3ae434f6
......@@ -5,6 +5,8 @@
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "knewstuff_export.h"
#if KNEWSTUFF_BUILD_DEPRECATED_SINCE(5, 79)
#include "downloadmanager.h"
#include <knewstuffcore_debug.h>
......@@ -162,3 +164,4 @@ void DownloadManager::fetchEntryById(const QString& id)
{
d->engine->fetchEntryById(id);
}
#endif
......@@ -11,6 +11,7 @@
#include "knewstuffcore_export.h"
#include "entryinternal.h"
#if KNEWSTUFFCORE_ENABLE_DEPRECATED_SINCE(5, 79)
namespace KNSCore
{
class DownloadManagerPrivate;
......@@ -39,6 +40,7 @@ public:
*
* @param parent the parent of the dialog
*/
KNEWSTUFF_DEPRECATED_VERSION(5, 79, "Use KNSCore::Cache for details on installed entries, or KNSCore::Engine directly for update and installation functionality")
explicit DownloadManager(QObject *parent = nullptr);
/**
......@@ -47,6 +49,7 @@ public:
* @param configFile the name of the configuration file
* @param parent the parent of the dialog
*/
KNEWSTUFF_DEPRECATED_VERSION(5, 79, "Use KNSCore::Cache for details on installed entries, or KNSCore::Engine directly for update and installation functionality")
explicit DownloadManager(const QString &configFile, QObject *parent = nullptr);
/**
......@@ -138,5 +141,5 @@ private:
};
}
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment