[Panel-devel] kickoff delegate painting
Ivan Čukić
ivan.cukic+kde at gmail.com
Wed Oct 31 19:17:07 CET 2007
> Dirk and Dave Faure mentioned this earlier. Apparently Kickoff is not
> supposed to depend on this library. I suggest discussing it with them
> before changing anything.
You could use the DBus connection to the things you use. For logout it would
be something like this:
org::kde::KSMServerInterface smserver(
"org.kde.ksmserver",
"/KSMServer",
QDBusConnection::sessionBus()
);
if (smserver.isValid()) {
smserver.logout(
KWorkSpace::ShutdownConfirmDefault, // <-
KWorkSpace::ShutdownTypeDefault, // <-
KWorkSpace::ShutdownModeDefault // <-
);
}
But the header of the library is needed for marked enums...
--
I am a spokesman for a better way of living
Love is the word and it can be heard
If you are young the message can be sung
-- Deep Purple
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071031/e4352085/attachment.pgp
More information about the Panel-devel
mailing list