Introduce K_PLUGIN_CLASS_WITH_JSON

Authored by aacid on Feb 7 2018, 10:30 PM.

Description

Introduce K_PLUGIN_CLASS_WITH_JSON

Summary:
Does the same as K_PLUGIN_FACTORY_WITH_JSON but saves you typing the class name twice.

If you look at lxr.kde.org you can see our codebase is full of stuff like

K_PLUGIN_FACTORY_WITH_JSON(NinjaBuilderFactory, "kdevninja.json", registerPlugin<NinjaBuilder>(); )

where we repeat NinjaBuilder twice, so add a nice macro so that we only have to write it once

Reviewers: dfaure, mlaurent

Reviewed By: dfaure

Subscribers: mlaurent, kossebau, apol, Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D10333

Details

Committed
aacidFeb 9 2018, 11:24 PM
Reviewer
dfaure
Differential Revision
D10333: Introduce K_PLUGIN_CLASS_WITH_JSON
Parents
R244:49dc2cff8105: KUrlMimeData: port to QStringLiteral
Branches
Unknown
Tags
Unknown