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