Back to index

courier  0.68.2
alarmtimer.h
Go to the documentation of this file.
00001 #ifndef       alarmtimer_h
00002 #define       alarmtimer_h
00003 
00004 
00005 #include      "config.h"
00006 #include      "alarm.h"
00007 
00009 //
00010 //  This is mainly used by DotLock to implement a dotlock timeout.
00011 //
00013 
00014 class AlarmTimer: public Alarm {
00015 
00016        void   handler();
00017        int    flag;
00018 public:
00019        AlarmTimer();
00020        void   Set(unsigned);
00021        ~AlarmTimer();
00022        int    Expired() { return (flag); }
00023 } ;
00024 
00025 #endif