1 /* 2 * Copyright 2001-2015, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Rafael Romo 7 * Stefano Ceccherini (burton666@libero.it) 8 * Axel Dörfler, axeld@pinc-software.de 9 * Augustin Cavalier <waddlesplash> 10 */ 11 #ifndef ALERT_WINDOW_H 12 #define ALERT_WINDOW_H 13 14 15 #include <Alert.h> 16 #include <Font.h> 17 #include <Messenger.h> 18 #include <String.h> 19 20 class BWindow; 21 22 23 class AlertWindow : public BAlert { 24 public: 25 AlertWindow(BMessenger handler); 26 27 virtual void MessageReceived(BMessage* message); 28 virtual void DispatchMessage(BMessage* message, BHandler* handler); 29 30 private: 31 void UpdateCountdownView(); 32 33 int32 fSeconds; 34 BMessenger fHandler; 35 BFont fOriginalFont; 36 BFont fFont; 37 }; 38 39 #endif /* ALERT_WINDOW_H */ 40