Help bug-hunting devs
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834455
This commit is contained in:
parent
bfd552b776
commit
0d42d36814
@ -100,6 +100,7 @@ QString Service::destination() const
|
|||||||
QStringList Service::operationNames() const
|
QStringList Service::operationNames() const
|
||||||
{
|
{
|
||||||
if (!d->config) {
|
if (!d->config) {
|
||||||
|
kDebug() << "No valid operations scheme has been registered";
|
||||||
return QStringList();
|
return QStringList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,6 +110,7 @@ QStringList Service::operationNames() const
|
|||||||
KConfigGroup Service::operationDescription(const QString &operationName)
|
KConfigGroup Service::operationDescription(const QString &operationName)
|
||||||
{
|
{
|
||||||
if (!d->config) {
|
if (!d->config) {
|
||||||
|
kDebug() << "No valid operations scheme has been registered";
|
||||||
return KConfigGroup();
|
return KConfigGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,6 +122,7 @@ ServiceJob* Service::startOperationCall(const KConfigGroup &description)
|
|||||||
{
|
{
|
||||||
// TODO: nested groups?
|
// TODO: nested groups?
|
||||||
if (!d->config) {
|
if (!d->config) {
|
||||||
|
kDebug() << "No valid operations scheme has been registered";
|
||||||
return new NullServiceJob(parent());
|
return new NullServiceJob(parent());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,12 +166,14 @@ void Service::setOperationsScheme(QIODevice *xml)
|
|||||||
void Service::registerOperationsScheme()
|
void Service::registerOperationsScheme()
|
||||||
{
|
{
|
||||||
if (d->name.isEmpty()) {
|
if (d->name.isEmpty()) {
|
||||||
|
kDebug() << "No name found";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString path = KStandardDirs::locate("data", "plasma/services/" + d->name + ".operations");
|
QString path = KStandardDirs::locate("data", "plasma/services/" + d->name + ".operations");
|
||||||
|
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
|
kDebug() << "Cannot find operations description";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user