View Single Post
Posts: 289 | Thanked: 101 times | Joined on Oct 2009
#6
I got it working by removing the service file + remove in the .pro file. Thanks

Since this thread got to be about dbus I have a question about sending a method to lock the screen

my code is:
lock = QDBusMessage::createMethodCall("com.nokia.mce",
"/com/nokia/mce/request",
"com.nokia.mce.request",
"req_tklock_mode_change");
QList<QVariant> args;
args.append("locked");
lock.setArguments(args);
QDBusConnection::sessionBus().send(lock);

and nothing happends.

In wiki I found this but it is for the terminal
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"

Thanks again!