/* * Copyright 2010, Haiku, Inc. All Rights Reserved. * Copyright 2009, Pier Luigi Fiorini. * Distributed under the terms of the MIT License. */ #ifndef _APPS_VIEW_H #define _APPS_VIEW_H #include #include #include "SettingsPane.h" typedef std::map appusage_t; class BCheckBox; class BTextControl; class BColumnListView; class BStringColumn; class BDateColumn; class NotificationsView : public SettingsPane { public: NotificationsView(SettingsHost* host); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* msg); private: status_t Load(BMessage&); status_t Save(BMessage&); status_t Revert() {return B_OK;} // FIXME implement this void _PopulateApplications(); void _Populate(AppUsage* usage); appusage_t fAppFilters; BCheckBox* fBlockAll; BTextControl* fSearch; BColumnListView* fApplications; BStringColumn* fAppCol; BStringColumn* fAppEnabledCol; BColumnListView* fNotifications; BStringColumn* fTitleCol; BDateColumn* fDateCol; BStringColumn* fTypeCol; BStringColumn* fAllowCol; }; #endif // _APPS_VIEW_H