Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 96dd78e0 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Port to K_PLUGIN_CLASS_WITH_JSON

Requires less boilerplate code than K_PLUGIN_FACTORY_WITH_JSON.
parent bf7554f0
......@@ -8,7 +8,7 @@ set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATI
project(ark VERSION ${KDE_APPLICATIONS_VERSION})
set(QT_MIN_VERSION 5.8.0)
set(KF5_MIN_VERSION 5.38.0)
set(KF5_MIN_VERSION 5.44.0)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
......
......@@ -32,7 +32,7 @@
#include "pluginmanager.h"
K_PLUGIN_FACTORY_WITH_JSON(CompressFileItemActionFactory, "compressfileitemaction.json", registerPlugin<CompressFileItemAction>();)
K_PLUGIN_CLASS_WITH_JSON(CompressFileItemAction, "compressfileitemaction.json")
using namespace Kerfuffle;
......
......@@ -32,8 +32,7 @@
#include <KPluginLoader>
#include <KLocalizedString>
K_PLUGIN_FACTORY_WITH_JSON(ExtractHereDndPluginFactory, "ark_dndextract.json",
registerPlugin<ExtractHereDndPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(ExtractHereDndPlugin, "ark_dndextract.json")
void ExtractHereDndPlugin::slotTriggered()
{
......
......@@ -31,7 +31,7 @@
#include "mimetypes.h"
#include "pluginmanager.h"
K_PLUGIN_FACTORY_WITH_JSON(ExtractFileItemActionFactory, "extractfileitemaction.json", registerPlugin<ExtractFileItemAction>();)
K_PLUGIN_CLASS_WITH_JSON(ExtractFileItemAction, "extractfileitemaction.json")
using namespace Kerfuffle;
......
......@@ -34,7 +34,7 @@
using namespace Kerfuffle;
K_PLUGIN_FACTORY_WITH_JSON(CliPluginFactory, "kerfuffle_cli7z.json", registerPlugin<CliPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(CliPlugin, "kerfuffle_cli7z.json")
CliPlugin::CliPlugin(QObject *parent, const QVariantList & args)
: CliInterface(parent, args)
......
......@@ -30,7 +30,7 @@
#include <QDate>
#include <QTime>
K_PLUGIN_FACTORY_WITH_JSON(CliPluginFactory, "kerfuffle_cli.json", registerPlugin<CliPlugin >();)
K_PLUGIN_CLASS_WITH_JSON(CliPlugin, "kerfuffle_cli.json")
CliPlugin::CliPlugin(QObject *parent, const QVariantList &args)
: CliInterface(parent, args),
......
......@@ -33,7 +33,7 @@
using namespace Kerfuffle;
K_PLUGIN_FACTORY_WITH_JSON(CliPluginFactory, "kerfuffle_clirar.json", registerPlugin<CliPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(CliPlugin, "kerfuffle_clirar.json")
CliPlugin::CliPlugin(QObject *parent, const QVariantList& args)
: CliInterface(parent, args)
......
......@@ -33,7 +33,7 @@
using namespace Kerfuffle;
K_PLUGIN_FACTORY_WITH_JSON(CliPluginFactory, "kerfuffle_cliunarchiver.json", registerPlugin<CliPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(CliPlugin, "kerfuffle_cliunarchiver.json")
CliPlugin::CliPlugin(QObject *parent, const QVariantList &args)
: CliInterface(parent, args)
......
......@@ -34,7 +34,7 @@
using namespace Kerfuffle;
K_PLUGIN_FACTORY_WITH_JSON(CliPluginFactory, "kerfuffle_clizip.json", registerPlugin<CliPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(CliPlugin, "kerfuffle_clizip.json")
CliPlugin::CliPlugin(QObject *parent, const QVariantList & args)
: CliInterface(parent, args)
......
......@@ -30,7 +30,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(ReadOnlyLibarchivePluginFactory, "kerfuffle_libarchive_readonly.json", registerPlugin<ReadOnlyLibarchivePlugin>();)
K_PLUGIN_CLASS_WITH_JSON(ReadOnlyLibarchivePlugin, "kerfuffle_libarchive_readonly.json")
ReadOnlyLibarchivePlugin::ReadOnlyLibarchivePlugin(QObject *parent, const QVariantList & args)
: LibarchivePlugin(parent, args)
......
......@@ -38,7 +38,7 @@
#include <archive_entry.h>
K_PLUGIN_FACTORY_WITH_JSON(ReadWriteLibarchivePluginFactory, "kerfuffle_libarchive.json", registerPlugin<ReadWriteLibarchivePlugin>();)
K_PLUGIN_CLASS_WITH_JSON(ReadWriteLibarchivePlugin, "kerfuffle_libarchive.json")
ReadWriteLibarchivePlugin::ReadWriteLibarchivePlugin(QObject *parent, const QVariantList &args)
: LibarchivePlugin(parent, args)
......
......@@ -29,7 +29,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(Bz2PluginFactory, "kerfuffle_libbz2.json", registerPlugin<LibBzip2Interface>();)
K_PLUGIN_CLASS_WITH_JSON(LibBzip2Interface, "kerfuffle_libbz2.json")
LibBzip2Interface::LibBzip2Interface(QObject *parent, const QVariantList & args)
: LibSingleFileInterface(parent, args)
......
......@@ -30,7 +30,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(GzipPluginFactory, "kerfuffle_libgz.json", registerPlugin<LibGzipInterface >();)
K_PLUGIN_CLASS_WITH_JSON(LibGzipInterface, "kerfuffle_libgz.json")
LibGzipInterface::LibGzipInterface(QObject *parent, const QVariantList & args)
: LibSingleFileInterface(parent, args)
......
......@@ -30,7 +30,7 @@
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(XzPluginFactory, "kerfuffle_libxz.json", registerPlugin<LibXzInterface>();)
K_PLUGIN_CLASS_WITH_JSON(LibXzInterface, "kerfuffle_libxz.json")
LibXzInterface::LibXzInterface(QObject *parent, const QVariantList & args)
: LibSingleFileInterface(parent, args)
......
......@@ -43,7 +43,7 @@
#include <zlib.h>
#include <memory>
K_PLUGIN_FACTORY_WITH_JSON(LibZipPluginFactory, "kerfuffle_libzip.json", registerPlugin<LibzipPlugin>();)
K_PLUGIN_CLASS_WITH_JSON(LibzipPlugin, "kerfuffle_libzip.json")
void LibzipPlugin::progressCallback(zip_t *, double progress, void *that)
{
......
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