1/* 2 * Copyright 2001-2005, 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 */ 10#ifndef ALERT_VIEW_H 11#define ALERT_VIEW_H 12 13 14#include <String.h> 15#include <View.h> 16 17class BBitmap; 18class BStringView; 19 20 21class AlertView : public BView { 22 public: 23 AlertView(BRect frame, const char* name); 24 25 virtual void AttachedToWindow(); 26 virtual void Draw(BRect updateRect); 27 virtual void Pulse(); 28 virtual void KeyDown(const char* bytes, int32 numBytes); 29 30 private: 31 void UpdateCountdownView(); 32 BBitmap* InitIcon(); 33 34 BStringView* fCountdownView; 35 BBitmap* fBitmap; 36 int32 fSeconds; 37}; 38 39#endif /* ALERT_VIEW_H */ 40