I am starting to clean up the mess that is Global right now, and to implement a clean...
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 8 Jul 2007 14:36:08 +0000 (14:36 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 8 Jul 2007 14:36:08 +0000 (14:36 +0000)
commit42ff71aaa8d3cee9e348a45758c56c380a4f1b45
treef39dbb15a1dd1b56342d36edd70850fa13e87995
parentb7941a3c2a1884f1e6f694fda2e90ad20277db2e
I am starting to clean up the mess that is Global right now, and to implement a clean infrastructure
for storing settings (session-wide and local). First step: Instead of putting synchronization stuff into
Global and doing special treatment for signals in Core, we have now a clear interface for handling
session-wide data in both Client and CoreSession:

Client::storeSessionData(key, data) [static]
Client::retrieveSessionData(key, defdata) [static]
CoreSession::storeSessionData(key, data)
CoreSession::retrieveSessionData(key, defdata)

CoreSession also cares for persistent storage using QSettings. It should be noted that the client-side store function
just sends a signal to the core, and the client-side data is actually updated upon receipt of the sync signal from core.
IOW, stuff is not stored immediately, and you should thus not rely on it being available right after your call to
storeSessionData(). If this is a bad idea, we might change this behavior at some point.

Note: The code has not yet been tested thoroughly, and it's only the first step anyway.
src/client/client.cpp
src/client/client.h
src/client/clientproxy.cpp
src/client/clientproxy.h
src/common/proxy_common.h
src/common/util.cpp
src/core/coreproxy.cpp
src/core/coreproxy.h
src/core/coresession.cpp
src/core/coresession.h