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