korganizer

komailclient.h
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 1998 Barry D Benowitz
4 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program 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
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24#ifndef KOMAILCLIENT_H
25#define KOMAILCLIENT_H
26
27#include <tqstring.h>
28
29class KURL;
30namespace KCal {
31class IncidenceBase;
32}
33using namespace KCal;
34
35class KOMailClient
36{
37 public:
38 KOMailClient();
39 virtual ~KOMailClient();
40
41 bool mailAttendees(IncidenceBase *,const TQString &attachment=TQString());
42 bool mailOrganizer(IncidenceBase *,const TQString &attachment=TQString(), const TQString &sub = TQString());
43 bool mailTo(IncidenceBase *,const TQString &recipients,const TQString &attachment=TQString());
44
45 protected:
48 bool send(const TQString &from,const TQString &to,const TQString &cc,
49 const TQString &subject,const TQString &body,bool bcc=false,
50 const TQString &attachment=TQString());
51
52 int kMailOpenComposer(const TQString& to, const TQString& cc,
53 const TQString& bcc, const TQString& subject,
54 const TQString& body, int hidden,
55 const TQString& attachName, const TQCString& attachCte,
56 const TQCString& attachData,
57 const TQCString& attachType,
58 const TQCString& attachSubType,
59 const TQCString& attachParamAttr,
60 const TQString& attachParamValue,
61 const TQCString& attachContDisp,
62 const TQCString& attachCharset,
63 uint identity);
64 int kMailOpenComposer(const TQString& arg0,const TQString& arg1,
65 const TQString& arg2,const TQString& arg3,
66 const TQString& arg4,int arg5,const KURL& arg6);
67};
68
69#endif