Use kservice test as well

This commit is contained in:
Sebastian Kügler 2013-07-30 21:26:47 +02:00
parent fd65125a24
commit b9dec2cd99
2 changed files with 8 additions and 7 deletions

View File

@ -70,6 +70,7 @@ Applet::Applet(const KPluginInfo &info, QObject *parent, uint appletId)
: QObject(parent),
d(new AppletPrivate(KService::Ptr(), &info, appletId, this))
{
qDebug() << " From KPluginInfo, valid? " << info.isValid();
// WARNING: do not access config() OR globalConfig() in this method!
// that requires a scene, which is not available at this point
d->init();

View File

@ -76,13 +76,13 @@ void PluginTest::runMain()
{
qDebug() << "plugin test runs: ";
//loadDataEngine();
qDebug() << " - - - -- - - - - ------------------------------------\n";
qDebug() << " libs are in: " << QCoreApplication::libraryPaths();
//loadKQPlugin();
// qDebug() << " - - - -- - - - - ------------------------------------\n";
// qDebug() << " libs are in: " << QCoreApplication::libraryPaths();
// //loadKQPlugin();
qDebug() << "::: loadKPlugin() == " << loadKPlugin();
qDebug() << " - - - -- - - - - ------------------------------------\n";
qDebug() << "::: loadKService() == " << loadKService();
// qDebug() << " - - - -- - - - - ------------------------------------\n";
// qDebug() << "::: loadKService() == " << loadKService();
//
qDebug() << " - - - -- - - - - ------------------------------------\n";
qDebug() << "::: loadKFromPlasma() == " << loadFromPlasma();
exit(0);
@ -286,7 +286,7 @@ bool PluginTest::loadKService(const QString &name)
void PluginTest::dataUpdated(QString s, Plasma::DataEngine::Data d)
{
qDebug() << "new data for source: " << s << d;
// qDebug() << "new data for source: " << s << d;
}
} // namespace Plasma