00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _SENDER_H
00021 #define _SENDER_H
00022
00023 #include <string>
00024 #include "../Minion/Database/Database.h"
00025 #include <Utility.h>
00026 #include "Table.h"
00027
00028 namespace db {
00029
00031 class Sender : public Table
00032 {
00033 public:
00034 Sender(Database &);
00035 Sender(Database &,long);
00036 Sender(Database &,const std::string&);
00037 Sender(Database &,const std::string& host,
00038 const std::string& mail,
00039 const std::string& rcpt,
00040 const std::string& h_from,
00041 const std::string& h_to,
00042 const std::string& h_subject);
00043 ~Sender();
00044
00045 long m_id;
00046 std::string m_host;
00047 std::string m_mail;
00048 std::string m_rcpt;
00049 std::string m_h_from;
00050 std::string m_h_to;
00051 std::string m_h_subject;
00052 bool m_host_spam;
00053 bool m_mail_spam;
00054 bool m_from_spam;
00055 bool m_subject_spam;
00056
00057 void save();
00058
00059 private:
00060 void Spawn(const std::string& );
00061 };
00062
00063
00064 }
00065
00066 #endif // _SENDER_H
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080