xref: /haiku/headers/private/notification/Notifications.h (revision 226f6c8bf18d1d1250d91dc630de3662bdc03ec8)
1e9834f35SAdrien Destugues /*
26aa05872SBrian Hill  * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3e9834f35SAdrien Destugues  * Distributed under the terms of the MIT License.
4e9834f35SAdrien Destugues  */
5e9834f35SAdrien Destugues #ifndef _NOTIFICATIONS_H
6e9834f35SAdrien Destugues #define _NOTIFICATIONS_H
7e9834f35SAdrien Destugues 
8e9834f35SAdrien Destugues #include <Mime.h>
9*226f6c8bSHrishi Hiraskar #include <View.h>
106aa05872SBrian Hill #include <String.h>
11e9834f35SAdrien Destugues 
12e9834f35SAdrien Destugues #define kNotificationServerSignature "application/x-vnd.Haiku-notification_server"
13e9834f35SAdrien Destugues 
14*226f6c8bSHrishi Hiraskar #define B_FOLLOW_DESKBAR B_FOLLOW_NONE
15*226f6c8bSHrishi Hiraskar 
16e9834f35SAdrien Destugues // Messages
17e9834f35SAdrien Destugues const uint32 kNotificationMessage = 'nssm';
18e9834f35SAdrien Destugues 
19e9834f35SAdrien Destugues // Settings constants
20015a928bSAdrien Destugues extern const char* kSettingsFile;
21e9834f35SAdrien Destugues 
22e9834f35SAdrien Destugues // General settings
23e9834f35SAdrien Destugues extern const char* kAutoStartName;
24e9834f35SAdrien Destugues extern const char* kTimeoutName;
256aa05872SBrian Hill extern const char* kWidthName;
266aa05872SBrian Hill extern const char* kIconSizeName;
27*226f6c8bSHrishi Hiraskar extern const char* kNotificationPositionName;
28e9834f35SAdrien Destugues 
29e9834f35SAdrien Destugues // General default settings
30af218cc4SAdrien Destugues const bool kDefaultAutoStart = true;
31e9834f35SAdrien Destugues const int32 kDefaultTimeout = 10;
326aa05872SBrian Hill const int32 kMinimumTimeout = 3;
336aa05872SBrian Hill const int32 kMaximumTimeout = 30;
34e9834f35SAdrien Destugues const float kDefaultWidth = 300.0f;
356aa05872SBrian Hill const float kMinimumWidth = 300.0f;
366aa05872SBrian Hill const float kMaximumWidth = 1000.0f;
376aa05872SBrian Hill const int32 kWidthStep = 50;
38e9834f35SAdrien Destugues const icon_size kDefaultIconSize = B_LARGE_ICON;
39*226f6c8bSHrishi Hiraskar const uint32 kDefaultNotificationPosition = B_FOLLOW_DESKBAR;
40e9834f35SAdrien Destugues 
41e9834f35SAdrien Destugues #endif	// _NOTIFICATIONS_H
42