[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    How to update kdelibs variables globally
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2007-04-28 13:59:51
Message-ID: 200704281459.52374.lists () astrojar ! org ! uk
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic