tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / preferences / notifications / NotificationsView.h
blobb44c7376cfb2a3d9191710b038e5493351e62949
1 /*
2 * Copyright 2010, Haiku, Inc. All Rights Reserved.
3 * Copyright 2009, Pier Luigi Fiorini.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef _APPS_VIEW_H
7 #define _APPS_VIEW_H
9 #include <View.h>
11 #include <notification/AppUsage.h>
13 #include "SettingsPane.h"
15 typedef std::map<BString, AppUsage *> appusage_t;
17 class BCheckBox;
18 class BTextControl;
19 class BColumnListView;
20 class BStringColumn;
21 class BDateColumn;
23 class NotificationsView : public SettingsPane {
24 public:
25 NotificationsView(SettingsHost* host);
27 virtual void AttachedToWindow();
28 virtual void MessageReceived(BMessage* msg);
30 private:
31 status_t Load(BMessage&);
32 status_t Save(BMessage&);
33 status_t Revert() {return B_OK;} // FIXME implement this
34 void _PopulateApplications();
35 void _Populate(AppUsage* usage);
37 appusage_t fAppFilters;
38 BCheckBox* fBlockAll;
39 BTextControl* fSearch;
40 BColumnListView* fApplications;
41 BStringColumn* fAppCol;
42 BStringColumn* fAppEnabledCol;
43 BColumnListView* fNotifications;
44 BStringColumn* fTitleCol;
45 BDateColumn* fDateCol;
46 BStringColumn* fTypeCol;
47 BStringColumn* fAllowCol;
50 #endif // _APPS_VIEW_H