Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Mailinst.h

Go 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 "../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 } // namespace db 00064 00065 #endif // _MAILINST_H 00066 /* 00067 q.execute("create table mailinst (" 00068 "id integer primary key," 00069 "host string," 00070 "mail string," 00071 "rcpt string," 00072 "h_from string," 00073 "h_to string," 00074 "h_subject string," 00075 "host_spam string," 00076 "mail_spam string," 00077 "from_spam string," 00078 "subject_spam string" 00079 */

Generated for C++ Sockets library example: SMTP Proxy by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström