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 62c106fb authored by Albert Astals Cid's avatar Albert Astals Cid

Use the nicer K_PLUGIN_CLASS_WITH_JSON

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18025
parent 1114fa87
......@@ -77,6 +77,6 @@ void ApodProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(ApodProviderFactory, "apodprovider.json", registerPlugin<ApodProvider>();)
K_PLUGIN_CLASS_WITH_JSON(ApodProvider, "apodprovider.json")
#include "apodprovider.moc"
......@@ -89,6 +89,6 @@ void BingProvider::imageRequestFinished(KJob* _job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(BingProviderFactory, "bingprovider.json", registerPlugin<BingProvider>();)
K_PLUGIN_CLASS_WITH_JSON(BingProvider, "bingprovider.json")
#include "bingprovider.moc"
......@@ -76,6 +76,6 @@ void EpodProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(EpodProviderFactory, "epodprovider.json", registerPlugin<EpodProvider>();)
K_PLUGIN_CLASS_WITH_JSON(EpodProvider, "epodprovider.json")
#include "epodprovider.moc"
......@@ -162,6 +162,6 @@ void FlickrProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(FlickrProviderFactory, "flickrprovider.json", registerPlugin<FlickrProvider>();)
K_PLUGIN_CLASS_WITH_JSON(FlickrProvider, "flickrprovider.json")
#include "flickrprovider.moc"
......@@ -86,6 +86,6 @@ void NatGeoProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(NatGeoProviderFactory, "natgeoprovider.json", registerPlugin<NatGeoProvider>();)
K_PLUGIN_CLASS_WITH_JSON(NatGeoProvider, "natgeoprovider.json")
#include "natgeoprovider.moc"
......@@ -85,6 +85,6 @@ void NOAAProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(NOAAProviderFactory, "noaaprovider.json", registerPlugin<NOAAProvider>();)
K_PLUGIN_CLASS_WITH_JSON(NOAAProvider, "noaaprovider.json")
#include "noaaprovider.moc"
......@@ -93,6 +93,6 @@ void WcpotdProvider::imageRequestFinished(KJob *_job)
emit finished(this);
}
K_PLUGIN_FACTORY_WITH_JSON(WcpotdProviderFactory, "wcpotdprovider.json", registerPlugin<WcpotdProvider>();)
K_PLUGIN_CLASS_WITH_JSON(WcpotdProvider, "wcpotdprovider.json")
#include "wcpotdprovider.moc"
......@@ -79,7 +79,6 @@ void %{APPNAME}::handleFinishedImageRequest(KJob *job)
}
K_PLUGIN_FACTORY_WITH_JSON(%{APPNAME}Factory, "%{APPNAMELC}.json",
registerPlugin<%{APPNAME}>();)
K_PLUGIN_CLASS_WITH_JSON(%{APPNAME}, "%{APPNAMELC}.json")
#include "%{APPNAMELC}.moc"
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