Notifications: use a single settings file.

There were 3 setting files, each an archived BMessage. Now there is only
one with all the data inside.
* Rework the SettingsPane class to save and load settings from a
message, rather than having each panel pick a file path on its own
* Move saving the app filters to the preference app, rather than the
server (so it's done at the same place as other settings)
* Rework loading prefs in the server so the settings message is read
from the file once and all settings are loaded from it.

This turns out to be more changes than I anticipated.
Fixes #9424.
This commit is contained in:
Adrien Destugues
2014-10-21 18:53:06 +02:00
parent fe2b689642
commit 015a928b88
15 changed files with 142 additions and 278 deletions
+1 -4
View File
@@ -13,10 +13,7 @@
const uint32 kNotificationMessage = 'nssm';
// Settings constants
extern const char* kSettingsDirectory;
extern const char* kFiltersSettings;
extern const char* kGeneralSettings;
extern const char* kDisplaySettings;
extern const char* kSettingsFile;
// General settings
extern const char* kAutoStartName;