How to update kdelibs variables globally
David Jarvie
lists at astrojar.org.uk
Sat Apr 28 14:59:51 BST 2007
I'm implementing the time zones KDEDModule, and it needs to update a couple of
variables in KSystemTimeZones at initialisation and whenever it detects a
change. This update needs to be available to all applications which are using
KSystemTimeZones. What is the best way of doing this? I'm not familiar enough
with how shared libraries work - is it possible to share a variable between
applications, or is there always a separate copy of each static variable
(class static or global static) for each individual application?
Another possibly relevant factor is that the values will be stored in a config
file between sessions, and the config file will be updated whenever a change
occurs (which isn't likely to be often).
--
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm
More information about the kde-core-devel
mailing list