kmail
KMReaderWin Class Reference
This class implements a "reader window", that is a window used for reading or viewing messages. More...
#include <kmreaderwin.h>
Detailed Description
This class implements a "reader window", that is a window used for reading or viewing messages.Definition at line 73 of file kmreaderwin.h.
Constructor & Destructor Documentation
KMReaderWin::KMReaderWin | ( | QWidget * | parent, | |
QWidget * | mainWindow, | |||
KActionCollection * | actionCollection, | |||
const char * | name = 0 , |
|||
int | f = 0 | |||
) |
Definition at line 485 of file kmreaderwin.cpp.
KMReaderWin::~KMReaderWin | ( | ) | [virtual] |
Definition at line 832 of file kmreaderwin.cpp.
Member Function Documentation
KAction* KMReaderWin::addAddrBookAction | ( | ) | [inline] |
Definition at line 230 of file kmreaderwin.h.
KAction* KMReaderWin::addBookmarksAction | ( | ) | [inline] |
Definition at line 237 of file kmreaderwin.h.
bool KMReaderWin::atBottom | ( | ) | const |
Definition at line 2325 of file kmreaderwin.cpp.
void KMReaderWin::atmViewMsg | ( | KMMessagePart * | msgPart | ) |
View message part of type message/RFC822 in extra viewer window.
Definition at line 2067 of file kmreaderwin.cpp.
const KMail::AttachmentStrategy* KMReaderWin::attachmentStrategy | ( | ) | const [inline] |
bool KMReaderWin::autoDelete | ( | void | ) | const [inline] |
void KMReaderWin::clear | ( | bool | force = false |
) | [inline] |
void KMReaderWin::clearCache | ( | ) | [slot] |
void KMReaderWin::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
Some necessary event handling.
Reimplemented from QWidget.
Definition at line 1859 of file kmreaderwin.cpp.
void KMReaderWin::contactStatusChanged | ( | const QString & | uid | ) | [slot] |
Definition at line 1080 of file kmreaderwin.cpp.
KAction* KMReaderWin::copyAction | ( | ) | [inline] |
Definition at line 232 of file kmreaderwin.h.
QString KMReaderWin::copyText | ( | ) |
KAction* KMReaderWin::copyURLAction | ( | ) | [inline] |
Definition at line 234 of file kmreaderwin.h.
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 1746 of file kmreaderwin.cpp.
KMail::CSSHelper * KMReaderWin::cssHelper | ( | ) | [slot] |
Definition at line 2646 of file kmreaderwin.cpp.
bool KMReaderWin::decryptMessage | ( | ) | const |
void KMReaderWin::displayAboutPage | ( | ) |
void KMReaderWin::displayBusyPage | ( | ) |
Display the 'please wait' page instead of a message.
Definition at line 1343 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 1491 of file kmreaderwin.cpp.
void KMReaderWin::displayOfflinePage | ( | ) |
Display the 'we are currently in offline mode' page instead of a message.
Definition at line 1351 of file kmreaderwin.cpp.
void KMReaderWin::displaySplashPage | ( | const QString & | info | ) |
Display a generic HTML splash page instead of a message.
Definition at line 1320 of file kmreaderwin.cpp.
void KMReaderWin::emitPopupMenu | ( | const KURL & | url, | |
const QPoint & | p | |||
) | [inline] |
Definition at line 274 of file kmreaderwin.h.
void KMReaderWin::emitUrlClicked | ( | const KURL & | url, | |
int | button | |||
) | [inline] |
Definition at line 270 of file kmreaderwin.h.
void KMReaderWin::enableMsgDisplay | ( | ) |
Enable the displaying of messages again after an URL was displayed.
Definition at line 1426 of file kmreaderwin.cpp.
bool KMReaderWin::event | ( | QEvent * | e | ) | [protected, virtual] |
Watch for palette changes.
Reimplemented from QWidget.
Definition at line 915 of file kmreaderwin.cpp.
const KMail::HeaderStrategy* KMReaderWin::headerStrategy | ( | ) | const [inline] |
const KMail::HeaderStyle* KMReaderWin::headerStyle | ( | ) | const [inline] |
Definition at line 104 of file kmreaderwin.h.
bool KMReaderWin::htmlLoadExternal | ( | ) |
Is loading ext.
references to be supported? Takes into account override
Definition at line 2413 of file kmreaderwin.cpp.
bool KMReaderWin::htmlLoadExtOverride | ( | ) | const [inline] |
bool KMReaderWin::htmlMail | ( | ) |
Is html mail to be supported? Takes into account override.
Definition at line 2406 of file kmreaderwin.cpp.
bool KMReaderWin::htmlOverride | ( | ) | const [inline] |
KHTMLPart* KMReaderWin::htmlPart | ( | ) | const [inline] |
Access to the KHTMLPart used for the viewer.
Use with care!
Definition at line 263 of file kmreaderwin.h.
KMail::HtmlWriter* KMReaderWin::htmlWriter | ( | ) | [inline] |
Return the HtmlWriter connected to the KHTMLPart we use.
Definition at line 222 of file kmreaderwin.h.
void KMReaderWin::initHtmlWidget | ( | void | ) | [protected, virtual] |
bool KMReaderWin::isFixedFont | ( | ) | [inline] |
Definition at line 218 of file kmreaderwin.h.
KAction* KMReaderWin::mailToComposeAction | ( | ) | [inline] |
Definition at line 227 of file kmreaderwin.h.
KAction* KMReaderWin::mailToForwardAction | ( | ) | [inline] |
Definition at line 229 of file kmreaderwin.h.
KAction* KMReaderWin::mailToReplyAction | ( | ) | [inline] |
Definition at line 228 of file kmreaderwin.h.
QWidget* KMReaderWin::mainWindow | ( | ) | [inline] |
Definition at line 285 of file kmreaderwin.h.
int KMReaderWin::msgPartFromUrl | ( | const KURL & | url | ) | [static] |
Returns id of message part from given URL or -1 if invalid.
Definition at line 1782 of file kmreaderwin.cpp.
QString KMReaderWin::newFeaturesMD5 | ( | ) | [static] |
void KMReaderWin::noDrag | ( | void | ) | [signal] |
Pgp displays a password dialog.
void KMReaderWin::objectTreeToDecryptedMsg | ( | partNode * | node, | |
NewByteArray & | resultingData, | |||
KMMessage & | theMessage, | |||
bool | weAreReplacingTheRootNode = false , |
|||
int | recCount = 0 | |||
) |
Definition at line 202 of file kmreaderwin.cpp.
KAction* KMReaderWin::openAddrBookAction | ( | ) | [inline] |
Definition at line 231 of file kmreaderwin.h.
void KMReaderWin::openAttachment | ( | int | id, | |
const QString & | name | |||
) |
Definition at line 2224 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 1151 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 126 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 1527 of file kmreaderwin.cpp.
partNode * KMReaderWin::partNodeForId | ( | int | id | ) |
Definition at line 2553 of file kmreaderwin.cpp.
partNode * KMReaderWin::partNodeFromUrl | ( | const KURL & | url | ) |
Returns message part from given URL or null if invalid.
Definition at line 2549 of file kmreaderwin.cpp.
int KMReaderWin::pointsToPixel | ( | int | pointSize | ) | const [protected] |
The user presses the right mouse button.
'url' may be 0.
void KMReaderWin::printMsg | ( | void | ) | [virtual] |
void KMReaderWin::readConfig | ( | void | ) |
void KMReaderWin::removeTempFiles | ( | ) | [protected, virtual] |
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] |
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 2421 of file kmreaderwin.cpp.
void KMReaderWin::selectAll | ( | ) | [slot] |
KAction* KMReaderWin::selectAllAction | ( | ) | [inline] |
Definition at line 233 of file kmreaderwin.h.
void KMReaderWin::setAttachmentStrategy | ( | const KMail::AttachmentStrategy * | strategy | ) |
Definition at line 1099 of file kmreaderwin.cpp.
void KMReaderWin::setAutoDelete | ( | bool | f | ) | [inline] |
Definition at line 180 of file kmreaderwin.h.
void KMReaderWin::setDecryptMessageOverwrite | ( | bool | overwrite = true |
) | [inline] |
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 1104 of file kmreaderwin.cpp.
void KMReaderWin::setHtmlLoadExtOverride | ( | bool | override | ) |
Definition at line 2397 of file kmreaderwin.cpp.
void KMReaderWin::setHtmlOverride | ( | bool | override | ) |
Definition at line 2388 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 159 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 1182 of file kmreaderwin.cpp.
void KMReaderWin::setMsgPart | ( | partNode * | node | ) |
Definition at line 2084 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 2100 of file kmreaderwin.cpp.
void KMReaderWin::setOverrideEncoding | ( | const QString & | encoding | ) |
void KMReaderWin::setPrintFont | ( | const QFont & | font | ) |
Definition at line 1144 of file kmreaderwin.cpp.
virtual void KMReaderWin::setPrinting | ( | bool | enable | ) | [inline, virtual] |
void KMReaderWin::setShowAttachmentQuicklist | ( | bool | showAttachmentQuicklist = true |
) | [inline] |
Definition at line 303 of file kmreaderwin.h.
void KMReaderWin::setShowSignatureDetails | ( | bool | showDetails = true |
) | [inline] |
void KMReaderWin::setStyleDependantFrameWidth | ( | ) | [protected] |
Set the width of the frame to a reasonable value for the current GUI style.
Definition at line 1986 of file kmreaderwin.cpp.
void KMReaderWin::setUpdateAttachment | ( | bool | update = true |
) | [inline] |
Definition at line 259 of file kmreaderwin.h.
void KMReaderWin::setUseFixedFont | ( | bool | useFixedFont | ) | [inline] |
Definition at line 219 of file kmreaderwin.h.
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 283 of file kmreaderwin.h.
Definition at line 1962 of file kmreaderwin.cpp.
bool KMReaderWin::showAttachmentQuicklist | ( | ) | const [inline] |
Definition at line 300 of file kmreaderwin.h.
void KMReaderWin::showHideMimeTree | ( | bool | isPlainTextTopLevel | ) |
Show or hide the Mime Tree Viewer if configuration is set to smart mode.
Definition at line 1479 of file kmreaderwin.cpp.
bool KMReaderWin::showSignatureDetails | ( | ) | const [inline] |
void KMReaderWin::showVCard | ( | KMMessagePart * | msgPart | ) | [protected] |
void KMReaderWin::slotAddBookmarks | ( | ) | [slot] |
Definition at line 2527 of file kmreaderwin.cpp.
void KMReaderWin::slotAllHeaders | ( | ) | [protected, slot] |
Definition at line 760 of file kmreaderwin.cpp.
void KMReaderWin::slotAtmView | ( | int | id, | |
const QString & | name | |||
) | [protected, slot] |
void KMReaderWin::slotBriefHeaders | ( | ) | [protected, slot] |
Definition at line 745 of file kmreaderwin.cpp.
void KMReaderWin::slotCopySelectedText | ( | ) | [slot] |
void KMReaderWin::slotCycleAttachmentStrategy | ( | ) | [protected, slot] |
Definition at line 823 of file kmreaderwin.cpp.
void KMReaderWin::slotCycleHeaderStyles | ( | ) | [protected, slot] |
Definition at line 774 of file kmreaderwin.cpp.
void KMReaderWin::slotDelayedResize | ( | ) | [protected, slot] |
Definition at line 1818 of file kmreaderwin.cpp.
void KMReaderWin::slotDeleteAttachment | ( | partNode * | node | ) | [slot] |
Definition at line 2622 of file kmreaderwin.cpp.
void KMReaderWin::slotDocumentChanged | ( | ) | [slot] |
Definition at line 2353 of file kmreaderwin.cpp.
void KMReaderWin::slotDocumentDone | ( | ) | [slot] |
Definition at line 2381 of file kmreaderwin.cpp.
void KMReaderWin::slotEditAttachment | ( | partNode * | node | ) | [slot] |
Definition at line 2634 of file kmreaderwin.cpp.
void KMReaderWin::slotEnterpriseHeaders | ( | ) | [protected, slot] |
Definition at line 735 of file kmreaderwin.cpp.
void KMReaderWin::slotFancyHeaders | ( | ) | [protected, slot] |
Definition at line 740 of file kmreaderwin.cpp.
void KMReaderWin::slotFind | ( | ) | [slot] |
void KMReaderWin::slotFindNext | ( | ) | [slot] |
void KMReaderWin::slotHandleAttachment | ( | int | choice | ) | [protected, slot] |
Definition at line 2010 of file kmreaderwin.cpp.
void KMReaderWin::slotHideAttachments | ( | ) | [protected, slot] |
Definition at line 819 of file kmreaderwin.cpp.
void KMReaderWin::slotIconicAttachments | ( | ) | [protected, slot] |
Definition at line 807 of file kmreaderwin.cpp.
void KMReaderWin::slotIMChat | ( | ) | [slot] |
void KMReaderWin::slotInlineAttachments | ( | ) | [protected, slot] |
Definition at line 815 of file kmreaderwin.cpp.
void KMReaderWin::slotJumpDown | ( | ) | [slot] |
Definition at line 2332 of file kmreaderwin.cpp.
void KMReaderWin::slotLevelQuote | ( | int | l | ) | [slot] |
Definition at line 765 of file kmreaderwin.cpp.
void KMReaderWin::slotLongHeaders | ( | ) | [protected, slot] |
Definition at line 755 of file kmreaderwin.cpp.
void KMReaderWin::slotMailtoAddAddrBook | ( | ) | [slot] |
Definition at line 2491 of file kmreaderwin.cpp.
void KMReaderWin::slotMailtoCompose | ( | ) | [slot] |
Definition at line 2476 of file kmreaderwin.cpp.
void KMReaderWin::slotMailtoForward | ( | ) | [slot] |
Definition at line 2483 of file kmreaderwin.cpp.
void KMReaderWin::slotMailtoOpenAddrBook | ( | ) | [slot] |
Definition at line 2499 of file kmreaderwin.cpp.
void KMReaderWin::slotMailtoReply | ( | ) | [slot] |
void KMReaderWin::slotMessageArrived | ( | KMMessage * | msg | ) | [slot] |
Definition at line 843 of file kmreaderwin.cpp.
void KMReaderWin::slotSaveAttachments | ( | ) | [slot] |
Definition at line 2579 of file kmreaderwin.cpp.
void KMReaderWin::slotSaveMsg | ( | ) | [slot] |
Definition at line 2588 of file kmreaderwin.cpp.
void KMReaderWin::slotScrollDown | ( | ) | [slot] |
Definition at line 2320 of file kmreaderwin.cpp.
void KMReaderWin::slotScrollNext | ( | ) | [slot] |
Definition at line 2347 of file kmreaderwin.cpp.
void KMReaderWin::slotScrollPrior | ( | ) | [slot] |
Definition at line 2340 of file kmreaderwin.cpp.
void KMReaderWin::slotScrollUp | ( | ) | [slot] |
void KMReaderWin::slotSmartAttachments | ( | ) | [protected, slot] |
Definition at line 811 of file kmreaderwin.cpp.
void KMReaderWin::slotStandardHeaders | ( | ) | [protected, slot] |
Definition at line 750 of file kmreaderwin.cpp.
void KMReaderWin::slotTextSelected | ( | bool | ) | [slot] |
Definition at line 2360 of file kmreaderwin.cpp.
void KMReaderWin::slotToggleFixedFont | ( | ) | [slot] |
The user toggled the "Fixed Font" flag from the view menu.
Definition at line 2051 of file kmreaderwin.cpp.
void KMReaderWin::slotTouchMessage | ( | ) | [slot] |
Definition at line 1825 of file kmreaderwin.cpp.
void KMReaderWin::slotUrlClicked | ( | ) | [slot] |
Definition at line 2462 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 2507 of file kmreaderwin.cpp.
void KMReaderWin::slotUrlOn | ( | const QString & | url | ) | [slot] |
void KMReaderWin::slotUrlOpen | ( | const KURL & | url = KURL() |
) | [slot] |
Definition at line 2518 of file kmreaderwin.cpp.
void KMReaderWin::slotUrlOpen | ( | const KURL & | url, | |
const KParts::URLArgs & | args | |||
) | [slot] |
void KMReaderWin::slotUrlSave | ( | ) | [slot] |
KAction* KMReaderWin::startImChatAction | ( | ) | [inline] |
Definition at line 238 of file kmreaderwin.h.
void KMReaderWin::styleChange | ( | QStyle & | oldStyle | ) | [protected] |
reimplemented in order to update the frame width in case of a changed GUI style
Reimplemented from QWidget.
Definition at line 2003 of file kmreaderwin.cpp.
KURL KMReaderWin::tempFileUrlFromPartNode | ( | const partNode * | node | ) |
Definition at line 2558 of file kmreaderwin.cpp.
KToggleAction* KMReaderWin::toggleFixFontAction | ( | ) | [inline] |
Definition at line 226 of file kmreaderwin.h.
void KMReaderWin::update | ( | bool | force = false |
) |
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 855 of file kmreaderwin.cpp.
void KMReaderWin::updateReaderWin | ( | ) | [slot] |
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 235 of file kmreaderwin.h.
KAction* KMReaderWin::urlSaveAsAction | ( | ) | [inline] |
Definition at line 236 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 1024 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::null if writing failed.
Definition at line 1709 of file kmreaderwin.cpp.
QString KMReaderWin::writeMsgHeader | ( | KMMessage * | aMsg, | |
bool | hasVCard = false , |
|||
bool | topLevel = false | |||
) | [protected] |
Creates a nice mail header depending on the current selected header style.
Definition at line 1693 of file kmreaderwin.cpp.
Friends And Related Function Documentation
void KMMimePartTree::itemClicked | ( | QListViewItem * | item | ) | [friend] |
void KMMimePartTree::itemRightClicked | ( | QListViewItem * | item, | |
const QPoint & | ||||
) | [friend] |
void KMMimePartTree::slotSaveAs | ( | ) | [friend] |
void KMMimePartTree::startDrag | ( | ) | [friend] |
The documentation for this class was generated from the following files: