00001 #ifndef LETTER_CLASS
00002 #define LETTER_CLASS
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "post_office_dll.h"
00019
00020
00021 class time_stamp;
00022
00024
00025 class POST_OFFICE_CLASS_STYLE letter
00026 {
00027 public:
00028 letter(int type = 0, int start_after = 0);
00030
00037 letter(const letter &to_copy);
00039
00040 virtual ~letter();
00042
00048 letter &operator =(const letter &to_copy);
00050
00051 virtual istring text_form() const = 0;
00053
00054 int type() const { return _type; }
00056
00057 bool ready_to_send();
00059
00060 void set_ready_time(int start_after);
00062
00066 private:
00067 int _type;
00068 time_stamp *_ready_time;
00069 };
00070
00071 #endif
00072