Missing from previous commit. The files for notifications are quite scattered all around...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43115 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,12 +19,12 @@
|
||||
class BMessage;
|
||||
class NotificationReceived;
|
||||
|
||||
typedef std::map<BString, NotificationReceived*> notify_t;
|
||||
typedef std::map<BString, NotificationReceived*> notification_t;
|
||||
|
||||
class AppUsage : public BFlattenable {
|
||||
public:
|
||||
AppUsage();
|
||||
AppUsage(entry_ref ref, const char* name,
|
||||
AppUsage(const char* name,
|
||||
bool allow = true);
|
||||
~AppUsage();
|
||||
|
||||
@@ -36,7 +36,6 @@ public:
|
||||
virtual status_t Unflatten(type_code code, const void* buffer,
|
||||
ssize_t numBytes);
|
||||
|
||||
entry_ref Ref();
|
||||
const char* Name();
|
||||
bool Allowed(const char* title, notification_type type);
|
||||
bool Allowed();
|
||||
@@ -45,10 +44,9 @@ public:
|
||||
void AddNotification(NotificationReceived* notification);
|
||||
|
||||
private:
|
||||
entry_ref fRef;
|
||||
BString fName;
|
||||
bool fAllow;
|
||||
notify_t fNotifications;
|
||||
notification_t fNotifications;
|
||||
};
|
||||
|
||||
#endif // _APP_USAGE_H
|
||||
|
||||
@@ -12,12 +12,6 @@
|
||||
// Messages
|
||||
const uint32 kNotificationMessage = 'nssm';
|
||||
|
||||
// Notification layout
|
||||
enum infoview_layout {
|
||||
TitleAboveIcon = 0,
|
||||
AllTextRightOfIcon = 1
|
||||
};
|
||||
|
||||
// Settings constants
|
||||
extern const char* kSettingsDirectory;
|
||||
extern const char* kFiltersSettings;
|
||||
@@ -40,6 +34,5 @@ extern const char* kLayoutName;
|
||||
// Display default settings
|
||||
const float kDefaultWidth = 300.0f;
|
||||
const icon_size kDefaultIconSize = B_LARGE_ICON;
|
||||
const infoview_layout kDefaultLayout = TitleAboveIcon;
|
||||
|
||||
#endif // _NOTIFICATIONS_H
|
||||
|
||||
Reference in New Issue
Block a user