This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plasma::Applet destroy method

Tags: None
(comma "," separated)
cinas
Registered Member
Posts
21
Karma
0

Plasma::Applet destroy method

Tue Feb 09, 2010 9:48 am
Hi,

I'm trying to find a method called when user logouts from kde. I need it to save some data in applet configuration file.
I used destroy method, it works (method is called) when user removes applet, but seems that in case of logout method is not called. :|

Is there a way to detect logout?

Regards,
Marcin
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Plasma::Applet destroy method

Wed Feb 10, 2010 8:02 pm
Assuming you are using C++, the standard destructor should do what you are asking.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
cinas
Registered Member
Posts
21
Karma
0

Re: Plasma::Applet destroy method  Topic is solved

Wed Feb 10, 2010 10:13 pm
Thanks, You are right, the easiest way is the correct one :)
I was afraid if I would still use KConfigGroup methods in destructor, and ... it works in case of logout.
In case of applet remove I needed to save some "applet configuration data" in destroy() method (in destuctor it didn't work).


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]