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:
Adrien Destugues
2011-11-02 15:08:00 +00:00
parent 4ec6c3a042
commit 279ca67d6e
7 changed files with 278 additions and 138 deletions
+3 -5
View File
@@ -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