messageviewer
viewer_p.h
Go to the documentation of this file.
286 void createOpenWithMenu( KMenu *topMenu, const QString &contentTypeStr, bool fromCurrentContent );
343 void setMessageItem(const Akonadi::Item& item, Viewer::UpdateMode updateMode = Viewer::Delayed );
350 void setMessage( const KMime::Message::Ptr& msg, Viewer::UpdateMode updateMode = Viewer::Delayed );
384 KMime::Content* findContentByType(KMime::Content *content, const QByteArray &type); //TODO(Andras) move to NodeHelper
388 static const QTextCodec* codecForName(const QByteArray& _str); //TODO(Andras) move to a utility class?
473 void slotItemMoved( const Akonadi::Item&, const Akonadi::Collection&, const Akonadi::Collection& );
611 void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint& mousePos);
636 QTreeView* mMimePartTree; //FIXME(Andras) port the functionality from KMMimePartTree to a new view class or to here with signals/slots
650 QString mOldGlobalOverrideEncoding; // used to detect changes of the global override character encoding
665 *mViewSourceAction, *mSaveMessageAction, *mFindInMessageAction, *mSaveMessageDisplayFormat, *mResetMessageDisplayFormat;
bool showFullToAddressList() const
Return weather to show or hide the full list of "To" addresses.
ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollection *actionCollection)
void setZoomFactor(qreal zoomFactor)
void setShowSignatureDetails(bool showDetails=true)
Show signature details.
void setOverrideEncoding(const QString &encoding)
Set the override character encoding.
void setMessageInternal(const KMime::Message::Ptr message, Viewer::UpdateMode updateMode)
bool deleteAttachment(KMime::Content *node, bool showWarning=true)
Delete the attachment the.
bool mShowFullToAddressList
Definition: viewer_p.h:708
void slotStandardHeaders()
KAction * mScrollDownMoreAction
Definition: viewer_p.h:662
void showHideMimeTree()
Show or hide the Mime Tree Viewer if configuration is set to smart mode.
KToggleAction * actionForAttachmentStrategy(const AttachmentStrategy *)
void changeDisplayMail(Viewer::ForceDisplayTo, bool)
KToggleAction * mCaretBrowsing
Definition: viewer_p.h:671
ScamDetectionWarningWidget * mScamDetectionWarning
Definition: viewer_p.h:716
void writeConfig(bool withSync=true)
Write settings to app's config file.
int mRecursionCountForDisplayMessage
Definition: viewer_p.h:700
Akonadi::Item messageItem() const
Definition: viewer_p.h:244
QString mOldGlobalOverrideEncoding
Definition: viewer_p.h:650
This class encapsulates the visual appearance of message headers.
Definition: headerstyle.h:60
Akonadi::Item::Id mPreviouslyViewedItem
Definition: viewer_p.h:713
KAction * mFindInMessageAction
Definition: viewer_p.h:662
void urlClicked(const Akonadi::Item &msg, const KUrl &url)
void goResourceOnline()
void slotToggleMimePartTree()
HtmlWriter * htmlWriter() const
Return the HtmlWriter connected to the MailWebView we use.
Definition: viewer_p.h:236
QPointer< WebKitPartHtmlWriter > mPartHtmlWriter
Used only to be able to connect and disconnect finished() signal in printMsg() and slotPrintMsg() sin...
Definition: viewer_p.h:690
void slotMimeTreeContextMenuRequested(const QPoint &pos)
bool showFullCcAddressList() const
Return weather to show or hide the full list of "To" addresses.
KService::Ptr getServiceOffer(KMime::Content *content)
float mSavedRelativePosition
Definition: viewer_p.h:692
void slotAttachmentOpenWith()
void slotSaveMessageDisplayFormat()
KAction * mResetMessageDisplayFormat
Definition: viewer_p.h:662
void scrollToAttachment(KMime::Content *node)
void slotOpenBlockableItems()
QString createAtmFileLink(const QString &atmFileName) const
void setMessagePart(KMime::Content *node)
Instead of settings a message to be shown sets a message part to be shown.
int pointsToPixel(int pointSize) const
Calculate the pixel size.
void slotShowMessageSource()
Show the message source.
void setDecryptMessageOverwrite(bool overwrite=true)
Enforce message decryption.
void resetStateForNewMessage()
bool mShowSignatureDetails
Definition: viewer_p.h:695
bool mDecrytMessageOverwrite
Definition: viewer_p.h:694
void setHtmlLoadExtOverride(bool override)
Override default load external references setting.
QTimer mUpdateReaderWinTimer
Definition: viewer_p.h:647
A model representing the mime part tree of a message.
Definition: mimetreemodel.h:34
bool htmlLoadExtOverride() const
Get the load external references override setting.
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
KToggleAction * mToggleMimePartTreeAction
Definition: viewer_p.h:675
void showReader(KMime::Content *aMsgPart, bool aHTML, const QString &encoding)
void enableMessageDisplay()
Enable the displaying of messages again after an splash (or other) page was displayed.
void slotFancyHeaders()
void slotHandleAttachment(int action)
Does an action for the current attachment.
void showVCard(KMime::Content *msgPart)
show window containing information about a vCard.
void viewerSelectionChanged()
Definition: headerstrategy.h:42
Starts an editor for the given URL and emits an signal when editing has been finished.
Definition: editorwatcher.h:39
void setUseFixedFont(bool useFixedFont)
void slotAttachmentSaveAll()
void itemRemoved()
void attachmentOpen(KMime::Content *node)
void attachmentCopy(const KMime::Content::List &contents)
KMime::Content * nodeFromUrl(const KUrl &url)
Returns message part from given URL or null if invalid.
static const QTextCodec * codecForName(const QByteArray &_str)
Return a QTextCodec for the specified charset.
KAction * mScrollDownAction
Definition: viewer_p.h:662
void slotHeaderOnlyAttachments()
const AttachmentStrategy * attachmentStrategy() const
Get/set the message attachment strategy.
Definition: viewer_p.h:313
bool mMsgDisplay
This is true if the viewer currently is displaying a message.
Definition: viewer_p.h:654
GrantleeTheme::GrantleeThemeManager * mThemeManager
Definition: viewer_p.h:715
KToggleAction * actionForHeaderStyle(const HeaderStyle *, const HeaderStrategy *)
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:182
void slotSettingsChanged()
void slotCopySelectedText()
Copy the selected text to the clipboard.
void slotUrlOpen(const QUrl &url=QUrl())
An URL has been activate with a click.
KMime::Content * findContentByType(KMime::Content *content, const QByteArray &type)
void slotUrlOn(const QString &link, const QString &title, const QString &textContent)
The mouse has moved on or off an URL.
void slotResetMessageDisplayFormat()
void slotHideAttachments()
void createWidgets()
void setMessageItem(const Akonadi::Item &item, Viewer::UpdateMode updateMode=Viewer::Delayed)
Set the Akonadi item that will be displayed.
void attachmentEncryptWithChiasmus(KMime::Content *content)
void slotAttachmentOpen()
void setExternalWindow(bool b)
void showMessage(KMime::Message::Ptr message, const QString &encoding)
KSelectAction * mSelectEncodingAction
Definition: viewer_p.h:667
void slotSpeakText()
HeaderStrategy * mHeaderStrategy
Definition: viewer_p.h:644
KAction * mSaveMessageDisplayFormat
Definition: viewer_p.h:662
void slotUrlPopup(const QUrl &, const QUrl &imageUrl, const QPoint &mousePos)
The user presses the right mouse button on an URL.
void moveMessageToTrash()
virtual ~ViewerPrivate()
MailWebView extends KWebView so that it can emit the popupMenu() signal.
Definition: mailwebview.h:53
KToggleAction * mToggleDisplayModeAction
Definition: viewer_p.h:668
void saveMainFrameScreenshotInFile(const QString &filename)
void slotLoadExternalReference()
void readGlobalOverrideCodec()
Read override codec from configuration.
void goOnline()
QSet< AbstractMessageLoadedHandler * > mMessageLoadedHandlers
Definition: viewer_p.h:712
void adjustLayout()
void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint &mousePos)
void prepareHandleAttachment(KMime::Content *node, const QString &fileName)
Sets the current attachment ID and the current attachment temporary filename to the given values...
void slotEnterpriseHeaders()
void slotGrantleeHeaders()
void setShowRawToltecMail(bool showRawToltecMail)
Definition: viewer_p.h:427
void setAttachmentStrategy(const AttachmentStrategy *strategy)
void showStatusBarMessage(const QString &message)
MailWebView * htmlPart() const
Access to the MailWebView used for the viewer.
Definition: viewer_p.h:215
void replaceMsgByUnencryptedVersion()
KMime::Content * mMessagePartNode
Definition: viewer_p.h:702
void slotZoomReset()
void slotInlineAttachments()
bool mShowFullCcAddressList
Definition: viewer_p.h:709
Definition: csshelper.h:41
void slotToggleFixedFont()
The user toggled the "Fixed Font" flag from the view menu.
void atmViewMsg(KMime::Message::Ptr message)
View message part of type message/RFC822 in extra viewer window.
const QTextCodec * overrideCodec() const
Get codec corresponding to the currently selected override character encoding.
void displaySplashPage(const QString &info)
Display a generic HTML splash page instead of a message.
void slotBriefHeaders()
void saveRelativePosition()
Saves the relative position of the scroll view.
void slotLevelQuote(int l)
KActionCollection * mActionCollection
Definition: viewer_p.h:661
void slotZoomIn()
void clearSelection()
QString overrideEncoding() const
Get selected override character encoding.
Definition: viewer_p.h:321
QString mIdOfLastViewedMessage
Definition: viewer_p.h:659
void setZoomTextOnly(bool textOnly)
KAction * mZoomTextOnlyAction
Definition: viewer_p.h:674
void setHeaderStyleAndStrategy(HeaderStyle *style, HeaderStrategy *strategy, bool writeInConfigFile=false)
Set the header style and strategy.
void slotAttachmentView()
void parseContent(KMime::Content *content)
Parse the given content and generate HTML out of it for display.
void slotLongHeaders()
KMime::Content::List selectedContents()
void makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode mode)
void slotToggleHtmlMode()
Toggle display mode between HTML and plain text.
Definition: nodehelper.h:71
bool decryptMessage() const
Returns whether the message should be decryted.
bool htmlLoadExternal() const
void setShowAttachmentQuicklist(bool showAttachmentQuicklist=true)
The HTML statusbar widget for use with the reader.
Definition: htmlstatusbar.h:62
void slotAttachmentEdit()
void showAttachmentPopup(KMime::Content *node, const QString &name, const QPoint &p)
void slotCustomHeaders()
bool editAttachment(KMime::Content *node, bool showWarning=true)
Edit the attachment the.
bool showAttachmentQuicklist() const
QMap< EditorWatcher *, KMime::Content * > mEditorWatchers
Definition: viewer_p.h:705
void setShowFullToAddressList(bool showFullToAddressList=true)
Show or hide the full list of "To" addresses.
void slotAttachmentCopy()
void update(MessageViewer::Viewer::UpdateMode updateMode=Viewer::Delayed)
Re-parse the current message.
KAction * mCopyImageLocation
Definition: viewer_p.h:677
void slotZoomTextOnly()
void attachmentOpenWith(KMime::Content *node, KService::Ptr offer=KService::Ptr())
void slotIconicAttachments()
void slotSaveMessage()
bool showRawToltecMail() const
Definition: viewer_p.h:426
CSSHelper * cssHelper() const
QString renderAttachments(KMime::Content *node, const QColor &bgColor) const
void setShowFullCcAddressList(bool showFullCcAddressList=true)
Show or hide the full list of "To" addresses.
void slotAllHeaders()
bool isAShortUrl(const KUrl &url) const
void slotExpandShortUrl()
void setHtmlOverride(bool override)
Override default html mail setting.
void displayMessage()
Feeds the HTML viewer with the contents of the given message.
void setMessage(const KMime::Message::Ptr &msg, Viewer::UpdateMode updateMode=Viewer::Delayed)
Set the message that shall be shown.
void injectAttachments()
void openAttachment(KMime::Content *node, const QString &fileName)
Open the attachment pointed to the node.
void slotBlockImage()
void slotTranslate()
Parses messages and generates HTML display code out of them.
Definition: objecttreeparser.h:287
PimCommon::TranslatorWidget * mTranslatorWidget
Definition: viewer_p.h:641
void slotZoomOut()
bool htmlMail() const
bool mHtmlLoadExtOverride
Definition: viewer_p.h:628
KToggleAction * mToggleFixFontAction
Definition: viewer_p.h:668
void requestConfigSync()
void slotAttachmentDelete()
KToggleAction * mHeaderOnlyAttachmentsAction
Definition: viewer_p.h:666
bool mShowAttachmentQuicklist
Definition: viewer_p.h:696
MimeTreeModel * mMimePartModel
Definition: viewer_p.h:638
KAction * mViewSourceAction
Definition: viewer_p.h:662
void slotAttachmentSaveAs()
Definition: viewer.h:134
void slotAttachmentProperties()
void postProcessMessage(ObjectTreeParser *otp, KMMsgEncryptionState encryptionState)
KMime::Content * mCurrentContent
Definition: viewer_p.h:701
void showContextMenu(KMime::Content *content, const QPoint &point)
void slotAttachmentEditDone(EditorWatcher *editorWatcher)
KAction * mScrollUpMoreAction
Definition: viewer_p.h:662
void slotSetEncoding()
void createActions()
void slotPrintPreview()
void printPreviewMessage(const Akonadi::Item &message)
QString writeMsgHeader(KMime::Message *aMsg, KMime::Content *vCardNode=0, bool topLevel=false)
Creates a nice mail header depending on the current selected header style.
void attachmentProperties(KMime::Content *node)
const AttachmentStrategy * mAttachmentStrategy
Definition: viewer_p.h:643
void slotSmartAttachments()
void slotMimePartSelected(const QModelIndex &index)
void attachmentView(KMime::Content *atmNode)
void slotCopyImageLocation()
bool showSignatureDetails() const
Show signature details.
KAction * mSaveMessageAction
Definition: viewer_p.h:662
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.