mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 14:54:49 +01:00
015a928b88
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.
36 lines
838 B
C
36 lines
838 B
C
/*
|
|
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _NOTIFICATIONS_H
|
|
#define _NOTIFICATIONS_H
|
|
|
|
#include <Mime.h>
|
|
|
|
#define kNotificationServerSignature "application/x-vnd.Haiku-notification_server"
|
|
|
|
// Messages
|
|
const uint32 kNotificationMessage = 'nssm';
|
|
|
|
// Settings constants
|
|
extern const char* kSettingsFile;
|
|
|
|
// General settings
|
|
extern const char* kAutoStartName;
|
|
extern const char* kTimeoutName;
|
|
|
|
// General default settings
|
|
const float kDefaultAutoStart = false;
|
|
const int32 kDefaultTimeout = 10;
|
|
|
|
// Display settings
|
|
extern const char* kWidthName;
|
|
extern const char* kIconSizeName;
|
|
extern const char* kLayoutName;
|
|
|
|
// Display default settings
|
|
const float kDefaultWidth = 300.0f;
|
|
const icon_size kDefaultIconSize = B_LARGE_ICON;
|
|
|
|
#endif // _NOTIFICATIONS_H
|