#ifndef _CLOCK_H
#define _CLOCK_H

#include <Vk/VkComponent.h>
#include "DynamicLabel.h"

#define TimeFormatSize 100

class Clock : public VkComponent
{
  public:

  Clock(const char *name, Widget parent);
  ~Clock();

  virtual const char *className()
  {
    return "Clock";
  }
  
  void update();
  
  protected:
  char *_timeFormat;
  DynamicLabel *_face;
  XtIntervalId _timer;

  void startTimer();
  
  private:
  static void timerCallback(XtPointer clientData, XtIntervalId *id);
  static XtResource _resources[];
};



#endif
