package structures: Use K_PLUGIN_CLASS_WITH_JSON directly

Task: https://phabricator.kde.org/T14542
This commit is contained in:
Alexander Lohnau 2021-06-18 22:16:05 +02:00
parent 3063e43abd
commit 8df168592b
6 changed files with 7 additions and 6 deletions

View File

@ -64,6 +64,6 @@ void ContextTest::save(KConfigGroup &config)
config.writeEntry("test-text", m_text); config.writeEntry("test-text", m_text);
} }
K_EXPORT_PLASMA_CONTAINMENTACTIONS_WITH_JSON(containmentactions_test, ContextTest, "plasma-containmentactions-test.desktop") K_PLUGIN_CLASS_WITH_JSON(ContextTest, "plasma-containmentactions-test.desktop")
#include "test.moc" #include "test.moc"

View File

@ -27,6 +27,6 @@ public:
} }
}; };
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(ContainmentActionsPackage, "containmentactions-packagestructure.json") K_PLUGIN_CLASS_WITH_JSON(ContainmentActionsPackage, "containmentactions-packagestructure.json")
#include "containmentactionspackage.moc" #include "containmentactionspackage.moc"

View File

@ -40,6 +40,6 @@ public:
} }
}; };
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(DataEnginePackage, "dataengine-packagestructure.json") K_PLUGIN_CLASS_WITH_JSON(DataEnginePackage, "dataengine-packagestructure.json")
#include "dataenginepackage.moc" #include "dataenginepackage.moc"

View File

@ -11,6 +11,7 @@
#include <kpackage/package.h> #include <kpackage/package.h>
#include <kpackage/packagestructure.h> #include <kpackage/packagestructure.h>
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(Plasma::GenericPackage, "plasmageneric-packagestructure.json") using namespace Plasma;
K_PLUGIN_CLASS_WITH_JSON(GenericPackage, "plasmageneric-packagestructure.json")
#include "plasmagenericpackage.moc" #include "plasmagenericpackage.moc"

View File

@ -75,6 +75,6 @@ public:
} }
}; };
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(ThemePackage, "plasmatheme-packagestructure.json") K_PLUGIN_CLASS_WITH_JSON(ThemePackage, "plasmatheme-packagestructure.json")
#include "plasmathemepackage.moc" #include "plasmathemepackage.moc"

View File

@ -45,6 +45,6 @@ public:
} }
}; };
K_EXPORT_KPACKAGE_PACKAGE_WITH_JSON(PlasmoidPackage, "plasmoid-packagestructure.json") K_PLUGIN_CLASS_WITH_JSON(PlasmoidPackage, "plasmoid-packagestructure.json")
#include "plasmoidpackage.moc" #include "plasmoidpackage.moc"