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

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • viewer
viewer_p.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  Copyright (c) 1997 Markus Wuebben <markus.wuebben@kde.org>
3  Copyright (C) 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
4  Copyright (c) 2009 Andras Mantia <andras@kdab.net>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef MAILVIEWER_P_H
22 #define MAILVIEWER_P_H
23 
24 #include "viewer/nodehelper.h"
25 #include "viewer.h" //not so nice, it is actually for the enums from MailViewer
26 
27 #include <akonadi/item.h>
28 #include <akonadi/monitor.h>
29 #include <kio/job.h>
30 #include <kmime/kmime_message.h>
31 #include <kservice.h>
32 #include <ksharedconfig.h>
33 #include <kurl.h>
34 #include <KCalCore/Todo>
35 #include <KCalCore/Event>
36 
37 #include <QObject>
38 #include <QTimer>
39 #include <QWebElement>
40 
41 namespace KIO {
42 class Job;
43 }
44 
45 class KAction;
46 class KActionCollection;
47 class KSelectAction;
48 class KToggleAction;
49 class KHBox;
50 class KMenu;
51 
52 class QPoint;
53 class QSplitter;
54 class QModelIndex;
55 
56 namespace GrantleeTheme {
57 class GrantleeThemeManager;
58 }
59 
60 namespace PimCommon {
61 class TranslatorWidget;
62 class SlideContainer;
63 }
64 
65 namespace MessageViewer {
66 class TodoEdit;
67 class EventEdit;
68 class HtmlWriter;
69 class CSSHelper;
70 class AttachmentStrategy;
71 class ObjectTreeParser;
72 class HeaderStrategy;
73 class HeaderStyle;
74 class FindBarMailWebView;
75 class WebKitPartHtmlWriter;
76 class HtmlStatusBar;
77 class MailWebView;
78 class ScamDetectionWarningWidget;
79 class MimePartTreeView;
80 class OpenAttachmentFolderWidget;
81 
180 class ViewerPrivate : public QObject {
181  Q_OBJECT
182 public:
183 
184  ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollection *actionCollection );
185 
186  virtual ~ViewerPrivate();
187 
190  KMime::Content* nodeFromUrl(const KUrl &url);
191 
195  void openAttachment( KMime::Content *node, const QString & fileName );
196 
200  bool deleteAttachment( KMime::Content* node, bool showWarning = true );
201 
202 
203  void attachmentProperties( KMime::Content *node );
204  void attachmentCopy( const KMime::Content::List & contents );
205 
206 
209  void editAttachment( KMime::Content* node, bool showWarning = true );
210 
213  MailWebView *htmlPart() const { return mViewer; }
214 
215  void showAttachmentPopup( KMime::Content* node, const QString & name, const QPoint & p );
216 
222  void prepareHandleAttachment(KMime::Content *node, const QString& fileName );
223 
224  void postProcessMessage( ObjectTreeParser *otp, KMMsgEncryptionState encryptionState );
225 
226  QString createAtmFileLink( const QString& atmFileName ) const;
227  KService::Ptr getServiceOffer( KMime::Content *content);
228  KMime::Content::List selectedContents();
229  void attachmentOpenWith( KMime::Content *node, KService::Ptr offer = KService::Ptr() );
230  void attachmentOpen( KMime::Content *node );
231 
232 
234  HtmlWriter * htmlWriter() const { return mHtmlWriter; }
235 
236  CSSHelper* cssHelper() const;
237 
238  NodeHelper* nodeHelper() const { return mNodeHelper; }
239 
240  Viewer *viewer() const { return q; }
241 
242  Akonadi::Item messageItem() const { return mMessageItem; }
243 
244  KMime::Message::Ptr message() const { return mMessage; }
245 
247  bool decryptMessage() const;
248 
250  int pointsToPixel(int pointSize) const;
251 
255  void displaySplashPage( const QString &info );
256 
258  void enableMessageDisplay();
259 
262  void displayMessage();
263 
265  void parseContent( KMime::Content *content );
266 
269  QString writeMsgHeader( KMime::Message *aMsg, KMime::Content* vCardNode = 0,
270  bool topLevel = false );
271 
273  void showVCard(KMime::Content *msgPart);
274 
275  void setZoomTextOnly( bool textOnly );
276 
277  void saveMainFrameScreenshotInFile(const QString &filename);
278 
279 private:
281  void initHtmlWidget();
282  void createOpenWithMenu( KMenu *topMenu, const QString &contentTypeStr, bool fromCurrentContent );
283 public:
285  bool eventFilter( QObject *obj, QEvent *ev );
286 
288  void readConfig();
289 
291  void writeConfig( bool withSync=true );
292 
294  HeaderStyle * headerStyle() const {
295  return mHeaderStyle;
296  }
297 
300  void setHeaderStyleAndStrategy( HeaderStyle * style,
301  HeaderStrategy * strategy, bool writeInConfigFile = false );
302 
304  HeaderStrategy * headerStrategy() const {
305  return mHeaderStrategy;
306  }
307 
309  const AttachmentStrategy * attachmentStrategy() const {
310  return mAttachmentStrategy;
311  }
312  void setAttachmentStrategy( const AttachmentStrategy * strategy );
313 
317  QString overrideEncoding() const { return mOverrideEncoding; }
318 
320  void setOverrideEncoding( const QString & encoding );
321 
323  virtual void setPrinting(bool enable) { mPrinting = enable; }
324 
325 
327  void printMessage( const Akonadi::Item &msg );
328  void printPreviewMessage( const Akonadi::Item &message );
329 
330  void resetStateForNewMessage();
331 
332  void setMessageInternal( const KMime::Message::Ptr message, Viewer::UpdateMode updateMode );
333 
339  void setMessageItem(const Akonadi::Item& item, Viewer::UpdateMode updateMode = Viewer::Delayed );
340 
341 
346  void setMessage( const KMime::Message::Ptr& msg, Viewer::UpdateMode updateMode = Viewer::Delayed );
347 
350  void setMessagePart( KMime::Content * node );
351 
354  void showHideMimeTree();
355 
357  void atmViewMsg( KMime::Message::Ptr message );
358 
359  void setExternalWindow( bool b );
360 
361  void adjustLayout();
362  void createWidgets();
363  void createActions();
364 
365  void showContextMenu( KMime::Content* content, const QPoint& point);
366 
367  KToggleAction * actionForHeaderStyle( const HeaderStyle *,
368  const HeaderStrategy * );
369  KToggleAction * actionForAttachmentStrategy( const AttachmentStrategy * );
371  void readGlobalOverrideCodec();
372 
375  const QTextCodec * overrideCodec() const;
376 
377 
378  QString renderAttachments( KMime::Content *node, const QColor &bgColor ) const;
379 
380  KMime::Content* findContentByType(KMime::Content *content, const QByteArray &type); //TODO(Andras) move to NodeHelper
381 
384  static const QTextCodec* codecForName(const QByteArray& _str); //TODO(Andras) move to a utility class?
385 
388  void saveRelativePosition();
389 
390  bool htmlMail() const;
391  bool htmlLoadExternal() const;
392 
394  Viewer::DisplayFormatMessage displayFormatMessageOverwrite() const;
395 
397  void setDisplayFormatMessageOverwrite(Viewer::DisplayFormatMessage format);
398 
400  bool htmlLoadExtOverride() const;
401 
403  void setHtmlLoadExtOverride( bool override );
404 
406  void setDecryptMessageOverwrite( bool overwrite = true );
407 
409  bool showSignatureDetails() const;
410 
412  void setShowSignatureDetails( bool showDetails = true ) ;
413 
414  /* show or hide the list that points to the attachments */
415  bool showAttachmentQuicklist() const;
416 
417  /* show or hide the list that points to the attachments */
418  void setShowAttachmentQuicklist( bool showAttachmentQuicklist = true );
419 
420  // This controls whether a Toltec invitation is shown in its raw form or as a replacement text.
421  // This can be toggled with the "kmail:showRawToltecMail" link.
422  bool showRawToltecMail() const { return mShowRawToltecMail; }
423  void setShowRawToltecMail( bool showRawToltecMail ) { mShowRawToltecMail = showRawToltecMail; }
424 
425  void scrollToAttachment( KMime::Content *node );
426  void setUseFixedFont( bool useFixedFont );
427 
428  void attachmentView( KMime::Content *atmNode );
429  void attachmentEncryptWithChiasmus( KMime::Content * content );
430 
432  bool showFullToAddressList() const;
433 
435  void setShowFullToAddressList( bool showFullToAddressList = true );
436 
438  bool showFullCcAddressList() const;
439 
441  void setShowFullCcAddressList( bool showFullCcAddressList = true );
442 
444  void toggleFullAddressList(const QString& field);
445 
446  void setZoomFactor( qreal zoomFactor );
447 
448 
449  void goOnline();
450  void goResourceOnline();
451 
452  bool isAShortUrl(const KUrl &url) const;
453 
454  void showOpenAttachmentFolderWidget(const KUrl &url);
455 
456  bool mimePartTreeIsEmpty() const;
457 
458 private slots:
459  void slotModifyItemDone(KJob* job);
460  void slotMessageMayBeAScam();
461  void slotMessageIsNotAScam();
462  void slotAddToWhiteList();
463  void slotToggleCaretBrowsing(bool);
464 
466  void toggleFullAddressList();
467 
468  void itemFetchResult( KJob *job );
469 
470  void slotItemChanged( const Akonadi::Item& item, const QSet<QByteArray>& partIdentifiers );
471  void slotItemMoved( const Akonadi::Item&, const Akonadi::Collection&, const Akonadi::Collection& );
472 
473  void itemModifiedResult( KJob* job );
474 
475  void collectionFetchedForStoringDecryptedMessage( KJob* job );
476 
477  void slotClear();
478 
479  void slotMessageRendered();
480 
481  void slotOpenWithAction(QAction *act);
482 
483  void slotOpenWithActionCurrentContent(QAction* act);
484 
485  void slotOpenWithDialog();
486 
487  void slotOpenWithDialogCurrentContent();
488 
489 
490  void saveSplitterSizes() const;
491  void slotGrantleeThemesUpdated();
492 
493  void slotCreateTodo(const KCalCore::Todo::Ptr &, const Akonadi::Collection &collection);
494 
495  void slotCreateEvent(const KCalCore::Event::Ptr &eventPtr, const Akonadi::Collection &collection);
496 
497  void slotRefreshMessage(const Akonadi::Item &item);
498 public slots:
500  void slotUrlOpen( const QUrl &url = QUrl());
501 
503  void slotUrlOn(const QString & link, const QString & title, const QString & textContent);
504 
506  void slotUrlPopup(const QUrl &, const QUrl &imageUrl, const QPoint& mousePos);
507 
509  void slotFind();
510 
511  void slotTranslate();
512 
513 
515  void slotToggleFixedFont();
516  void slotToggleMimePartTree();
517 
519  void slotShowMessageSource();
520 
522  void updateReaderWin();
523 
524  void slotMimePartSelected( const QModelIndex &index );
525 
526  void slotBriefHeaders();
527  void slotFancyHeaders();
528  void slotEnterpriseHeaders();
529  void slotStandardHeaders();
530  void slotLongHeaders();
531  void slotAllHeaders();
532  void slotCustomHeaders();
533  void slotGrantleeHeaders();
534 
535  void slotIconicAttachments();
536  void slotSmartAttachments();
537  void slotInlineAttachments();
538  void slotHideAttachments();
539  void slotHeaderOnlyAttachments();
540 
542  void slotDelayedResize();
543 
548  void slotPrintMsg();
549  void slotPrintPreview();
550 
551 
552  void slotSetEncoding();
553  void injectAttachments();
554  void slotSettingsChanged();
555  void slotMimeTreeContextMenuRequested( const QPoint& pos );
556  void slotAttachmentOpenWith();
557  void slotAttachmentOpen();
558  void slotAttachmentSaveAs();
559  void slotAttachmentSaveAll();
560  void slotAttachmentView();
561  void slotAttachmentProperties();
562  void slotAttachmentCopy();
563  void slotAttachmentDelete();
564  void slotAttachmentEdit();
565  void slotLevelQuote( int l );
566 
568  void slotToggleHtmlMode();
569  void slotZoomTextOnly();
570  void slotLoadExternalReference();
571 
572 
580  void slotHandleAttachment( int action );
582  void slotCopySelectedText();
583 
584  void viewerSelectionChanged();
585 
587  void selectAll();
588 
589  void clearSelection();
590 
593  void slotUrlCopy();
594  void slotSaveMessage();
596  void update(MessageViewer::Viewer::UpdateMode updateMode = Viewer::Delayed);
597 
598  void slotZoomIn();
599  void slotZoomOut();
600  void slotZoomReset();
601  void slotSpeakText();
602  void slotCopyImageLocation();
603  void slotSaveMessageDisplayFormat();
604  void slotResetMessageDisplayFormat();
605  void slotBlockImage();
606  void slotOpenBlockableItems();
607  void slotExpandShortUrl();
608  void slotShowCreateTodoWidget();
609  void slotShowCreateEventWidget();
610 
611  void slotGeneralFontChanged();
612 
613 signals:
614  void showStatusBarMessage( const QString &message );
615  void replaceMsgByUnencryptedVersion();
616  void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint& mousePos);
617  void urlClicked( const Akonadi::Item &msg, const KUrl &url );
618  void requestConfigSync();
619  void showReader( KMime::Content* aMsgPart, bool aHTML, const QString & encoding );
620  void showMessage( KMime::Message::Ptr message, const QString& encoding );
621  void itemRemoved();
622  void makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode mode);
623 
624  void changeDisplayMail(Viewer::DisplayFormatMessage,bool);
625  void moveMessageToTrash();
626 private:
627  QString attachmentInjectionHtml() const;
628  QString recipientsQuickListLinkHtml( bool, const QString & ) const;
629  void initGrantleeThemeName();
630 
631  void readGravatarConfig();
632 public:
633  NodeHelper* mNodeHelper;
634  bool mHtmlMailGlobalSetting, mHtmlLoadExternalGlobalSetting, mHtmlLoadExtOverride;
635  KMime::Message::Ptr mMessage; //the current message, if it was set manually
636  Akonadi::Item mMessageItem; //the message item from Akonadi
637  // widgets:
638  QSplitter * mSplitter;
639  KHBox *mBox;
640  HtmlStatusBar *mColorBar;
641 #ifndef QT_NO_TREEVIEW
642  MimePartTreeView* mMimePartTree;
643 #endif
644  MailWebView *mViewer;
645  FindBarMailWebView *mFindBar;
646  PimCommon::TranslatorWidget *mTranslatorWidget;
647 
648  const AttachmentStrategy * mAttachmentStrategy;
649  HeaderStrategy * mHeaderStrategy;
650  HeaderStyle * mHeaderStyle;
651  static const int delay;
652  QTimer mUpdateReaderWinTimer;
653  QTimer mResizeTimer;
654  QString mOverrideEncoding;
655  QString mOldGlobalOverrideEncoding; // used to detect changes of the global override character encoding
656 
659  bool mMsgDisplay;
660 
661  CSSHelper * mCSSHelper;
662  bool mUseFixedFont;
663  bool mPrinting;
664  QString mIdOfLastViewedMessage;
665  QWidget *mMainWindow;
666  KActionCollection *mActionCollection;
667  KAction *mCopyAction, *mCopyURLAction,
668  *mUrlOpenAction, *mSelectAllAction,
669  *mScrollUpAction, *mScrollDownAction, *mScrollUpMoreAction, *mScrollDownMoreAction,
670  *mViewSourceAction, *mSaveMessageAction, *mFindInMessageAction, *mSaveMessageDisplayFormat, *mResetMessageDisplayFormat;
671  KToggleAction *mHeaderOnlyAttachmentsAction;
672  KSelectAction *mSelectEncodingAction;
673  KToggleAction *mToggleFixFontAction, *mToggleDisplayModeAction;
674 #ifndef KDEPIM_NO_WEBKIT
675 #if QTWEBKIT_VERSION >= QTWEBKIT_VERSION_CHECK(2, 3, 0)
676  KToggleAction *mCaretBrowsing;
677 #endif
678 #endif
679  KAction *mZoomTextOnlyAction, *mZoomInAction, *mZoomOutAction, *mZoomResetAction;
680  KToggleAction *mToggleMimePartTreeAction;
681  KAction *mSpeakTextAction;
682  KAction *mCopyImageLocation;
683  KAction *mTranslateAction;
684  KAction *mBlockImage;
685  KAction *mBlockableItems;
686  KAction *mExpandUrlAction;
687  KAction *mCreateTodoAction;
688  KAction *mCreateEventAction;
689  KUrl mHoveredUrl;
690  KUrl mClickedUrl;
691  KUrl mImageUrl;
692  QPoint mLastClickPosition;
693  bool mCanStartDrag;
694  HtmlWriter * mHtmlWriter;
697  QPointer<WebKitPartHtmlWriter> mPartHtmlWriter;
698 
699  float mSavedRelativePosition;
700  int mLevelQuote;
701  bool mDecrytMessageOverwrite;
702  bool mShowSignatureDetails;
703  bool mShowAttachmentQuicklist;
704  bool mShowRawToltecMail;
705  bool mExternalWindow;
706  bool mZoomTextOnly;
707  int mRecursionCountForDisplayMessage;
708  KMime::Content *mCurrentContent;
709  KMime::Content *mMessagePartNode;
710  QString mCurrentFileName;
711  QString mMessagePath;
712  Viewer *const q;
713  bool mShowFullToAddressList;
714  bool mShowFullCcAddressList;
715  Akonadi::Monitor mMonitor;
716  QString mAppName;
717  QSet<AbstractMessageLoadedHandler*> mMessageLoadedHandlers;
718  Akonadi::Item::Id mPreviouslyViewedItem;
719 
720  GrantleeTheme::GrantleeThemeManager *mThemeManager;
721  ScamDetectionWarningWidget *mScamDetectionWarning;
722  MessageViewer::TodoEdit *mCreateTodo;
723  MessageViewer::EventEdit *mCreateEvent;
724  MessageViewer::OpenAttachmentFolderWidget *mOpenAttachmentFolderWidget;
725  // zoom Factor
726  static const qreal zoomBy;
727  qreal mZoomFactor;
728  Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite;
729  PimCommon::SlideContainer *mSliderContainer;
730 };
731 
732 }
733 
734 #endif
MessageViewer::Viewer::DisplayFormatMessage
DisplayFormatMessage
Definition: viewer.h:108
MessageViewer::ViewerPrivate::showFullToAddressList
bool showFullToAddressList() const
Return weather to show or hide the full list of "To" addresses.
MessageViewer::ViewerPrivate::changeDisplayMail
void changeDisplayMail(Viewer::DisplayFormatMessage, bool)
MessageViewer::ViewerPrivate::ViewerPrivate
ViewerPrivate(Viewer *aParent, QWidget *mainWindow, KActionCollection *actionCollection)
MessageViewer::ViewerPrivate::setZoomFactor
void setZoomFactor(qreal zoomFactor)
MessageViewer::ViewerPrivate::setShowSignatureDetails
void setShowSignatureDetails(bool showDetails=true)
Show signature details.
MessageViewer::ViewerPrivate::setOverrideEncoding
void setOverrideEncoding(const QString &encoding)
Set the override character encoding.
MessageViewer::ViewerPrivate::mCreateEventAction
KAction * mCreateEventAction
Definition: viewer_p.h:688
QModelIndex
QEvent
MessageViewer::ViewerPrivate::setMessageInternal
void setMessageInternal(const KMime::Message::Ptr message, Viewer::UpdateMode updateMode)
MessageViewer::ViewerPrivate::mBox
KHBox * mBox
Definition: viewer_p.h:639
QWidget
MessageViewer::ViewerPrivate::mCreateEvent
MessageViewer::EventEdit * mCreateEvent
Definition: viewer_p.h:723
MessageViewer::ViewerPrivate::deleteAttachment
bool deleteAttachment(KMime::Content *node, bool showWarning=true)
Delete the attachment the.
MessageViewer::ViewerPrivate::mShowFullToAddressList
bool mShowFullToAddressList
Definition: viewer_p.h:713
MessageViewer::ViewerPrivate::slotStandardHeaders
void slotStandardHeaders()
MessageViewer::ViewerPrivate::mScrollDownMoreAction
KAction * mScrollDownMoreAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::showHideMimeTree
void showHideMimeTree()
Show or hide the Mime Tree Viewer if configuration is set to smart mode.
MessageViewer::ViewerPrivate::actionForAttachmentStrategy
KToggleAction * actionForAttachmentStrategy(const AttachmentStrategy *)
MessageViewer::ViewerPrivate::mCaretBrowsing
KToggleAction * mCaretBrowsing
Definition: viewer_p.h:676
MessageViewer::ViewerPrivate::mScamDetectionWarning
ScamDetectionWarningWidget * mScamDetectionWarning
Definition: viewer_p.h:721
MessageViewer::ViewerPrivate::mHtmlWriter
HtmlWriter * mHtmlWriter
Definition: viewer_p.h:694
viewer.h
MessageViewer::ViewerPrivate::writeConfig
void writeConfig(bool withSync=true)
Write settings to app's config file.
MessageViewer::ViewerPrivate::mRecursionCountForDisplayMessage
int mRecursionCountForDisplayMessage
Definition: viewer_p.h:707
MessageViewer::ViewerPrivate::slotUrlCopy
void slotUrlCopy()
Copy URL in mUrlCurrent to clipboard.
MessageViewer::ViewerPrivate::mHoveredUrl
KUrl mHoveredUrl
Definition: viewer_p.h:689
MessageViewer::ViewerPrivate::messageItem
Akonadi::Item messageItem() const
Definition: viewer_p.h:242
MessageViewer::ViewerPrivate::mMessage
KMime::Message::Ptr mMessage
Definition: viewer_p.h:635
MessageViewer::ViewerPrivate::mOldGlobalOverrideEncoding
QString mOldGlobalOverrideEncoding
Definition: viewer_p.h:655
MessageViewer::HeaderStyle
This class encapsulates the visual appearance of message headers.
Definition: headerstyle.h:60
MessageViewer::ViewerPrivate::mAppName
QString mAppName
Definition: viewer_p.h:716
MessageViewer::ViewerPrivate::mPreviouslyViewedItem
Akonadi::Item::Id mPreviouslyViewedItem
Definition: viewer_p.h:718
MessageViewer::ViewerPrivate::mFindInMessageAction
KAction * mFindInMessageAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::mScrollUpAction
KAction * mScrollUpAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::urlClicked
void urlClicked(const Akonadi::Item &msg, const KUrl &url)
MessageViewer::ViewerPrivate::delay
static const int delay
Definition: viewer_p.h:651
QByteArray
MessageViewer::ViewerPrivate::mNodeHelper
NodeHelper * mNodeHelper
Definition: viewer_p.h:633
MessageViewer::ViewerPrivate::goResourceOnline
void goResourceOnline()
MessageViewer::ViewerPrivate::slotToggleMimePartTree
void slotToggleMimePartTree()
MessageViewer::ViewerPrivate::slotShowCreateEventWidget
void slotShowCreateEventWidget()
MessageViewer::ViewerPrivate::htmlWriter
HtmlWriter * htmlWriter() const
Return the HtmlWriter connected to the MailWebView we use.
Definition: viewer_p.h:234
MessageViewer::ViewerPrivate::mPartHtmlWriter
QPointer< WebKitPartHtmlWriter > mPartHtmlWriter
Used only to be able to connect and disconnect finished() signal in printMsg() and slotPrintMsg() sin...
Definition: viewer_p.h:697
MessageViewer::ViewerPrivate::slotMimeTreeContextMenuRequested
void slotMimeTreeContextMenuRequested(const QPoint &pos)
MessageViewer::ViewerPrivate::mZoomInAction
KAction * mZoomInAction
Definition: viewer_p.h:679
MessageViewer::ViewerPrivate::slotGeneralFontChanged
void slotGeneralFontChanged()
MessageViewer::ViewerPrivate::showFullCcAddressList
bool showFullCcAddressList() const
Return weather to show or hide the full list of "To" addresses.
MessageViewer::ViewerPrivate::getServiceOffer
KService::Ptr getServiceOffer(KMime::Content *content)
MessageViewer::ViewerPrivate::mSavedRelativePosition
float mSavedRelativePosition
Definition: viewer_p.h:699
MessageViewer::ViewerPrivate::slotAttachmentOpenWith
void slotAttachmentOpenWith()
MessageViewer::ViewerPrivate::slotSaveMessageDisplayFormat
void slotSaveMessageDisplayFormat()
MessageViewer::ViewerPrivate::mResetMessageDisplayFormat
KAction * mResetMessageDisplayFormat
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::scrollToAttachment
void scrollToAttachment(KMime::Content *node)
MessageViewer::ViewerPrivate::mCopyURLAction
KAction * mCopyURLAction
Definition: viewer_p.h:667
QPointer
MessageViewer::ViewerPrivate::mCreateTodoAction
KAction * mCreateTodoAction
Definition: viewer_p.h:687
MessageViewer::ViewerPrivate::slotOpenBlockableItems
void slotOpenBlockableItems()
MessageViewer::ViewerPrivate::createAtmFileLink
QString createAtmFileLink(const QString &atmFileName) const
MessageViewer::ViewerPrivate::setMessagePart
void setMessagePart(KMime::Content *node)
Instead of settings a message to be shown sets a message part to be shown.
MessageViewer::ViewerPrivate::updateReaderWin
void updateReaderWin()
Refresh the reader window.
MessageViewer::ViewerPrivate::pointsToPixel
int pointsToPixel(int pointSize) const
Calculate the pixel size.
MessageViewer::ViewerPrivate::slotShowMessageSource
void slotShowMessageSource()
Show the message source.
MessageViewer::ViewerPrivate::setDecryptMessageOverwrite
void setDecryptMessageOverwrite(bool overwrite=true)
Enforce message decryption.
MessageViewer::ViewerPrivate::resetStateForNewMessage
void resetStateForNewMessage()
MessageViewer::ViewerPrivate::mShowSignatureDetails
bool mShowSignatureDetails
Definition: viewer_p.h:702
MessageViewer::ViewerPrivate::mSplitter
QSplitter * mSplitter
Definition: viewer_p.h:638
MessageViewer::ViewerPrivate::mDecrytMessageOverwrite
bool mDecrytMessageOverwrite
Definition: viewer_p.h:701
MessageViewer::ViewerPrivate::mImageUrl
KUrl mImageUrl
Definition: viewer_p.h:691
MessageViewer::ViewerPrivate::mBlockableItems
KAction * mBlockableItems
Definition: viewer_p.h:685
MessageViewer::ViewerPrivate::setHtmlLoadExtOverride
void setHtmlLoadExtOverride(bool override)
Override default load external references setting.
MessageViewer::ViewerPrivate::mUpdateReaderWinTimer
QTimer mUpdateReaderWinTimer
Definition: viewer_p.h:652
MessageViewer::ViewerPrivate::htmlLoadExtOverride
bool htmlLoadExtOverride() const
Get the load external references override setting.
MessageViewer::Viewer::UpdateMode
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
MessageViewer::ViewerPrivate::slotPrintMsg
void slotPrintMsg()
Print message.
MessageViewer::EventEdit
Definition: eventedit.h:37
MessageViewer::ViewerPrivate::mToggleMimePartTreeAction
KToggleAction * mToggleMimePartTreeAction
Definition: viewer_p.h:680
MessageViewer::ViewerPrivate::showReader
void showReader(KMime::Content *aMsgPart, bool aHTML, const QString &encoding)
QPoint
MessageViewer::ViewerPrivate::mClickedUrl
KUrl mClickedUrl
Definition: viewer_p.h:690
MessageViewer::ViewerPrivate::enableMessageDisplay
void enableMessageDisplay()
Enable the displaying of messages again after an splash (or other) page was displayed.
nodehelper.h
MessageViewer::ViewerPrivate::slotFancyHeaders
void slotFancyHeaders()
MessageViewer::ViewerPrivate::slotHandleAttachment
void slotHandleAttachment(int action)
Does an action for the current attachment.
MessageViewer::ViewerPrivate::showVCard
void showVCard(KMime::Content *msgPart)
show window containing information about a vCard.
MessageViewer::ViewerPrivate::viewerSelectionChanged
void viewerSelectionChanged()
MessageViewer::MimePartTreeView
Definition: mimeparttreeview.h:26
MessageViewer::HeaderStrategy
Definition: headerstrategy.h:42
MessageViewer::ViewerPrivate::mHeaderStyle
HeaderStyle * mHeaderStyle
Definition: viewer_p.h:650
MessageViewer::ViewerPrivate::setUseFixedFont
void setUseFixedFont(bool useFixedFont)
MessageViewer::ViewerPrivate::slotAttachmentSaveAll
void slotAttachmentSaveAll()
MessageViewer::ViewerPrivate::mHtmlLoadExternalGlobalSetting
bool mHtmlLoadExternalGlobalSetting
Definition: viewer_p.h:634
MessageViewer::ViewerPrivate::itemRemoved
void itemRemoved()
MessageViewer::ViewerPrivate::attachmentOpen
void attachmentOpen(KMime::Content *node)
MessageViewer::ViewerPrivate::attachmentCopy
void attachmentCopy(const KMime::Content::List &contents)
MessageViewer::ViewerPrivate::nodeFromUrl
KMime::Content * nodeFromUrl(const KUrl &url)
Returns message part from given URL or null if invalid.
MessageViewer::ViewerPrivate::mZoomFactor
qreal mZoomFactor
Definition: viewer_p.h:727
MessageViewer::ViewerPrivate::slotFind
void slotFind()
The user selected "Find" from the menu.
MessageViewer::Viewer
This is the main widget for the viewer.
Definition: viewer.h:80
MessageViewer::ViewerPrivate::codecForName
static const QTextCodec * codecForName(const QByteArray &_str)
Return a QTextCodec for the specified charset.
MessageViewer::ViewerPrivate::mScrollDownAction
KAction * mScrollDownAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::slotHeaderOnlyAttachments
void slotHeaderOnlyAttachments()
MessageViewer::ViewerPrivate::printMessage
void printMessage(const Akonadi::Item &msg)
Print message.
MessageViewer::ViewerPrivate::attachmentStrategy
const AttachmentStrategy * attachmentStrategy() const
Get/set the message attachment strategy.
Definition: viewer_p.h:309
MessageViewer::ViewerPrivate::mMsgDisplay
bool mMsgDisplay
This is true if the viewer currently is displaying a message.
Definition: viewer_p.h:659
MessageViewer::TodoEdit
Definition: todoedit.h:35
MessageViewer::ViewerPrivate::mThemeManager
GrantleeTheme::GrantleeThemeManager * mThemeManager
Definition: viewer_p.h:720
MessageViewer::ViewerPrivate::actionForHeaderStyle
KToggleAction * actionForHeaderStyle(const HeaderStyle *, const HeaderStrategy *)
MessageViewer::ViewerPrivate
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:180
MessageViewer::ViewerPrivate::slotSettingsChanged
void slotSettingsChanged()
MessageViewer::ViewerPrivate::slotCopySelectedText
void slotCopySelectedText()
Copy the selected text to the clipboard.
MessageViewer::ViewerPrivate::slotUrlOpen
void slotUrlOpen(const QUrl &url=QUrl())
An URL has been activate with a click.
MessageViewer::ViewerPrivate::findContentByType
KMime::Content * findContentByType(KMime::Content *content, const QByteArray &type)
MessageViewer::ViewerPrivate::eventFilter
bool eventFilter(QObject *obj, QEvent *ev)
Event filter.
MessageViewer::ViewerPrivate::mSliderContainer
PimCommon::SlideContainer * mSliderContainer
Definition: viewer_p.h:729
MessageViewer::ViewerPrivate::slotUrlOn
void slotUrlOn(const QString &link, const QString &title, const QString &textContent)
The mouse has moved on or off an URL.
QObject::name
const char * name() const
MessageViewer::ViewerPrivate::mMessageItem
Akonadi::Item mMessageItem
Definition: viewer_p.h:636
MessageViewer::ViewerPrivate::slotResetMessageDisplayFormat
void slotResetMessageDisplayFormat()
MessageViewer::ViewerPrivate::slotHideAttachments
void slotHideAttachments()
MessageViewer::ViewerPrivate::showOpenAttachmentFolderWidget
void showOpenAttachmentFolderWidget(const KUrl &url)
MessageViewer::Viewer::ResourceOnlineMode
ResourceOnlineMode
Definition: viewer.h:137
MessageViewer::ViewerPrivate::createWidgets
void createWidgets()
MessageViewer::ViewerPrivate::setMessageItem
void setMessageItem(const Akonadi::Item &item, Viewer::UpdateMode updateMode=Viewer::Delayed)
Set the Akonadi item that will be displayed.
MessageViewer::ViewerPrivate::attachmentEncryptWithChiasmus
void attachmentEncryptWithChiasmus(KMime::Content *content)
MessageViewer::ViewerPrivate::slotAttachmentOpen
void slotAttachmentOpen()
MessageViewer::ViewerPrivate::setExternalWindow
void setExternalWindow(bool b)
MessageViewer::ViewerPrivate::showMessage
void showMessage(KMime::Message::Ptr message, const QString &encoding)
MessageViewer::ViewerPrivate::mSelectEncodingAction
KSelectAction * mSelectEncodingAction
Definition: viewer_p.h:672
MessageViewer::ViewerPrivate::slotSpeakText
void slotSpeakText()
MessageViewer::ViewerPrivate::mHeaderStrategy
HeaderStrategy * mHeaderStrategy
Definition: viewer_p.h:649
MessageViewer::ViewerPrivate::mSaveMessageDisplayFormat
KAction * mSaveMessageDisplayFormat
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::slotUrlPopup
void slotUrlPopup(const QUrl &, const QUrl &imageUrl, const QPoint &mousePos)
The user presses the right mouse button on an URL.
MessageViewer::ViewerPrivate::moveMessageToTrash
void moveMessageToTrash()
QTimer
MessageViewer::ViewerPrivate::~ViewerPrivate
virtual ~ViewerPrivate()
MessageViewer::MailWebView
MailWebView extends KWebView so that it can emit the popupMenu() signal.
Definition: mailwebview.h:47
QObject
MessageViewer::FindBarMailWebView
Definition: findbarmailwebview.h:34
MessageViewer::ViewerPrivate::mToggleDisplayModeAction
KToggleAction * mToggleDisplayModeAction
Definition: viewer_p.h:673
MessageViewer::ViewerPrivate::mMainWindow
QWidget * mMainWindow
Definition: viewer_p.h:665
MessageViewer::ViewerPrivate::saveMainFrameScreenshotInFile
void saveMainFrameScreenshotInFile(const QString &filename)
MessageViewer::ViewerPrivate::mimePartTreeIsEmpty
bool mimePartTreeIsEmpty() const
MessageViewer::ViewerPrivate::slotLoadExternalReference
void slotLoadExternalReference()
MessageViewer::ViewerPrivate::mMonitor
Akonadi::Monitor mMonitor
Definition: viewer_p.h:715
MessageViewer::ViewerPrivate::readGlobalOverrideCodec
void readGlobalOverrideCodec()
Read override codec from configuration.
MessageViewer::ViewerPrivate::goOnline
void goOnline()
MessageViewer::ViewerPrivate::mMessageLoadedHandlers
QSet< AbstractMessageLoadedHandler * > mMessageLoadedHandlers
Definition: viewer_p.h:717
MessageViewer::ViewerPrivate::mExpandUrlAction
KAction * mExpandUrlAction
Definition: viewer_p.h:686
MessageViewer::ViewerPrivate::adjustLayout
void adjustLayout()
MessageViewer::ViewerPrivate::popupMenu
void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint &mousePos)
MessageViewer::ViewerPrivate::readConfig
void readConfig()
Read settings from app's config file.
MessageViewer::ScamDetectionWarningWidget
Definition: scamdetectionwarningwidget.h:26
MessageViewer::ViewerPrivate::prepareHandleAttachment
void prepareHandleAttachment(KMime::Content *node, const QString &fileName)
Sets the current attachment ID and the current attachment temporary filename to the given values...
MessageViewer::ViewerPrivate::displayFormatMessageOverwrite
Viewer::DisplayFormatMessage displayFormatMessageOverwrite() const
Get the html override setting.
MessageViewer::ViewerPrivate::slotEnterpriseHeaders
void slotEnterpriseHeaders()
MessageViewer::ViewerPrivate::slotGrantleeHeaders
void slotGrantleeHeaders()
MessageViewer::ViewerPrivate::mCurrentFileName
QString mCurrentFileName
Definition: viewer_p.h:710
MessageViewer::ViewerPrivate::q
Viewer *const q
Definition: viewer_p.h:712
MessageViewer::ViewerPrivate::setShowRawToltecMail
void setShowRawToltecMail(bool showRawToltecMail)
Definition: viewer_p.h:423
MessageViewer::ViewerPrivate::setAttachmentStrategy
void setAttachmentStrategy(const AttachmentStrategy *strategy)
MessageViewer::ViewerPrivate::showStatusBarMessage
void showStatusBarMessage(const QString &message)
MessageViewer::ViewerPrivate::setPrinting
virtual void setPrinting(bool enable)
Set printing mode.
Definition: viewer_p.h:323
MessageViewer::ViewerPrivate::htmlPart
MailWebView * htmlPart() const
Access to the MailWebView used for the viewer.
Definition: viewer_p.h:213
MessageViewer::ViewerPrivate::replaceMsgByUnencryptedVersion
void replaceMsgByUnencryptedVersion()
MessageViewer::ViewerPrivate::mMessagePartNode
KMime::Content * mMessagePartNode
Definition: viewer_p.h:709
QSet
MessageViewer::ViewerPrivate::slotZoomReset
void slotZoomReset()
MessageViewer::ViewerPrivate::slotInlineAttachments
void slotInlineAttachments()
MessageViewer::ViewerPrivate::mUseFixedFont
bool mUseFixedFont
Definition: viewer_p.h:662
MessageViewer::ViewerPrivate::mShowFullCcAddressList
bool mShowFullCcAddressList
Definition: viewer_p.h:714
MessageViewer::ViewerPrivate::mCopyAction
KAction * mCopyAction
Definition: viewer_p.h:667
QString
QColor
MessageViewer::ViewerPrivate::mLevelQuote
int mLevelQuote
Definition: viewer_p.h:700
MessageViewer::ViewerPrivate::viewer
Viewer * viewer() const
Definition: viewer_p.h:240
QTextCodec
MessageViewer::ViewerPrivate::headerStyle
HeaderStyle * headerStyle() const
Get the message header style.
Definition: viewer_p.h:294
MessageViewer::CSSHelper
Definition: csshelper.h:41
MessageViewer::ViewerPrivate::mLastClickPosition
QPoint mLastClickPosition
Definition: viewer_p.h:692
MessageViewer::ViewerPrivate::nodeHelper
NodeHelper * nodeHelper() const
Definition: viewer_p.h:238
MessageViewer::ViewerPrivate::slotToggleFixedFont
void slotToggleFixedFont()
The user toggled the "Fixed Font" flag from the view menu.
MessageViewer::ViewerPrivate::atmViewMsg
void atmViewMsg(KMime::Message::Ptr message)
View message part of type message/RFC822 in extra viewer window.
MessageViewer::ViewerPrivate::overrideCodec
const QTextCodec * overrideCodec() const
Get codec corresponding to the currently selected override character encoding.
MessageViewer::ViewerPrivate::displaySplashPage
void displaySplashPage(const QString &info)
Display a generic HTML splash page instead of a message.
MessageViewer::ViewerPrivate::setDisplayFormatMessageOverwrite
void setDisplayFormatMessageOverwrite(Viewer::DisplayFormatMessage format)
Override default html mail setting.
MessageViewer::ViewerPrivate::slotShowCreateTodoWidget
void slotShowCreateTodoWidget()
MessageViewer::ViewerPrivate::slotBriefHeaders
void slotBriefHeaders()
MessageViewer::ViewerPrivate::mCanStartDrag
bool mCanStartDrag
Definition: viewer_p.h:693
MessageViewer::ViewerPrivate::saveRelativePosition
void saveRelativePosition()
Saves the relative position of the scroll view.
MessageViewer::ViewerPrivate::mExternalWindow
bool mExternalWindow
Definition: viewer_p.h:705
MessageViewer::ViewerPrivate::mSelectAllAction
KAction * mSelectAllAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::slotLevelQuote
void slotLevelQuote(int l)
MessageViewer::ViewerPrivate::mActionCollection
KActionCollection * mActionCollection
Definition: viewer_p.h:666
MessageViewer::ViewerPrivate::slotZoomIn
void slotZoomIn()
QUrl
MessageViewer::ViewerPrivate::clearSelection
void clearSelection()
MessageViewer::ViewerPrivate::overrideEncoding
QString overrideEncoding() const
Get selected override character encoding.
Definition: viewer_p.h:317
MessageViewer::ViewerPrivate::mIdOfLastViewedMessage
QString mIdOfLastViewedMessage
Definition: viewer_p.h:664
MessageViewer::ViewerPrivate::setZoomTextOnly
void setZoomTextOnly(bool textOnly)
MessageViewer::ViewerPrivate::mZoomTextOnlyAction
KAction * mZoomTextOnlyAction
Definition: viewer_p.h:679
MessageViewer::ViewerPrivate::setHeaderStyleAndStrategy
void setHeaderStyleAndStrategy(HeaderStyle *style, HeaderStrategy *strategy, bool writeInConfigFile=false)
Set the header style and strategy.
MessageViewer::ViewerPrivate::slotAttachmentView
void slotAttachmentView()
MessageViewer::ViewerPrivate::parseContent
void parseContent(KMime::Content *content)
Parse the given content and generate HTML out of it for display.
MessageViewer::ViewerPrivate::mOpenAttachmentFolderWidget
MessageViewer::OpenAttachmentFolderWidget * mOpenAttachmentFolderWidget
Definition: viewer_p.h:724
MessageViewer::ViewerPrivate::slotLongHeaders
void slotLongHeaders()
MessageViewer::ViewerPrivate::mColorBar
HtmlStatusBar * mColorBar
Definition: viewer_p.h:640
MessageViewer::ViewerPrivate::selectedContents
KMime::Content::List selectedContents()
MessageViewer::ViewerPrivate::makeResourceOnline
void makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode mode)
MessageViewer::ViewerPrivate::slotToggleHtmlMode
void slotToggleHtmlMode()
Toggle display mode between HTML and plain text.
QSplitter
type
const char * type
Definition: bodypartformatter.cpp:192
MessageViewer::ViewerPrivate::mZoomResetAction
KAction * mZoomResetAction
Definition: viewer_p.h:679
MessageViewer::NodeHelper
Definition: nodehelper.h:74
MessageViewer::ViewerPrivate::mUrlOpenAction
KAction * mUrlOpenAction
Definition: viewer_p.h:667
MessageViewer::ViewerPrivate::decryptMessage
bool decryptMessage() const
Returns whether the message should be decryted.
MessageViewer::ViewerPrivate::htmlLoadExternal
bool htmlLoadExternal() const
MessageViewer::ViewerPrivate::setShowAttachmentQuicklist
void setShowAttachmentQuicklist(bool showAttachmentQuicklist=true)
MessageViewer::ViewerPrivate::mDisplayFormatMessageOverwrite
Viewer::DisplayFormatMessage mDisplayFormatMessageOverwrite
Definition: viewer_p.h:728
MessageViewer::AttachmentStrategy
Definition: attachmentstrategy.h:46
MessageViewer::HtmlStatusBar
The HTML statusbar widget for use with the reader.
Definition: htmlstatusbar.h:62
MessageViewer::ViewerPrivate::slotAttachmentEdit
void slotAttachmentEdit()
MessageViewer::ViewerPrivate::zoomBy
static const qreal zoomBy
Definition: viewer_p.h:726
MessageViewer::ViewerPrivate::showAttachmentPopup
void showAttachmentPopup(KMime::Content *node, const QString &name, const QPoint &p)
MessageViewer::ViewerPrivate::mBlockImage
KAction * mBlockImage
Definition: viewer_p.h:684
MessageViewer::ViewerPrivate::slotCustomHeaders
void slotCustomHeaders()
MessageViewer::ViewerPrivate::editAttachment
void editAttachment(KMime::Content *node, bool showWarning=true)
Edit the attachment the.
MessageViewer::ViewerPrivate::showAttachmentQuicklist
bool showAttachmentQuicklist() const
MessageViewer::ViewerPrivate::mFindBar
FindBarMailWebView * mFindBar
Definition: viewer_p.h:645
MessageViewer::ViewerPrivate::headerStrategy
HeaderStrategy * headerStrategy() const
Get the message header strategy.
Definition: viewer_p.h:304
MessageViewer::ViewerPrivate::setShowFullToAddressList
void setShowFullToAddressList(bool showFullToAddressList=true)
Show or hide the full list of "To" addresses.
MessageViewer::ViewerPrivate::slotAttachmentCopy
void slotAttachmentCopy()
MessageViewer::ViewerPrivate::update
void update(MessageViewer::Viewer::UpdateMode updateMode=Viewer::Delayed)
Re-parse the current message.
MessageViewer::ViewerPrivate::mShowRawToltecMail
bool mShowRawToltecMail
Definition: viewer_p.h:704
MessageViewer::ViewerPrivate::mCopyImageLocation
KAction * mCopyImageLocation
Definition: viewer_p.h:682
MessageViewer::ViewerPrivate::mZoomTextOnly
bool mZoomTextOnly
Definition: viewer_p.h:706
QAction
MessageViewer::ViewerPrivate::slotZoomTextOnly
void slotZoomTextOnly()
MessageViewer::ViewerPrivate::attachmentOpenWith
void attachmentOpenWith(KMime::Content *node, KService::Ptr offer=KService::Ptr())
MessageViewer::KMMsgEncryptionState
KMMsgEncryptionState
Flags for the encryption state.
Definition: nodehelper.h:51
MessageViewer::ViewerPrivate::mCSSHelper
CSSHelper * mCSSHelper
Definition: viewer_p.h:661
MessageViewer::ViewerPrivate::mZoomOutAction
KAction * mZoomOutAction
Definition: viewer_p.h:679
MessageViewer::ViewerPrivate::mMimePartTree
MimePartTreeView * mMimePartTree
Definition: viewer_p.h:642
MessageViewer::ViewerPrivate::slotIconicAttachments
void slotIconicAttachments()
MessageViewer::ViewerPrivate::slotSaveMessage
void slotSaveMessage()
MessageViewer::ViewerPrivate::showRawToltecMail
bool showRawToltecMail() const
Definition: viewer_p.h:422
MessageViewer::ViewerPrivate::cssHelper
CSSHelper * cssHelper() const
MessageViewer::ViewerPrivate::renderAttachments
QString renderAttachments(KMime::Content *node, const QColor &bgColor) const
MessageViewer::ViewerPrivate::setShowFullCcAddressList
void setShowFullCcAddressList(bool showFullCcAddressList=true)
Show or hide the full list of "To" addresses.
MessageViewer::ViewerPrivate::slotAllHeaders
void slotAllHeaders()
MessageViewer::ViewerPrivate::isAShortUrl
bool isAShortUrl(const KUrl &url) const
MessageViewer::ViewerPrivate::slotExpandShortUrl
void slotExpandShortUrl()
MessageViewer::ViewerPrivate::displayMessage
void displayMessage()
Feeds the HTML viewer with the contents of the given message.
MessageViewer::ViewerPrivate::setMessage
void setMessage(const KMime::Message::Ptr &msg, Viewer::UpdateMode updateMode=Viewer::Delayed)
Set the message that shall be shown.
MessageViewer::ViewerPrivate::injectAttachments
void injectAttachments()
MessageViewer::ViewerPrivate::openAttachment
void openAttachment(KMime::Content *node, const QString &fileName)
Open the attachment pointed to the node.
MessageViewer::ViewerPrivate::message
KMime::Message::Ptr message() const
Definition: viewer_p.h:244
MessageViewer::ViewerPrivate::slotBlockImage
void slotBlockImage()
MessageViewer::ViewerPrivate::slotTranslate
void slotTranslate()
MessageViewer::ObjectTreeParser
Parses messages and generates HTML display code out of them.
Definition: objecttreeparser.h:287
MessageViewer::ViewerPrivate::mTranslatorWidget
PimCommon::TranslatorWidget * mTranslatorWidget
Definition: viewer_p.h:646
MessageViewer::ViewerPrivate::slotZoomOut
void slotZoomOut()
MessageViewer::ViewerPrivate::htmlMail
bool htmlMail() const
MessageViewer::ViewerPrivate::mHtmlLoadExtOverride
bool mHtmlLoadExtOverride
Definition: viewer_p.h:634
MessageViewer::ViewerPrivate::mToggleFixFontAction
KToggleAction * mToggleFixFontAction
Definition: viewer_p.h:673
MessageViewer::ViewerPrivate::mViewer
MailWebView * mViewer
Definition: viewer_p.h:644
MessageViewer::ViewerPrivate::mCreateTodo
MessageViewer::TodoEdit * mCreateTodo
Definition: viewer_p.h:722
MessageViewer::ViewerPrivate::requestConfigSync
void requestConfigSync()
MessageViewer::ViewerPrivate::mResizeTimer
QTimer mResizeTimer
Definition: viewer_p.h:653
MessageViewer::ViewerPrivate::slotAttachmentDelete
void slotAttachmentDelete()
MessageViewer::ViewerPrivate::mHeaderOnlyAttachmentsAction
KToggleAction * mHeaderOnlyAttachmentsAction
Definition: viewer_p.h:671
MessageViewer::ViewerPrivate::mShowAttachmentQuicklist
bool mShowAttachmentQuicklist
Definition: viewer_p.h:703
MessageViewer::ViewerPrivate::selectAll
void selectAll()
Select message body.
MessageViewer::ViewerPrivate::mViewSourceAction
KAction * mViewSourceAction
Definition: viewer_p.h:667
MessageViewer::HtmlWriter
An interface to HTML sinks.
Definition: htmlwriter.h:98
MessageViewer::ViewerPrivate::slotAttachmentSaveAs
void slotAttachmentSaveAs()
MessageViewer::ViewerPrivate::slotDelayedResize
void slotDelayedResize()
Some attachment operations.
MessageViewer::Viewer::Delayed
Definition: viewer.h:134
MessageViewer::ViewerPrivate::mMessagePath
QString mMessagePath
Definition: viewer_p.h:711
MessageViewer::ViewerPrivate::slotAttachmentProperties
void slotAttachmentProperties()
MessageViewer::ViewerPrivate::postProcessMessage
void postProcessMessage(ObjectTreeParser *otp, KMMsgEncryptionState encryptionState)
MessageViewer::ViewerPrivate::mCurrentContent
KMime::Content * mCurrentContent
Definition: viewer_p.h:708
MessageViewer::ViewerPrivate::mTranslateAction
KAction * mTranslateAction
Definition: viewer_p.h:683
MessageViewer::ViewerPrivate::showContextMenu
void showContextMenu(KMime::Content *content, const QPoint &point)
MessageViewer::ViewerPrivate::mScrollUpMoreAction
KAction * mScrollUpMoreAction
Definition: viewer_p.h:667
KJob
MessageViewer::ViewerPrivate::mPrinting
bool mPrinting
Definition: viewer_p.h:663
MessageViewer::ViewerPrivate::mOverrideEncoding
QString mOverrideEncoding
Definition: viewer_p.h:654
MessageViewer::ViewerPrivate::slotSetEncoding
void slotSetEncoding()
MessageViewer::OpenAttachmentFolderWidget
Definition: openattachmentfolderwidget.h:25
MessageViewer::ViewerPrivate::createActions
void createActions()
MessageViewer::ViewerPrivate::slotPrintPreview
void slotPrintPreview()
MessageViewer::ViewerPrivate::printPreviewMessage
void printPreviewMessage(const Akonadi::Item &message)
MessageViewer::ViewerPrivate::writeMsgHeader
QString writeMsgHeader(KMime::Message *aMsg, KMime::Content *vCardNode=0, bool topLevel=false)
Creates a nice mail header depending on the current selected header style.
MessageViewer::ViewerPrivate::attachmentProperties
void attachmentProperties(KMime::Content *node)
MessageViewer::ViewerPrivate::mAttachmentStrategy
const AttachmentStrategy * mAttachmentStrategy
Definition: viewer_p.h:648
MessageViewer::ViewerPrivate::slotSmartAttachments
void slotSmartAttachments()
MessageViewer::ViewerPrivate::slotMimePartSelected
void slotMimePartSelected(const QModelIndex &index)
MessageViewer::ViewerPrivate::attachmentView
void attachmentView(KMime::Content *atmNode)
MessageViewer::ViewerPrivate::slotCopyImageLocation
void slotCopyImageLocation()
MessageViewer::ViewerPrivate::showSignatureDetails
bool showSignatureDetails() const
Show signature details.
MessageViewer::ViewerPrivate::mHtmlMailGlobalSetting
bool mHtmlMailGlobalSetting
Definition: viewer_p.h:634
MessageViewer::ViewerPrivate::mSpeakTextAction
KAction * mSpeakTextAction
Definition: viewer_p.h:681
MessageViewer::ViewerPrivate::mSaveMessageAction
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

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal