• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

composer.h

Go to the documentation of this file.
00001 /* -*- mode: C++; c-file-style: "gnu" -*-
00002   This file is part of KMail, the KDE mail client.
00003   Copyright (c) 1997 Markus Wuebben <markus.wuebben@kde.org>
00004 
00005   This program is free software; you can redistribute it and/or modify
00006   it under the terms of the GNU General Public License as published by
00007   the Free Software Foundation; either version 2 of the License, or
00008   (at your option) any later version.
00009 
00010   This program is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013   GNU General Public License for more details.
00014 
00015   You should have received a copy of the GNU General Public License along
00016   with this program; if not, write to the Free Software Foundation, Inc.,
00017   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KMAIL_COMPOSER_H__
00021 #define __KMAIL_COMPOSER_H__
00022 
00023 #include "secondarywindow.h"
00024 
00025 #include <kurl.h>
00026 #include <kglobalsettings.h>
00027 
00028 #include <QString>
00029 
00030 class KMMessage;
00031 class KMFolder;
00032 class KMMessagePart;
00033 class MailComposerIface;
00034 
00035 namespace KMail {
00036 
00037 class Composer;
00038 
00039 Composer *makeComposer( KMMessage *msg=0, uint identity=0 );
00040 
00041 class Composer : public KMail::SecondaryWindow
00042 {
00043   Q_OBJECT
00044   protected:
00045     Composer( const char *name=0 ) : KMail::SecondaryWindow( name ) {}
00046 
00047   public: // mailserviceimpl
00051     virtual void send( int how ) = 0;
00052     virtual void addAttachmentsAndSend( const KUrl::List &urls,
00053                                         const QString &comment, int how) = 0;
00054     virtual void addAttachment( const KUrl &url, const QString &comment ) = 0;
00055     virtual void addAttachment( const QString &name,
00056                                 const QByteArray &cte,
00057                                 const QByteArray &data,
00058                                 const QByteArray &type,
00059                                 const QByteArray &subType,
00060                                 const QByteArray &paramAttr,
00061                                 const QString &paramValue,
00062                                 const QByteArray &contDisp ) = 0;
00063   public: // kmcommand
00064     virtual QString dbusObjectPath() const = 0;
00065   public: // kmkernel, kmcommands, callback
00070     virtual void setMsg( KMMessage *newMsg, bool mayAutoSign=true,
00071                          bool allowDecryption=false, bool isModified=false ) = 0;
00072 
00073   public: // kmkernel
00077     virtual void setAutoSaveFilename( const QString &filename ) = 0;
00078 
00079   public: // kmkernel, callback
00084     virtual void setAutoDelete( bool f ) = 0;
00085 
00086   public: // kmcommand
00091     virtual void setFolder( KMFolder *aFolder ) = 0;
00092 
00093   public: // kmkernel, kmcommand, mailserviceimpl
00097     virtual void setCharset( const QByteArray &aCharset, bool forceDefault=false ) = 0;
00098 
00099   public: // kmcommand
00105     virtual void setReplyFocus( bool hasMessage=true ) = 0;
00106 
00111     virtual void setFocusToSubject() = 0;
00112 
00113   public: // callback
00115     virtual void setSigningAndEncryptionDisabled( bool v ) = 0;
00116 
00117   public slots: // kmkernel, callback
00118     virtual void slotSendNow() = 0;
00119 
00120   public slots: // kmkernel
00127     virtual void slotSetAlwaysSend( bool bAlwaysSend ) = 0;
00128 
00129   public slots: // kmkernel, callback
00133     virtual void slotWordWrapToggled( bool ) = 0;
00134 
00135   public slots: // kmkernel
00136     virtual void autoSaveMessage() = 0;
00137 
00138   public: // kmkernel, attachmentlistview
00139     virtual bool addAttach( const KUrl &url ) = 0;
00140 
00141     virtual void disableWordWrap() = 0;
00142 
00143   public: // kmcommand
00147     virtual void addAttach( KMMessagePart *msgPart ) = 0;
00148 };
00149 
00150 }
00151 
00152 #endif // __KMAIL_COMPOSER_H__

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal