MailTransportServiceIface.h
1 /*
2  This file is part of libtdepim.
3 
4  Copyright (c) 2003 Daniel Molkentin <molkentin@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef MAILTRANSPORTSERVICEIFACE_H
23 #define MAILTRANSPORTSERVICEIFACE_H
24 
25 #include <dcopobject.h>
26 #include <dcopref.h>
27 #include <kurl.h>
28 #include <tqstring.h>
29 #include <tqcstring.h>
30 
31 #include <kdemacros.h>
32 
33 namespace KPim {
34 
35 #define MailTransportServiceIface TDE_EXPORT MailTransportServiceIface
36  class MailTransportServiceIface : virtual public DCOPObject
37 #undef MailTransportServiceIface
38  {
39  K_DCOP
40 
41  k_dcop:
49  virtual bool sendMessage( const TQString& from, const TQString& to,
50  const TQString& cc, const TQString& bcc,
51  const TQString& subject, const TQString& body,
52  const KURL::List& attachments ) = 0;
53 
62  virtual bool sendMessage( const TQString& from, const TQString& to,
63  const TQString& cc, const TQString& bcc,
64  const TQString& subject, const TQString& body,
65  const TQByteArray& attachment ) = 0;
66 
67  k_dcop_hidden:
72  // FIXME KDE 4.0: Remove this.
73  virtual bool sendMessage( const TQString& to,
74  const TQString& cc, const TQString& bcc,
75  const TQString& subject, const TQString& body,
76  const KURL::List& attachments ) = 0;
77 
82  // FIXME KDE 4.0: Remove this.
83  virtual bool sendMessage( const TQString& to,
84  const TQString& cc, const TQString& bcc,
85  const TQString& subject, const TQString& body,
86  const TQByteArray& attachment ) = 0;
87 
88  };
89 
90 }
91 
92 #endif // MAILTRANSPORTSERVICEIFACE_H
93