![]() |
Mailinst.hGo to the documentation of this file.00001 // Mailinst.h 00002 /* 00003 Copyright (C) 2004 Anders Hedstrom 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _MAILINST_H 00021 #define _MAILINST_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 Mailinst : public Table 00032 { 00033 public: 00034 Mailinst(Database &); 00035 Mailinst(Database &,long); 00036 Mailinst(Database &,const std::string&); 00037 Mailinst(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 ~Mailinst(); 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 } // namespace db 00065 00066 #endif // _MAILINST_H 00067 /* 00068 q.execute("create table mailinst (" 00069 "id integer primary key," 00070 "host string," 00071 "mail string," 00072 "rcpt string," 00073 "h_from string," 00074 "h_to string," 00075 "h_subject string," 00076 "host_spam string," 00077 "mail_spam string," 00078 "from_spam string," 00079 "subject_spam string" 00080 */ |