#ifndef _FLASHINGALARMTEXT_H
#define _FLASHINGALARMTEXT_H

#include "AlarmText.h"

class FlashingAlarmText : public AlarmText
{
  public:
  FlashingAlarmText(const char *name, Widget parent, Alarm *alarm,
		    char *format = "%s");
  
  ~FlashingAlarmText();
  
  const char *className()
  {
    return "FlashingAlarmText";
  }

  virtual void updateGui(DM_Item handle = 0);
  

  protected:

  shine();
  flash();

  XtIntervalId _flashTimer;
  int _flashPeriod;
  int _phase;

  private:
  
  static void timerCallback(XtPointer clientData, XtIntervalId *id);
};

#endif
