komposerIface.h
1 /*
2  * komposerIface.h
3  *
4  * Copyright (C) 2004 Zack Rusin <zack@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #ifndef KOMPOSERIFACE_H
22 #define KOMPOSERIFACE_H
23 
24 #include <dcopobject.h>
25 #include <kurl.h>
26 
27 namespace Komposer
28 {
29 
36 class KomposerIface : virtual public DCOPObject
37 {
38  K_DCOP
39 k_dcop:
45  virtual void send(int how) = 0;
46 
50  virtual void addAttachment( const KURL &url, const TQString &comment) = 0;
51 
55  virtual void setBody( const TQString &body ) = 0;
56 
69  virtual void addAttachment( const TQString &name,
70  const TQCString &cte,
71  const TQByteArray &data,
72  const TQCString &type,
73  const TQCString &subType,
74  const TQCString &paramAttr,
75  const TQString &paramValue,
76  const TQCString &contDisp ) = 0;
77 public:
78  KomposerIface( const char *name )
79  : DCOPObject( name )
80  {}
81 };
82 
83 }
84 
85 #endif
DCOP interface for mail composer window.
Definition: komposerIface.h:37
virtual void addAttachment(const KURL &url, const TQString &comment)=0
Add url as attachment with a user-defined comment.
virtual void addAttachment(const TQString &name, const TQCString &cte, const TQByteArray &data, const TQCString &type, const TQCString &subType, const TQCString &paramAttr, const TQString &paramValue, const TQCString &contDisp)=0
Add attachment.
virtual void send(int how)=0
Send message.
virtual void setBody(const TQString &body)=0
Set message body.
attachment.h
Definition: attachment.h:29