komposerIface.h
00001 /* 00002 * komposerIface.h 00003 * 00004 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library 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 GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA 00020 */ 00021 #ifndef KOMPOSERIFACE_H 00022 #define KOMPOSERIFACE_H 00023 00024 #include <dcopobject.h> 00025 #include <kurl.h> 00026 00027 namespace Komposer 00028 { 00029 00036 class KomposerIface : virtual public DCOPObject 00037 { 00038 K_DCOP 00039 k_dcop: 00045 virtual void send(int how) = 0; 00046 00050 virtual void addAttachment( const KURL &url, const TQString &comment) = 0; 00051 00055 virtual void setBody( const TQString &body ) = 0; 00056 00069 virtual void addAttachment( const TQString &name, 00070 const TQCString &cte, 00071 const TQByteArray &data, 00072 const TQCString &type, 00073 const TQCString &subType, 00074 const TQCString ¶mAttr, 00075 const TQString ¶mValue, 00076 const TQCString &contDisp ) = 0; 00077 public: 00078 KomposerIface( const char *name ) 00079 : DCOPObject( name ) 00080 {} 00081 }; 00082 00083 } 00084 00085 #endif