kmail

mailserviceimpl.h

00001 /*  -*- mode: C++; c-file-style: "gnu" -*-
00002  *
00003  *  This file is part of KMail, the KDE mail client.
00004  *  Copyright (c) 2003 Zack Rusin <zack@kde.org>
00005  *
00006  *  KMail is free software; you can redistribute it and/or modify it
00007  *  under the terms of the GNU General Public License, version 2, as
00008  *  published by the Free Software Foundation.
00009  *
00010  *  KMail is distributed in the hope that it will be useful, but
00011  *  WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018  *
00019  *  In addition, as a special exception, the copyright holders give
00020  *  permission to link the code of this program with any edition of
00021  *  the TQt library by Trolltech AS, Norway (or with modified versions
00022  *  of TQt that use the same license as TQt), and distribute linked
00023  *  combinations including the two.  You must obey the GNU General
00024  *  Public License in all respects for all of the code used other than
00025  *  TQt.  If you modify this file, you may extend this exception to
00026  *  your version of the file, but you are not obligated to do so.  If
00027  *  you do not wish to do so, delete this exception statement from
00028  *  your version.
00029  */
00030 #ifndef MAILSERVICEIMPL_H
00031 #define MAILSERVICEIMPL_H
00032 
00033 #include <tqcstring.h>
00034 
00035 #include "interfaces/MailTransportServiceIface.h"
00036 
00037 class TQString;
00038 class KURL;
00039 
00040 namespace KMail {
00041 
00042   class MailServiceImpl : virtual public KPim::MailTransportServiceIface
00043   {
00044   public:
00045     MailServiceImpl();
00046     bool sendMessage( const TQString& from, const TQString& to,
00047                       const TQString& cc, const TQString& bcc,
00048                       const TQString& subject, const TQString& body,
00049                       const KURL::List& attachments );
00050 
00051     // FIXME KDE 4.0: Remove this.
00052     // (cf. libkdepim/interfaces/MailTransportServiceIface.h)
00053     bool sendMessage( const TQString& to,
00054                       const TQString& cc, const TQString& bcc,
00055                       const TQString& subject, const TQString& body,
00056                       const KURL::List& attachments );
00057 
00058     bool sendMessage( const TQString& from, const TQString& to,
00059                       const TQString& cc, const TQString& bcc,
00060                       const TQString& subject, const TQString& body,
00061                       const TQByteArray& attachment );
00062 
00063     // FIXME KDE 4.0: Remove this.
00064     // (cf. libkdepim/interfaces/MailTransportServiceIface.h)
00065     bool sendMessage( const TQString& to,
00066                       const TQString& cc, const TQString& bcc,
00067                       const TQString& subject, const TQString& body,
00068                       const TQByteArray& attachment );
00069 
00070   };
00071 }
00072 
00073 #endif