1/* 2 * Copyright 2004-2012, Haiku, Inc. All rights reserved. 3 * Copyright 2001, Dr. Zoidberg Enterprises. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 */ 7#ifndef NOTIFIER_CONFIG_VIEW_H 8#define NOTIFIER_CONFIG_VIEW_H 9 10 11#include <MailSettingsView.h> 12 13 14enum { 15 NOTIFY_BEEP = 1, 16 NOTIFY_ALERT = 2, 17 NOTIFY_BLINK_LEDS = 4, 18 NOTIFY_CENTRAL_ALERT = 8, 19 NOTIFY_CENTRAL_BEEP = 16, 20 NOTIFY_NOTIFICATION = 32 21}; 22 23 24class NotifierConfigView : public BMailSettingsView { 25public: 26 NotifierConfigView(); 27 28 void SetTo(const BMessage *archive); 29 30 virtual status_t SaveInto(BMailAddOnSettings& settings) const; 31 32 virtual void AttachedToWindow(); 33 virtual void MessageReceived(BMessage *msg); 34 35private: 36 void _UpdateNotifyText(); 37}; 38 39 40#endif // NOTIFIER_CONFIG_VIEW_H 41