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

kmail

KMReaderWin Class Reference

This class implements a "reader window", that is a window used for reading or viewing messages. More...

#include <kmreaderwin.h>

Inheritance diagram for KMReaderWin:
Inheritance graph
[legend]

List of all members.

Public Slots

void clearCache ()
void fillCommandInfo (partNode *node, KMMessage **msg, int *nodeId)
void selectAll ()
void slotAddBookmarks ()
void slotCopySelectedText ()
void slotDeleteAttachment (partNode *node)
void slotDocumentChanged ()
void slotDocumentDone ()
void slotEditAttachment (partNode *node)
void slotFind ()
void slotHandleAttachment (int action)
void slotJumpDown ()
void slotLevelQuote (int l)
void slotMailtoAddAddrBook ()
void slotMailtoCompose ()
void slotMailtoForward ()
void slotMailtoOpenAddrBook ()
void slotMailtoReply ()
void slotMessageArrived (KMMessage *msg)
void slotSaveAttachments ()
void slotSaveMsg ()
void slotScrollDown ()
void slotScrollNext ()
void slotScrollPrior ()
void slotScrollUp ()
void slotTextSelected (bool)
void slotToggleFixedFont ()
void slotToggleHtmlMode ()
void slotToggleMimePartTree ()
void slotTouchMessage ()
void slotUrlClicked ()
void slotUrlCopy ()
void slotUrlOn (const QString &url)
void slotUrlOpen (const KUrl &url=KUrl())
void slotUrlOpen (const KUrl &url, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &)
void slotUrlPopup (const QString &, const QPoint &mousePos)
void slotUrlSave ()
void updateReaderWin ()

Signals

void noDrag (void)
void popupMenu (KMMessage &msg, const KUrl &url, const QPoint &mousePos)
void replaceMsgByUnencryptedVersion ()
void urlClicked (const KUrl &url, int button)

Public Member Functions

 KMReaderWin (QWidget *parent, QWidget *mainWindow, KActionCollection *actionCollection, Qt::WindowFlags f=0)
virtual ~KMReaderWin ()
KAction * addAddrBookAction ()
KAction * addBookmarksAction ()
bool atBottom () const
void atmViewMsg (KMMessagePart *msgPart, int nodeId)
const KMail::AttachmentStrategy * attachmentStrategy () const
bool autoDelete (void) const
KMail::Interface::BodyPartMemento * bodyPartMemento (const partNode *node, const QByteArray &which) const
void clear (bool force=false)
KAction * copyAction ()
QString copyText ()
KAction * copyURLAction ()
KMail::CSSHelper * cssHelper () const
bool decryptMessage () const
void displayAboutPage ()
void displayBusyPage ()
void displayOfflinePage ()
void displaySplashPage (const QString &info)
void emitPopupMenu (const KUrl &url, const QPoint &p)
void emitUrlClicked (const KUrl &url, int button)
void enableMsgDisplay ()
DOM::HTMLElement getHTMLElementById (const QString &id)
const KMail::HeaderStrategy * headerStrategy () const
const KMail::HeaderStyle * headerStyle () const
bool htmlLoadExternal ()
bool htmlLoadExtOverride () const
bool htmlMail ()
bool htmlOverride () const
KHTMLPart * htmlPart () const
KMail::HtmlWriter * htmlWriter ()
bool isFixedFont ()
KAction * mailToComposeAction ()
KAction * mailToForwardAction ()
KAction * mailToReplyAction ()
QWidget * mainWindow ()
KMMessage * message (KMFolder **folder=0) const
void objectTreeToDecryptedMsg (partNode *node, QByteArray &resultingData, KMMessage &theMessage, bool weAreReplacingTheRootNode=false, int recCount=0)
KAction * openAddrBookAction ()
void openAttachment (int id, const QString &name)
const QTextCodec * overrideCodec () const
QString overrideEncoding () const
partNode * partNodeForId (int id)
partNode * partNodeFromUrl (const KUrl &url)
void prepareHandleAttachment (int id, const QString &fileName)
virtual void printMsg (KMMessage *aMsg)
void readConfig ()
void saveAttachment (const KUrl &tempFileName)
void saveRelativePosition ()
void scrollToAttachment (const partNode *node)
KAction * selectAllAction ()
void setAttachmentStrategy (const KMail::AttachmentStrategy *strategy)
void setAutoDelete (bool f)
void setBodyPartMemento (const partNode *node, const QByteArray &which, KMail::Interface::BodyPartMemento *memento)
void setDecryptMessageOverwrite (bool overwrite=true)
void setHeaderStyleAndStrategy (const KMail::HeaderStyle *style, const KMail::HeaderStrategy *strategy)
void setHtmlLoadExtOverride (bool override)
void setHtmlOverride (bool override)
void setIdOfLastViewedMessage (const QString &msgId)
virtual void setMsg (KMMessage *msg, bool force=false)
void setMsgPart (partNode *node)
void setMsgPart (KMMessagePart *aMsgPart, bool aHTML, const QString &aFileName, const QString &pname)
void setOriginalMsg (unsigned long serNumOfOriginalMessage, int nodeIdOffset)
void setOverrideEncoding (const QString &encoding)
virtual void setPrinting (bool enable)
void setShowAttachmentQuicklist (bool showAttachmentQuicklist=true)
void setShowFullCcAddressList (bool showFullCcAddressList=true)
void setShowFullToAddressList (bool showFullToAddressList=true)
void setShowSignatureDetails (bool showDetails=true)
void setUpdateAttachment (bool update=true)
void setUseFixedFont (bool useFixedFont)
void setWaitingForSerNum (unsigned long serNum)
void showAttachmentPopup (int id, const QString &name, const QPoint &p)
bool showAttachmentQuicklist () const
bool showFullCcAddressList () const
bool showFullToAddressList () const
void showHideMimeTree ()
bool showSignatureDetails () const
KUrl tempFileUrlFromPartNode (const partNode *node)
KToggleAction * toggleDisplayModeAction ()
KToggleAction * toggleFixFontAction ()
KAction * toggleMimePartTreeAction ()
void update (bool force=false)
void update (KMail::Interface::Observable *)
KAction * urlOpenAction ()
KAction * urlSaveAsAction ()
void writeConfig (bool withSync=true) const

Static Public Member Functions

static int msgPartFromUrl (const KUrl &url)
static QString newFeaturesMD5 ()

Protected Slots

void slotAllHeaders ()
void slotAtmView (int id, const QString &name)
void slotBriefHeaders ()
void slotCycleAttachmentStrategy ()
void slotCycleHeaderStyles ()
void slotDelayedResize ()
void slotEnterpriseHeaders ()
void slotFancyHeaders ()
void slotHideAttachments ()
void slotIconicAttachments ()
void slotInlineAttachments ()
void slotLongHeaders ()
void slotPrintMsg ()
void slotSmartAttachments ()
void slotStandardHeaders ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *)
QString createTempDir (const QString &param=QString())
void displayMessage ()
virtual bool event (QEvent *e)
bool eventFilter (QObject *obj, QEvent *ev)
virtual void initHtmlWidget (void)
virtual void parseMsg (KMMessage *msg)
int pointsToPixel (int pointSize) const
virtual void removeTempFiles ()
virtual void resizeEvent (QResizeEvent *)
void setStyleDependantFrameWidth ()
void showVCard (KMMessagePart *msgPart)
void styleChange (QStyle &oldStyle)
QString writeMessagePartToTempFile (KMMessagePart *msgPart, int partNumber)
QString writeMsgHeader (KMMessage *aMsg, partNode *vCardNode=0, bool topLevel=false)

Friends

void KMMimePartTree::slotContextMenuRequested (const QPoint &)
void KMMimePartTree::slotItemClicked (QTreeWidgetItem *)
void KMMimePartTree::slotSaveAs ()
void KMMimePartTree::startDrag (Qt::DropActions actions)

Detailed Description

This class implements a "reader window", that is a window used for reading or viewing messages.

Definition at line 90 of file kmreaderwin.h.


Constructor & Destructor Documentation

KMReaderWin::KMReaderWin ( QWidget *  parent,
QWidget *  mainWindow,
KActionCollection *  actionCollection,
Qt::WindowFlags  f = 0 
)

Definition at line 398 of file kmreaderwin.cpp.

KMReaderWin::~KMReaderWin (  )  [virtual]

Definition at line 874 of file kmreaderwin.cpp.


Member Function Documentation

KAction* KMReaderWin::addAddrBookAction (  )  [inline]

Definition at line 260 of file kmreaderwin.h.

KAction* KMReaderWin::addBookmarksAction (  )  [inline]

Definition at line 267 of file kmreaderwin.h.

bool KMReaderWin::atBottom (  )  const

Definition at line 2457 of file kmreaderwin.cpp.

void KMReaderWin::atmViewMsg ( KMMessagePart *  msgPart,
int  nodeId 
)

View message part of type message/RFC822 in extra viewer window.

Parameters:
msgPart the part to display
nodeId the part index of the message part that is displayed

Definition at line 2192 of file kmreaderwin.cpp.

const KMail::AttachmentStrategy* KMReaderWin::attachmentStrategy (  )  const [inline]

Get/set the message attachment strategy.

Definition at line 132 of file kmreaderwin.h.

bool KMReaderWin::autoDelete ( void   )  const [inline]

Get/set auto-delete msg flag.

Definition at line 204 of file kmreaderwin.h.

BodyPartMemento * KMReaderWin::bodyPartMemento ( const partNode *  node,
const QByteArray &  which 
) const

Definition at line 3088 of file kmreaderwin.cpp.

void KMReaderWin::clear ( bool  force = false  )  [inline]

Clear the reader and discard the current message.

Definition at line 188 of file kmreaderwin.h.

void KMReaderWin::clearCache (  )  [slot]

Force update even if message is the same.

Definition at line 1300 of file kmreaderwin.cpp.

void KMReaderWin::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

Some necessary event handling.

Reimplemented from QWidget.

Definition at line 1891 of file kmreaderwin.cpp.

KAction* KMReaderWin::copyAction (  )  [inline]

Definition at line 262 of file kmreaderwin.h.

QString KMReaderWin::copyText (  ) 

Return selected text.

Definition at line 2501 of file kmreaderwin.cpp.

KAction* KMReaderWin::copyURLAction (  )  [inline]

Definition at line 264 of file kmreaderwin.h.

QString KMReaderWin::createTempDir ( const QString &  param = QString()  )  [protected]

Creates a temporary dir for saving attachments, etc.

Will be automatically deleted when another message is viewed.

Parameters:
param Optional part of the directory name.

Definition at line 1770 of file kmreaderwin.cpp.

KMail::CSSHelper * KMReaderWin::cssHelper (  )  const

Definition at line 2836 of file kmreaderwin.cpp.

bool KMReaderWin::decryptMessage (  )  const

Returns whether the message should be decryted.

Definition at line 2841 of file kmreaderwin.cpp.

void KMReaderWin::displayAboutPage (  ) 

Display the about page instead of a message.

Definition at line 1385 of file kmreaderwin.cpp.

void KMReaderWin::displayBusyPage (  ) 

Display the 'please wait' page instead of a message.

Definition at line 1366 of file kmreaderwin.cpp.

void KMReaderWin::displayMessage (  )  [protected]

Feeds the HTML viewer with the contents of the given message.

HTML begin/end parts are written around the message.

Definition at line 1515 of file kmreaderwin.cpp.

void KMReaderWin::displayOfflinePage (  ) 

Display the 'we are currently in offline mode' page instead of a message.

Definition at line 1374 of file kmreaderwin.cpp.

void KMReaderWin::displaySplashPage ( const QString &  info  ) 

Display a generic HTML splash page instead of a message.

Definition at line 1342 of file kmreaderwin.cpp.

void KMReaderWin::emitPopupMenu ( const KUrl &  url,
const QPoint &  p 
) [inline]

Definition at line 305 of file kmreaderwin.h.

void KMReaderWin::emitUrlClicked ( const KUrl &  url,
int  button 
) [inline]

Definition at line 301 of file kmreaderwin.h.

void KMReaderWin::enableMsgDisplay (  ) 

Enable the displaying of messages again after an URL was displayed.

Definition at line 1453 of file kmreaderwin.cpp.

bool KMReaderWin::event ( QEvent *  e  )  [protected, virtual]

Watch for palette changes.

Reimplemented from QWidget.

Definition at line 959 of file kmreaderwin.cpp.

bool KMReaderWin::eventFilter ( QObject *  obj,
QEvent *  ev 
) [protected]

Event filter.

Definition at line 2729 of file kmreaderwin.cpp.

void KMReaderWin::fillCommandInfo ( partNode *  node,
KMMessage **  msg,
int *  nodeId 
) [slot]

Find the node ID and the message of the attachment that should be edited or deleted.

This is used when setOriginalMsg() was called before, in that case we want to operate on the original message instead of our copy.

See also:
setOriginalMsg

Definition at line 2766 of file kmreaderwin.cpp.

DOM::HTMLElement KMReaderWin::getHTMLElementById ( const QString &  id  ) 

Get the HTMLElement with id id.

Definition at line 2885 of file kmreaderwin.cpp.

const KMail::HeaderStrategy* KMReaderWin::headerStrategy (  )  const [inline]

Getthe message header strategy.

Definition at line 127 of file kmreaderwin.h.

const KMail::HeaderStyle* KMReaderWin::headerStyle (  )  const [inline]

Definition at line 118 of file kmreaderwin.h.

bool KMReaderWin::htmlLoadExternal (  ) 

Is loading ext.

references to be supported? Takes into account override

Definition at line 2537 of file kmreaderwin.cpp.

bool KMReaderWin::htmlLoadExtOverride (  )  const [inline]

Override default load external references setting.

Definition at line 212 of file kmreaderwin.h.

bool KMReaderWin::htmlMail (  ) 

Is html mail to be supported? Takes into account override.

Definition at line 2531 of file kmreaderwin.cpp.

bool KMReaderWin::htmlOverride (  )  const [inline]

Override default html mail setting.

Definition at line 208 of file kmreaderwin.h.

KHTMLPart* KMReaderWin::htmlPart (  )  const [inline]

Access to the KHTMLPart used for the viewer.

Use with care!

Definition at line 293 of file kmreaderwin.h.

KMail::HtmlWriter* KMReaderWin::htmlWriter (  )  [inline]

Return the HtmlWriter connected to the KHTMLPart we use.

Definition at line 251 of file kmreaderwin.h.

void KMReaderWin::initHtmlWidget ( void   )  [protected, virtual]

HTML initialization.

Definition at line 1070 of file kmreaderwin.cpp.

bool KMReaderWin::isFixedFont (  )  [inline]

Definition at line 247 of file kmreaderwin.h.

KAction* KMReaderWin::mailToComposeAction (  )  [inline]

Definition at line 257 of file kmreaderwin.h.

KAction* KMReaderWin::mailToForwardAction (  )  [inline]

Definition at line 259 of file kmreaderwin.h.

KAction* KMReaderWin::mailToReplyAction (  )  [inline]

Definition at line 258 of file kmreaderwin.h.

QWidget* KMReaderWin::mainWindow (  )  [inline]

Definition at line 323 of file kmreaderwin.h.

KMMessage * KMReaderWin::message ( KMFolder **  folder = 0  )  const

Returns the current message or 0 if none.

Definition at line 2565 of file kmreaderwin.cpp.

int KMReaderWin::msgPartFromUrl ( const KUrl &  url  )  [static]

Returns id of message part from given URL or -1 if invalid.

Definition at line 1820 of file kmreaderwin.cpp.

QString KMReaderWin::newFeaturesMD5 (  )  [static]

Returns the MD5 hash for the list of new features.

Definition at line 1330 of file kmreaderwin.cpp.

void KMReaderWin::noDrag ( void   )  [signal]

Pgp displays a password dialog.

void KMReaderWin::objectTreeToDecryptedMsg ( partNode *  node,
QByteArray &  resultingData,
KMMessage &  theMessage,
bool  weAreReplacingTheRootNode = false,
int  recCount = 0 
)

Definition at line 170 of file kmreaderwin.cpp.

KAction* KMReaderWin::openAddrBookAction (  )  [inline]

Definition at line 261 of file kmreaderwin.h.

void KMReaderWin::openAttachment ( int  id,
const QString &  name 
)

Definition at line 2357 of file kmreaderwin.cpp.

const QTextCodec * KMReaderWin::overrideCodec (  )  const

Get codec corresponding to the currently selected override character encoding.

Returns:
The override codec or 0 if auto-detection is selected.

Definition at line 1172 of file kmreaderwin.cpp.

QString KMReaderWin::overrideEncoding (  )  const [inline]

Get selected override character encoding.

Returns:
The encoding selected by the user or an empty string if auto-detection is selected.

Definition at line 140 of file kmreaderwin.h.

void KMReaderWin::parseMsg ( KMMessage *  msg  )  [protected, virtual]

Parse given message and add it's contents to the reader window.

Definition at line 1557 of file kmreaderwin.cpp.

partNode * KMReaderWin::partNodeForId ( int  id  ) 

Definition at line 2678 of file kmreaderwin.cpp.

partNode * KMReaderWin::partNodeFromUrl ( const KUrl &  url  ) 

Returns message part from given URL or null if invalid.

Definition at line 2674 of file kmreaderwin.cpp.

int KMReaderWin::pointsToPixel ( int  pointSize  )  const [protected]

Calculate the pixel size.

Definition at line 1497 of file kmreaderwin.cpp.

void KMReaderWin::popupMenu ( KMMessage &  msg,
const KUrl &  url,
const QPoint &  mousePos 
) [signal]

The user presses the right mouse button.

'url' may be 0.

void KMReaderWin::prepareHandleAttachment ( int  id,
const QString &  fileName 
)

Sets the current attachment ID and the current attachment temporary filename to the given values.

Call this so that slotHandleAttachment() knows which attachment to handle.

Definition at line 2018 of file kmreaderwin.cpp.

void KMReaderWin::printMsg ( KMMessage *  aMsg  )  [virtual]

Print message.

Definition at line 1802 of file kmreaderwin.cpp.

void KMReaderWin::readConfig ( void   ) 

Read settings from app's config file.

Definition at line 975 of file kmreaderwin.cpp.

void KMReaderWin::removeTempFiles (  )  [protected, virtual]

Cleanup the attachment temp files.

Definition at line 941 of file kmreaderwin.cpp.

void KMReaderWin::replaceMsgByUnencryptedVersion (  )  [signal]

Emitted after parsing of a message to have it stored in unencrypted state in it's folder.

void KMReaderWin::resizeEvent ( QResizeEvent *   )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 1836 of file kmreaderwin.cpp.

void KMReaderWin::saveAttachment ( const KUrl &  tempFileName  ) 

Definition at line 2710 of file kmreaderwin.cpp.

void KMReaderWin::saveRelativePosition (  ) 

Saves the relative position of the scroll view.

Call this before calling update() if you want to preserve the current view.

Definition at line 2544 of file kmreaderwin.cpp.

void KMReaderWin::scrollToAttachment ( const partNode *  node  ) 

Scrolls to the given attachment and marks it with a yellow border.

Definition at line 2848 of file kmreaderwin.cpp.

void KMReaderWin::selectAll (  )  [slot]

Select message body.

Definition at line 2495 of file kmreaderwin.cpp.

KAction* KMReaderWin::selectAllAction (  )  [inline]

Definition at line 263 of file kmreaderwin.h.

void KMReaderWin::setAttachmentStrategy ( const KMail::AttachmentStrategy *  strategy  ) 

Definition at line 1127 of file kmreaderwin.cpp.

void KMReaderWin::setAutoDelete ( bool  f  )  [inline]

Definition at line 205 of file kmreaderwin.h.

void KMReaderWin::setBodyPartMemento ( const partNode *  node,
const QByteArray &  which,
KMail::Interface::BodyPartMemento *  memento 
)

Definition at line 3056 of file kmreaderwin.cpp.

void KMReaderWin::setDecryptMessageOverwrite ( bool  overwrite = true  )  [inline]

Enforce message decryption.

Definition at line 329 of file kmreaderwin.h.

void KMReaderWin::setHeaderStyleAndStrategy ( const KMail::HeaderStyle *  style,
const KMail::HeaderStrategy *  strategy 
)

Set the header style and strategy.

We only want them to be set together.

Definition at line 1132 of file kmreaderwin.cpp.

void KMReaderWin::setHtmlLoadExtOverride ( bool  override  ) 

Definition at line 2525 of file kmreaderwin.cpp.

void KMReaderWin::setHtmlOverride ( bool  override  ) 

Definition at line 2513 of file kmreaderwin.cpp.

void KMReaderWin::setIdOfLastViewedMessage ( const QString &  msgId  )  [inline]

Store message id of last viewed message, normally no need to call this function directly, since correct value is set automatically in parseMsg(KMMessage* aMsg, bool onlyProcessHeaders).

Definition at line 184 of file kmreaderwin.h.

void KMReaderWin::setMsg ( KMMessage *  msg,
bool  force = false 
) [virtual]

Set the message that shall be shown.

If msg is 0, an empty page is displayed.

Definition at line 1209 of file kmreaderwin.cpp.

void KMReaderWin::setMsgPart ( partNode *  node  ) 

Definition at line 2209 of file kmreaderwin.cpp.

void KMReaderWin::setMsgPart ( KMMessagePart *  aMsgPart,
bool  aHTML,
const QString &  aFileName,
const QString &  pname 
)

Instead of settings a message to be shown sets a message part to be shown.

Definition at line 2225 of file kmreaderwin.cpp.

void KMReaderWin::setOriginalMsg ( unsigned long  serNumOfOriginalMessage,
int  nodeIdOffset 
)

This should be called when setting a message that was constructed from another message, which is the case when viewing encapsulated messages in the separate reader window.

We need to know the serial number of the original message, and at which part index the encapsulated message was at that original message, so that deleting and editing attachments can work on the original message.

This is a HACK. There really shouldn't be a copy of the original mail.

See also:
slotDeleteAttachment, slotEditAttachment, fillCommandInfo

Definition at line 1202 of file kmreaderwin.cpp.

void KMReaderWin::setOverrideEncoding ( const QString &  encoding  ) 

Set the override character encoding.

Definition at line 1140 of file kmreaderwin.cpp.

virtual void KMReaderWin::setPrinting ( bool  enable  )  [inline, virtual]

Set printing mode.

Definition at line 150 of file kmreaderwin.h.

void KMReaderWin::setShowAttachmentQuicklist ( bool  showAttachmentQuicklist = true  )  [inline]

Definition at line 343 of file kmreaderwin.h.

void KMReaderWin::setShowFullCcAddressList ( bool  showFullCcAddressList = true  ) 

Show or hide the full list of "To" addresses.

Definition at line 3127 of file kmreaderwin.cpp.

void KMReaderWin::setShowFullToAddressList ( bool  showFullToAddressList = true  ) 

Show or hide the full list of "To" addresses.

Definition at line 3117 of file kmreaderwin.cpp.

void KMReaderWin::setShowSignatureDetails ( bool  showDetails = true  )  [inline]

Show signature details.

Definition at line 335 of file kmreaderwin.h.

void KMReaderWin::setStyleDependantFrameWidth (  )  [protected]

Set the width of the frame to a reasonable value for the current GUI style.

Definition at line 2091 of file kmreaderwin.cpp.

void KMReaderWin::setUpdateAttachment ( bool  update = true  )  [inline]

Definition at line 289 of file kmreaderwin.h.

void KMReaderWin::setUseFixedFont ( bool  useFixedFont  ) 

Definition at line 716 of file kmreaderwin.cpp.

void KMReaderWin::setWaitingForSerNum ( unsigned long  serNum  )  [inline]

Set the serial number of the message this reader window is currently waiting for.

Used to discard updates for already deselected messages.

Definition at line 321 of file kmreaderwin.h.

void KMReaderWin::showAttachmentPopup ( int  id,
const QString &  name,
const QPoint &  p 
)

Definition at line 2025 of file kmreaderwin.cpp.

bool KMReaderWin::showAttachmentQuicklist (  )  const [inline]

Definition at line 340 of file kmreaderwin.h.

bool KMReaderWin::showFullCcAddressList (  )  const

Return weather to show or hide the full list of "To" addresses.

Definition at line 3122 of file kmreaderwin.cpp.

bool KMReaderWin::showFullToAddressList (  )  const

Return weather to show or hide the full list of "To" addresses.

Definition at line 3112 of file kmreaderwin.cpp.

void KMReaderWin::showHideMimeTree (  ) 

Show or hide the Mime Tree Viewer if configuration is set to smart mode.

Definition at line 1503 of file kmreaderwin.cpp.

bool KMReaderWin::showSignatureDetails (  )  const [inline]

Show signature details.

Definition at line 332 of file kmreaderwin.h.

void KMReaderWin::showVCard ( KMMessagePart *  msgPart  )  [protected]

show window containing information about a vCard.

Definition at line 1793 of file kmreaderwin.cpp.

void KMReaderWin::slotAddBookmarks (  )  [slot]

Definition at line 2652 of file kmreaderwin.cpp.

void KMReaderWin::slotAllHeaders (  )  [protected, slot]

Definition at line 803 of file kmreaderwin.cpp.

void KMReaderWin::slotAtmView ( int  id,
const QString &  name 
) [protected, slot]

Some attachment operations.

Definition at line 2327 of file kmreaderwin.cpp.

void KMReaderWin::slotBriefHeaders (  )  [protected, slot]

Definition at line 783 of file kmreaderwin.cpp.

void KMReaderWin::slotCopySelectedText (  )  [slot]

Copy the selected text to the clipboard.

Definition at line 2183 of file kmreaderwin.cpp.

void KMReaderWin::slotCycleAttachmentStrategy (  )  [protected, slot]

Definition at line 865 of file kmreaderwin.cpp.

void KMReaderWin::slotCycleHeaderStyles (  )  [protected, slot]

Definition at line 816 of file kmreaderwin.cpp.

void KMReaderWin::slotDelayedResize (  )  [protected, slot]

Definition at line 1850 of file kmreaderwin.cpp.

void KMReaderWin::slotDeleteAttachment ( partNode *  node  )  [slot]

Definition at line 2790 of file kmreaderwin.cpp.

void KMReaderWin::slotDocumentChanged (  )  [slot]

Definition at line 2482 of file kmreaderwin.cpp.

void KMReaderWin::slotDocumentDone (  )  [slot]

Definition at line 2508 of file kmreaderwin.cpp.

void KMReaderWin::slotEditAttachment ( partNode *  node  )  [slot]

Definition at line 2815 of file kmreaderwin.cpp.

void KMReaderWin::slotEnterpriseHeaders (  )  [protected, slot]

Definition at line 769 of file kmreaderwin.cpp.

void KMReaderWin::slotFancyHeaders (  )  [protected, slot]

Definition at line 776 of file kmreaderwin.cpp.

void KMReaderWin::slotFind (  )  [slot]

The user selected "Find" from the menu.

Definition at line 2160 of file kmreaderwin.cpp.

void KMReaderWin::slotHandleAttachment ( int  action  )  [slot]

Does an action for the current attachment.

The action is defined by the KMHandleAttachmentCommand::AttachmentAction enum. prepareHandleAttachment() needs to be called before calling this to set the correct attachment ID.

Definition at line 2117 of file kmreaderwin.cpp.

void KMReaderWin::slotHideAttachments (  )  [protected, slot]

Definition at line 861 of file kmreaderwin.cpp.

void KMReaderWin::slotIconicAttachments (  )  [protected, slot]

Definition at line 849 of file kmreaderwin.cpp.

void KMReaderWin::slotInlineAttachments (  )  [protected, slot]

Definition at line 857 of file kmreaderwin.cpp.

void KMReaderWin::slotJumpDown (  )  [slot]

Definition at line 2464 of file kmreaderwin.cpp.

void KMReaderWin::slotLevelQuote ( int  l  )  [slot]

Definition at line 810 of file kmreaderwin.cpp.

void KMReaderWin::slotLongHeaders (  )  [protected, slot]

Definition at line 796 of file kmreaderwin.cpp.

void KMReaderWin::slotMailtoAddAddrBook (  )  [slot]

Definition at line 2616 of file kmreaderwin.cpp.

void KMReaderWin::slotMailtoCompose (  )  [slot]

Definition at line 2601 of file kmreaderwin.cpp.

void KMReaderWin::slotMailtoForward (  )  [slot]

Definition at line 2608 of file kmreaderwin.cpp.

void KMReaderWin::slotMailtoOpenAddrBook (  )  [slot]

Definition at line 2624 of file kmreaderwin.cpp.

void KMReaderWin::slotMailtoReply (  )  [slot]

Operations on mailto: URLs.

Definition at line 2666 of file kmreaderwin.cpp.

void KMReaderWin::slotMessageArrived ( KMMessage *  msg  )  [slot]

Definition at line 886 of file kmreaderwin.cpp.

void KMReaderWin::slotPrintMsg (  )  [protected, slot]

Print message.

Called on as a response of finished() signal of mPartHtmlWriter after rendering is finished. In the very end it deletes the KMReaderWin window that was created for the purpose of rendering.

Definition at line 1810 of file kmreaderwin.cpp.

void KMReaderWin::slotSaveAttachments (  )  [slot]

Definition at line 2701 of file kmreaderwin.cpp.

void KMReaderWin::slotSaveMsg (  )  [slot]

Definition at line 2718 of file kmreaderwin.cpp.

void KMReaderWin::slotScrollDown (  )  [slot]

Definition at line 2452 of file kmreaderwin.cpp.

void KMReaderWin::slotScrollNext (  )  [slot]

Definition at line 2476 of file kmreaderwin.cpp.

void KMReaderWin::slotScrollPrior (  )  [slot]

Definition at line 2470 of file kmreaderwin.cpp.

void KMReaderWin::slotScrollUp (  )  [slot]

HTML Widget scrollbar and layout handling.

Definition at line 2445 of file kmreaderwin.cpp.

void KMReaderWin::slotSmartAttachments (  )  [protected, slot]

Definition at line 853 of file kmreaderwin.cpp.

void KMReaderWin::slotStandardHeaders (  )  [protected, slot]

Definition at line 790 of file kmreaderwin.cpp.

void KMReaderWin::slotTextSelected ( bool   )  [slot]

Definition at line 2488 of file kmreaderwin.cpp.

void KMReaderWin::slotToggleFixedFont (  )  [slot]

The user toggled the "Fixed Font" flag from the view menu.

Definition at line 2166 of file kmreaderwin.cpp.

void KMReaderWin::slotToggleHtmlMode (  )  [slot]

Toggle display mode between HTML and plain text.

Definition at line 2153 of file kmreaderwin.cpp.

void KMReaderWin::slotToggleMimePartTree (  )  [slot]

Definition at line 2173 of file kmreaderwin.cpp.

void KMReaderWin::slotTouchMessage (  )  [slot]

Definition at line 1857 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlClicked (  )  [slot]

Definition at line 2587 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlCopy (  )  [slot]

Copy URL in mUrlCurrent to clipboard.

Removes "mailto:" at beginning of URL before copying.

Definition at line 2632 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlOn ( const QString &  url  )  [slot]

The mouse has moved on or off an URL.

Definition at line 1942 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlOpen ( const KUrl &  url = KUrl()  )  [slot]

Definition at line 2643 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlOpen ( const KUrl &  url,
const KParts::OpenUrlArguments &  ,
const KParts::BrowserArguments &   
) [slot]

An URL has been activate with a click.

Definition at line 1971 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlPopup ( const QString &  aUrl,
const QPoint &  mousePos 
) [slot]

The user presses the right mouse button on an URL.

Definition at line 1983 of file kmreaderwin.cpp.

void KMReaderWin::slotUrlSave (  )  [slot]

Save the page to a file.

Definition at line 2659 of file kmreaderwin.cpp.

void KMReaderWin::styleChange ( QStyle &  oldStyle  )  [protected]

reimplemented in order to update the frame width in case of a changed GUI style

Definition at line 2110 of file kmreaderwin.cpp.

KUrl KMReaderWin::tempFileUrlFromPartNode ( const partNode *  node  ) 

Definition at line 2683 of file kmreaderwin.cpp.

KToggleAction* KMReaderWin::toggleDisplayModeAction (  )  [inline]

Definition at line 256 of file kmreaderwin.h.

KToggleAction* KMReaderWin::toggleFixFontAction (  )  [inline]

Definition at line 255 of file kmreaderwin.h.

KAction* KMReaderWin::toggleMimePartTreeAction (  )  [inline]

Definition at line 268 of file kmreaderwin.h.

void KMReaderWin::update ( bool  force = false  ) 

Re-parse the current message.

Definition at line 2555 of file kmreaderwin.cpp.

void KMReaderWin::update ( KMail::Interface::Observable *  observable  )  [virtual]
Reimplemented from superclass. from Interface::Observer
Updates the current message

Implements KMail::Interface::Observer.

Definition at line 898 of file kmreaderwin.cpp.

void KMReaderWin::updateReaderWin (  )  [slot]

Refresh the reader window.

Definition at line 1461 of file kmreaderwin.cpp.

void KMReaderWin::urlClicked ( const KUrl &  url,
int  button 
) [signal]

The user has clicked onto an URL that is no attachment.

KAction* KMReaderWin::urlOpenAction (  )  [inline]

Definition at line 265 of file kmreaderwin.h.

KAction* KMReaderWin::urlSaveAsAction (  )  [inline]

Definition at line 266 of file kmreaderwin.h.

void KMReaderWin::writeConfig ( bool  withSync = true  )  const

Write settings to app's config file.

Calls sync() if withSync is true.

Definition at line 1054 of file kmreaderwin.cpp.

QString KMReaderWin::writeMessagePartToTempFile ( KMMessagePart *  msgPart,
int  partNumber 
) [protected]

Writes the given message part to a temporary file and returns the name of this file or QString() if writing failed.

Definition at line 1725 of file kmreaderwin.cpp.

QString KMReaderWin::writeMsgHeader ( KMMessage *  aMsg,
partNode *  vCardNode = 0,
bool  topLevel = false 
) [protected]

Creates a nice mail header depending on the current selected header style.

Definition at line 1709 of file kmreaderwin.cpp.


Friends And Related Function Documentation

void KMMimePartTree::slotContextMenuRequested ( const QPoint &   )  [friend]
void KMMimePartTree::slotItemClicked ( QTreeWidgetItem *   )  [friend]
void KMMimePartTree::slotSaveAs (  )  [friend]
void KMMimePartTree::startDrag ( Qt::DropActions  actions  )  [friend]

The documentation for this class was generated from the following files:
  • kmreaderwin.h
  • kmreaderwin.cpp

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
  •   akonadi_next
  •   clients
  •   kcal
  •   kcm
  •       libmaildir
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
Generated for kdepim by doxygen 1.5.9-20090814
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