messageviewer
viewer_p.h
Go to the documentation of this file.
282 void createOpenWithMenu( KMenu *topMenu, const QString &contentTypeStr, bool fromCurrentContent );
339 void setMessageItem(const Akonadi::Item& item, Viewer::UpdateMode updateMode = Viewer::Delayed );
346 void setMessage( const KMime::Message::Ptr& msg, Viewer::UpdateMode updateMode = Viewer::Delayed );
380 KMime::Content* findContentByType(KMime::Content *content, const QByteArray &type); //TODO(Andras) move to NodeHelper
384 static const QTextCodec* codecForName(const QByteArray& _str); //TODO(Andras) move to a utility class?
471 void slotItemMoved( const Akonadi::Item&, const Akonadi::Collection&, const Akonadi::Collection& );
495 void slotCreateEvent(const KCalCore::Event::Ptr &eventPtr, const Akonadi::Collection &collection);
616 void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint& mousePos);
655 QString mOldGlobalOverrideEncoding; // used to detect changes of the global override character encoding
670 *mViewSourceAction, *mSaveMessageAction, *mFindInMessageAction, *mSaveMessageDisplayFormat, *mResetMessageDisplayFormat;
bool showFullToAddressList() const
Return weather to show or hide the full list of "To" addresses.
void changeDisplayMail(Viewer::DisplayFormatMessage, bool)
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.
KAction * mCreateEventAction
Definition: viewer_p.h:688
void setMessageInternal(const KMime::Message::Ptr message, Viewer::UpdateMode updateMode)
MessageViewer::EventEdit * mCreateEvent
Definition: viewer_p.h:723
bool deleteAttachment(KMime::Content *node, bool showWarning=true)
Delete the attachment the.
bool mShowFullToAddressList
Definition: viewer_p.h:713
void slotStandardHeaders()
KAction * mScrollDownMoreAction
Definition: viewer_p.h:667
void showHideMimeTree()
Show or hide the Mime Tree Viewer if configuration is set to smart mode.
KToggleAction * actionForAttachmentStrategy(const AttachmentStrategy *)
KToggleAction * mCaretBrowsing
Definition: viewer_p.h:676
ScamDetectionWarningWidget * mScamDetectionWarning
Definition: viewer_p.h:721
void writeConfig(bool withSync=true)
Write settings to app's config file.
int mRecursionCountForDisplayMessage
Definition: viewer_p.h:707
Akonadi::Item messageItem() const
Definition: viewer_p.h:242
QString mOldGlobalOverrideEncoding
Definition: viewer_p.h:655
This class encapsulates the visual appearance of message headers.
Definition: headerstyle.h:60
Akonadi::Item::Id mPreviouslyViewedItem
Definition: viewer_p.h:718
KAction * mFindInMessageAction
Definition: viewer_p.h:667
void urlClicked(const Akonadi::Item &msg, const KUrl &url)
void goResourceOnline()
void slotToggleMimePartTree()
void slotShowCreateEventWidget()
HtmlWriter * htmlWriter() const
Return the HtmlWriter connected to the MailWebView we use.
Definition: viewer_p.h:234
QPointer< WebKitPartHtmlWriter > mPartHtmlWriter
Used only to be able to connect and disconnect finished() signal in printMsg() and slotPrintMsg() sin...
Definition: viewer_p.h:697
void slotMimeTreeContextMenuRequested(const QPoint &pos)
void slotGeneralFontChanged()
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:699
void slotAttachmentOpenWith()
void slotSaveMessageDisplayFormat()
KAction * mResetMessageDisplayFormat
Definition: viewer_p.h:667
void scrollToAttachment(KMime::Content *node)
KAction * mCreateTodoAction
Definition: viewer_p.h:687
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:702
bool mDecrytMessageOverwrite
Definition: viewer_p.h:701
void setHtmlLoadExtOverride(bool override)
Override default load external references setting.
QTimer mUpdateReaderWinTimer
Definition: viewer_p.h:652
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
Definition: eventedit.h:37
KToggleAction * mToggleMimePartTreeAction
Definition: viewer_p.h:680
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
void setUseFixedFont(bool useFixedFont)
void slotAttachmentSaveAll()
bool mHtmlLoadExternalGlobalSetting
Definition: viewer_p.h:634
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:667
void slotHeaderOnlyAttachments()
const AttachmentStrategy * attachmentStrategy() const
Get/set the message attachment strategy.
Definition: viewer_p.h:309
bool mMsgDisplay
This is true if the viewer currently is displaying a message.
Definition: viewer_p.h:659
Definition: todoedit.h:35
GrantleeTheme::GrantleeThemeManager * mThemeManager
Definition: viewer_p.h:720
KToggleAction * actionForHeaderStyle(const HeaderStyle *, const HeaderStrategy *)
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:180
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)
PimCommon::SlideContainer * mSliderContainer
Definition: viewer_p.h:729
void slotUrlOn(const QString &link, const QString &title, const QString &textContent)
The mouse has moved on or off an URL.
const char * name() const
void slotResetMessageDisplayFormat()
void slotHideAttachments()
void showOpenAttachmentFolderWidget(const KUrl &url)
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:672
void slotSpeakText()
HeaderStrategy * mHeaderStrategy
Definition: viewer_p.h:649
KAction * mSaveMessageDisplayFormat
Definition: viewer_p.h:667
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:47
KToggleAction * mToggleDisplayModeAction
Definition: viewer_p.h:673
void saveMainFrameScreenshotInFile(const QString &filename)
bool mimePartTreeIsEmpty() const
void slotLoadExternalReference()
void readGlobalOverrideCodec()
Read override codec from configuration.
void goOnline()
QSet< AbstractMessageLoadedHandler * > mMessageLoadedHandlers
Definition: viewer_p.h:717
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...
Viewer::DisplayFormatMessage displayFormatMessageOverwrite() const
Get the html override setting.
void slotEnterpriseHeaders()
void slotGrantleeHeaders()
void setShowRawToltecMail(bool showRawToltecMail)
Definition: viewer_p.h:423
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:213
void replaceMsgByUnencryptedVersion()
KMime::Content * mMessagePartNode
Definition: viewer_p.h:709
void slotZoomReset()
void slotInlineAttachments()
bool mShowFullCcAddressList
Definition: viewer_p.h:714
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 setDisplayFormatMessageOverwrite(Viewer::DisplayFormatMessage format)
Override default html mail setting.
void slotShowCreateTodoWidget()
void slotBriefHeaders()
void saveRelativePosition()
Saves the relative position of the scroll view.
void slotLevelQuote(int l)
KActionCollection * mActionCollection
Definition: viewer_p.h:666
void slotZoomIn()
void clearSelection()
QString overrideEncoding() const
Get selected override character encoding.
Definition: viewer_p.h:317
QString mIdOfLastViewedMessage
Definition: viewer_p.h:664
void setZoomTextOnly(bool textOnly)
KAction * mZoomTextOnlyAction
Definition: viewer_p.h:679
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.
MessageViewer::OpenAttachmentFolderWidget * mOpenAttachmentFolderWidget
Definition: viewer_p.h:724
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:74
bool decryptMessage() const
Returns whether the message should be decryted.
bool htmlLoadExternal() const
void setShowAttachmentQuicklist(bool showAttachmentQuicklist=true)
Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite
Definition: viewer_p.h:728
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()
void editAttachment(KMime::Content *node, bool showWarning=true)
Edit the attachment the.
bool showAttachmentQuicklist() const
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:682
void slotZoomTextOnly()
void attachmentOpenWith(KMime::Content *node, KService::Ptr offer=KService::Ptr())
MimePartTreeView * mMimePartTree
Definition: viewer_p.h:642
void slotIconicAttachments()
void slotSaveMessage()
bool showRawToltecMail() const
Definition: viewer_p.h:422
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 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:646
void slotZoomOut()
bool htmlMail() const
bool mHtmlLoadExtOverride
Definition: viewer_p.h:634
KToggleAction * mToggleFixFontAction
Definition: viewer_p.h:673
MessageViewer::TodoEdit * mCreateTodo
Definition: viewer_p.h:722
void requestConfigSync()
void slotAttachmentDelete()
KToggleAction * mHeaderOnlyAttachmentsAction
Definition: viewer_p.h:671
bool mShowAttachmentQuicklist
Definition: viewer_p.h:703
KAction * mViewSourceAction
Definition: viewer_p.h:667
void slotAttachmentSaveAs()
Definition: viewer.h:134
void slotAttachmentProperties()
void postProcessMessage(ObjectTreeParser *otp, KMMsgEncryptionState encryptionState)
KMime::Content * mCurrentContent
Definition: viewer_p.h:708
void showContextMenu(KMime::Content *content, const QPoint &point)
KAction * mScrollUpMoreAction
Definition: viewer_p.h:667
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:648
void slotSmartAttachments()
void slotMimePartSelected(const QModelIndex &index)
void attachmentView(KMime::Content *atmNode)
void slotCopyImageLocation()
bool showSignatureDetails() const
Show signature details.
bool mHtmlMailGlobalSetting
Definition: viewer_p.h:634
KAction * mSaveMessageAction
Definition: viewer_p.h:667
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.