Commit graph

3 commits

Author SHA1 Message Date
Patrick Ohly 18a4e2ea01 D-Bus server: cleaned up shutdown handling
Instead of scheduling a shutdown session, set a boolean flag and check
that when scheduling/accepting new sessions and connections. That way
it is a bit more obvious in which state the server is.

Preventing shutdown when there is an auto sync config at startup is
wrong. The auto sync flag might get removed later, in which case
shutting down the server becomes okay again. The auto sync manager
must take the shutdown lock as needed. Somehow that worked before,
despite the "m_autoSync.preventTerm() ? -1 : duration".

A test for this will be committed separately.

Instead of coupling different modules directly to each other via
method calls or callbacks, this commit introduces signals which are
connected to methods as necessary when combining the different modules
in the server.
2012-05-08 09:14:09 +02:00
Chris Kühl c4e69e2e58 dbus-server: Make dbus-server notification file names conformant
The Notification* files in src/dbus/server were the only files using camel case.

The commit fixes that. Now files are of the form notification-*.
2011-12-05 12:39:14 +01:00
Chris Kühl a425d70386 server: Renamed 'dbus-server' sub-directory to 'dbus/server' 2011-08-26 12:52:16 +02:00
Renamed from src/dbus-server/auto-sync-manager.h (Browse further)