2011-11-03 16:49:18 +04:00
|
|
|
/*
|
2017-09-23 18:40:04 +03:00
|
|
|
* Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
|
2011-11-03 16:49:18 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _NOTIFICATIONS_H
|
|
|
|
#define _NOTIFICATIONS_H
|
|
|
|
|
|
|
|
#include <Mime.h>
|
2017-12-11 13:54:02 +03:00
|
|
|
#include <View.h>
|
2017-09-23 18:40:04 +03:00
|
|
|
#include <String.h>
|
2011-11-03 16:49:18 +04:00
|
|
|
|
|
|
|
#define kNotificationServerSignature "application/x-vnd.Haiku-notification_server"
|
|
|
|
|
2017-12-11 13:54:02 +03:00
|
|
|
#define B_FOLLOW_DESKBAR B_FOLLOW_NONE
|
|
|
|
|
2011-11-03 16:49:18 +04:00
|
|
|
// Messages
|
2014-11-25 10:50:47 +03:00
|
|
|
const uint32 kNotificationMessage = 'nssm';
|
2011-11-03 16:49:18 +04:00
|
|
|
|
|
|
|
// Settings constants
|
2014-10-21 20:46:17 +04:00
|
|
|
extern const char* kSettingsFile;
|
2011-11-03 16:49:18 +04:00
|
|
|
|
|
|
|
// General settings
|
|
|
|
extern const char* kAutoStartName;
|
|
|
|
extern const char* kTimeoutName;
|
2017-09-23 18:40:04 +03:00
|
|
|
extern const char* kWidthName;
|
|
|
|
extern const char* kIconSizeName;
|
2017-12-11 13:54:02 +03:00
|
|
|
extern const char* kNotificationPositionName;
|
2011-11-03 16:49:18 +04:00
|
|
|
|
|
|
|
// General default settings
|
2014-11-25 10:50:47 +03:00
|
|
|
const bool kDefaultAutoStart = true;
|
|
|
|
const int32 kDefaultTimeout = 10;
|
2017-09-23 18:40:04 +03:00
|
|
|
const int32 kMinimumTimeout = 3;
|
|
|
|
const int32 kMaximumTimeout = 30;
|
2014-11-25 10:50:47 +03:00
|
|
|
const float kDefaultWidth = 300.0f;
|
2017-09-23 18:40:04 +03:00
|
|
|
const float kMinimumWidth = 300.0f;
|
|
|
|
const float kMaximumWidth = 1000.0f;
|
|
|
|
const int32 kWidthStep = 50;
|
2014-11-25 10:50:47 +03:00
|
|
|
const icon_size kDefaultIconSize = B_LARGE_ICON;
|
2017-12-11 13:54:02 +03:00
|
|
|
const uint32 kDefaultNotificationPosition = B_FOLLOW_DESKBAR;
|
2011-11-03 16:49:18 +04:00
|
|
|
|
|
|
|
#endif // _NOTIFICATIONS_H
|