libkdepim

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 QString &comment) = 0;
00051 
00055   virtual void setBody( const QString &body ) = 0;
00056 
00069   virtual void addAttachment( const QString &name,
00070                               const QCString &cte,
00071                               const QByteArray &data,
00072                               const QCString &type,
00073                               const QCString &subType,
00074                               const QCString &paramAttr,
00075                               const QString &paramValue,
00076                               const QCString &contDisp ) = 0;
00077 public:
00078   KomposerIface( const char *name )
00079     : DCOPObject( name )
00080   {}
00081 };
00082 
00083 }
00084 
00085 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys