kmail

KMComposeWin Class Reference

#include <kmcomposewin.h>

Inheritance diagram for KMComposeWin:

List of all members.


Public Slots

void autoSaveMessage ()
void slotSendNow ()
void slotSetAlwaysSend (bool bAlwaysSend)
void slotWordWrapToggled (bool)

Signals

void applyChangesDone (bool)
void attachmentAdded (const KURL &, bool success)

Public Member Functions

void addAttach (const KMMessagePart *msgPart)
bool addAttach (const KURL url)
void addAttachment (const QString &name, const QCString &cte, const QByteArray &data, const QCString &type, const QCString &subType, const QCString &paramAttr, const QString &paramValue, const QCString &contDisp)
void addAttachment (KURL url, QString comment)
void addAttachmentsAndSend (const KURL::List &urls, const QString &comment, int how)
const MailComposerIfaceasMailComposerIFace () const
MailComposerIfaceasMailComposerIFace ()
void disableWordWrap ()
void send (int how)
void setAutoDelete (bool f)
void setAutoDeleteWindow (bool f)
void setAutoSaveFilename (const QString &filename)
void setBody (QString body)
void setCharset (const QCString &aCharset, bool forceDefault=FALSE)
void setFocusToSubject ()
void setFolder (KMFolder *aFolder)
void setMsg (KMMessage *newMsg, bool mayAutoSign=TRUE, bool allowDecryption=FALSE, bool isModified=FALSE)
void setReplyFocus (bool hasMessage=true)
void setSigningAndEncryptionDisabled (bool v)

Static Public Member Functions

static Composercreate (KMMessage *msg=0, uint identity=0)

Detailed Description

Definition at line 98 of file kmcomposewin.h.


Member Function Documentation

void KMComposeWin::addAttach ( const KMMessagePart msgPart  )  [virtual]

Add an attachment to the list.

Implements KMail::Composer.

bool KMComposeWin::addAttach ( const KURL  url  )  [virtual]

Implements KMail::Composer.

void KMComposeWin::addAttachment ( const QString name,
const QCString cte,
const QByteArray data,
const QCString type,
const QCString subType,
const QCString paramAttr,
const QString paramValue,
const QCString contDisp 
) [virtual]

Implements KMail::Composer.

Definition at line 558 of file kmcomposewin.cpp.

void KMComposeWin::addAttachment ( KURL  url,
QString  comment 
) [virtual]

Implements KMail::Composer.

Definition at line 552 of file kmcomposewin.cpp.

void KMComposeWin::addAttachmentsAndSend ( const KURL::List &  urls,
const QString comment,
int  how 
) [virtual]

Implements KMail::Composer.

Definition at line 517 of file kmcomposewin.cpp.

void KMComposeWin::applyChangesDone ( bool   )  [signal]

const MailComposerIface* KMComposeWin::asMailComposerIFace (  )  const [inline, virtual]

Implements KMail::Composer.

Definition at line 111 of file kmcomposewin.h.

MailComposerIface* KMComposeWin::asMailComposerIFace (  )  [inline, virtual]

Implements KMail::Composer.

Definition at line 110 of file kmcomposewin.h.

void KMComposeWin::attachmentAdded ( const KURL &  ,
bool  success 
) [signal]

void KMComposeWin::autoSaveMessage (  )  [virtual, slot]

Implements KMail::Composer.

Definition at line 769 of file kmcomposewin.cpp.

KMail::Composer * KMComposeWin::create ( KMMessage msg = 0,
uint  identity = 0 
) [static]

Definition at line 152 of file kmcomposewin.cpp.

void KMComposeWin::disableWordWrap (  )  [virtual]

Implements KMail::Composer.

void KMComposeWin::send ( int  how  )  [virtual]

From MailComposerIface.

Implements KMail::Composer.

Definition at line 501 of file kmcomposewin.cpp.

void KMComposeWin::setAutoDelete ( bool  f  )  [inline, virtual]

If this flag is set the message of the composer is deleted when the composer is closed and the message was not sent.

Default: FALSE

Implements KMail::Composer.

Definition at line 192 of file kmcomposewin.h.

void KMComposeWin::setAutoDeleteWindow ( bool  f  )  [virtual]

If this flag is set, the compose window will delete itself after the window has been closed.

Implements KMail::Composer.

Definition at line 492 of file kmcomposewin.cpp.

void KMComposeWin::setAutoSaveFilename ( const QString filename  )  [virtual]

Set the filename which is used for autosaving.

Implements KMail::Composer.

void KMComposeWin::setBody ( QString  body  )  [virtual]

Implements KMail::Composer.

Definition at line 600 of file kmcomposewin.cpp.

void KMComposeWin::setCharset ( const QCString aCharset,
bool  forceDefault = FALSE 
) [virtual]

Recode to the specified charset.

Implements KMail::Composer.

void KMComposeWin::setFocusToSubject (  )  [virtual]

Sets the focus to the subject line edit.

For use when creating a message to a known recipient.

Implements KMail::Composer.

void KMComposeWin::setFolder ( KMFolder aFolder  )  [inline, virtual]

If this folder is set, the original message is inserted back after cancelling.

Implements KMail::Composer.

Definition at line 205 of file kmcomposewin.h.

void KMComposeWin::setMsg ( KMMessage newMsg,
bool  mayAutoSign = TRUE,
bool  allowDecryption = FALSE,
bool  isModified = FALSE 
) [virtual]

Set the message the composer shall work with.

This discards previous messages without calling applyChanges() on them before.

Implements KMail::Composer.

Definition at line 1798 of file kmcomposewin.cpp.

void KMComposeWin::setReplyFocus ( bool  hasMessage = true  )  [virtual]

Sets the focus to the edit-widget and the cursor below the "On ... you wrote" line when hasMessage is true.

Make sure you call this _after_ setMsg().

Implements KMail::Composer.

void KMComposeWin::setSigningAndEncryptionDisabled ( bool  v  )  [inline, virtual]

Disabled signing and encryption completely for this composer window.

Implements KMail::Composer.

Definition at line 251 of file kmcomposewin.h.

void KMComposeWin::slotSendNow (  )  [virtual, slot]

Implements KMail::Composer.

void KMComposeWin::slotSetAlwaysSend ( bool  bAlwaysSend  )  [virtual, slot]

Tell the composer to always send the message, even if the user hasn't changed the next.

This is useful if a message is autogenerated (e.g., via a DCOP call), and the user should simply be able to confirm the message and send it.

Implements KMail::Composer.

void KMComposeWin::slotWordWrapToggled ( bool   )  [virtual, slot]

Switch wordWrap on/off.

Implements KMail::Composer.


The documentation for this class was generated from the following files: