00001 /* Mail transport interface. 00002 * 00003 * PegSoft mail library (c) 2006 PegSoft 00004 * Contact us at pegsoft@pegsoft.net 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program (see the file COPYING); if not, write to the 00018 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00024 #ifndef MAIL_TRANSPORT_H 00025 #define MAIL_TRANSPORT_H 00026 00027 /*************************************************************************/ 00028 00029 #include <modules/interface.h> 00030 00031 /*************************************************************************/ 00032 00033 namespace mail 00034 { 00035 00036 /*************************************************************************/ 00037 00038 class Mail; 00039 00040 /*************************************************************************/ 00041 00043 00052 class Transport : public modules::ErrorInterface 00053 { 00054 public: 00056 static modules::PSIID const IID = 0x45724731; 00057 00059 00073 virtual bool deliver(Mail const &mail, bool *temp) = 0; 00074 }; 00075 00076 /*************************************************************************/ 00077 00078 } /* namespace mail */ 00079 00080 /*************************************************************************/ 00081 00082 #endif /* MAIL_TRANSPORT_H */