komailclient.h
00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 1998 Barry D Benowitz 00004 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 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; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 00020 As a special exception, permission is given to link this program 00021 with any edition of TQt, and distribute the resulting executable, 00022 without including the source code for TQt in the source distribution. 00023 */ 00024 #ifndef KOMAILCLIENT_H 00025 #define KOMAILCLIENT_H 00026 00027 #include <tqstring.h> 00028 00029 class KURL; 00030 namespace KCal { 00031 class IncidenceBase; 00032 } 00033 using namespace KCal; 00034 00035 class KOMailClient 00036 { 00037 public: 00038 KOMailClient(); 00039 virtual ~KOMailClient(); 00040 00041 bool mailAttendees(IncidenceBase *,const TQString &attachment=TQString()); 00042 bool mailOrganizer(IncidenceBase *,const TQString &attachment=TQString(), const TQString &sub = TQString()); 00043 bool mailTo(IncidenceBase *,const TQString &recipients,const TQString &attachment=TQString()); 00044 00045 protected: 00048 bool send(const TQString &from,const TQString &to,const TQString &cc, 00049 const TQString &subject,const TQString &body,bool bcc=false, 00050 const TQString &attachment=TQString()); 00051 00052 int kMailOpenComposer(const TQString& to, const TQString& cc, 00053 const TQString& bcc, const TQString& subject, 00054 const TQString& body, int hidden, 00055 const TQString& attachName, const TQCString& attachCte, 00056 const TQCString& attachData, 00057 const TQCString& attachType, 00058 const TQCString& attachSubType, 00059 const TQCString& attachParamAttr, 00060 const TQString& attachParamValue, 00061 const TQCString& attachContDisp, 00062 const TQCString& attachCharset, 00063 uint identity); 00064 int kMailOpenComposer(const TQString& arg0,const TQString& arg1, 00065 const TQString& arg2,const TQString& arg3, 00066 const TQString& arg4,int arg5,const KURL& arg6); 00067 }; 00068 00069 #endif