messageviewer
viewer.cpp
Go to the documentation of this file.
74 connect( d_ptr, SIGNAL(makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode)), SIGNAL(makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode)) );
77 connect( d_ptr, SIGNAL(showMessage(KMime::Message::Ptr,QString)), this, SIGNAL(showMessage(KMime::Message::Ptr,QString)) );
82 connect( d_ptr, SIGNAL(changeDisplayMail(Viewer::DisplayFormatMessage,bool)), SLOT(slotChangeDisplayMail(Viewer::DisplayFormatMessage,bool)) );
85 connect( KGlobalSettings::self(), SIGNAL(kdisplayFontChanged()), d_ptr, SLOT(slotGeneralFontChanged()) );
HeaderStrategy * headerStrategy() const
Definition: viewer.cpp:409
void showStatusBarMessage(const QString &message)
Emitted when a status bar message is shown.
Type type() const
virtual void resizeEvent(QResizeEvent *)
Definition: viewer.cpp:161
void moveMessageToTrash()
Configure widget that can be used in a KConfigDialog.
Definition: configurewidget.h:37
This class encapsulates the visual appearance of message headers.
Definition: headerstyle.h:60
void enableMessageDisplay()
Enable the displaying of messages again after an splash (or other) page was displayed.
Definition: viewer.cpp:131
bool atBottom() const
Returns true if the message view is scrolled to the bottom.
Definition: viewer.cpp:211
void setUseFixedFont(bool useFixedFont)
Definition: viewer.cpp:290
KAction * resetMessageDisplayFormatAction()
Definition: viewer.cpp:652
void setMessageItem(const Akonadi::Item &item, UpdateMode updateMode=Delayed)
Set the Akonadi item that will be displayed.
Definition: viewer.cpp:99
bool isAShortUrl(const KUrl &url) const
Definition: viewer.cpp:685
void setAttachmentStrategy(const AttachmentStrategy *strategy)
Definition: viewer.cpp:359
void setMessagePath(const QString &path)
Set the path to the message in terms of Akonadi collection hierarchy.
Definition: viewer.cpp:119
bool htmlLoadExtOverride() const
Get the load external references override setting.
Definition: viewer.cpp:266
void setMessagePart(KMime::Content *aMsgPart)
Instead of settings a message to be shown sets a message part to be shown.
Definition: viewer.cpp:512
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
void setHeaderStyleAndStrategy(HeaderStyle *style, HeaderStrategy *strategy)
Definition: viewer.cpp:421
Akonadi::Item messageItem() const
Returns the current message item displayed in the viewer.
Definition: viewer.cpp:322
Definition: headerstrategy.h:42
void setMessage(KMime::Message::Ptr message, UpdateMode updateMode=Delayed)
Set the message that shall be shown.
Definition: viewer.cpp:90
const AttachmentStrategy * attachmentStrategy() const
Definition: viewer.cpp:353
void update()
void copySelectionToClipboard()
Definition: viewer.cpp:591
static Akonadi::ItemFetchJob * createFetchJob(const Akonadi::Item &item)
Create an item fetch job that is suitable for using to fetch the message item that will be displayed ...
Definition: viewer.cpp:539
Private class for the Viewer, the main widget in the messageviewer library.
Definition: viewer_p.h:180
void setDisplayFormatMessageOverwrite(Viewer::DisplayFormatMessage format)
Override default html mail setting.
Definition: viewer.cpp:248
KAction * expandShortUrlAction()
Definition: viewer.cpp:691
void saveMainFrameScreenshotInFile(const QString &filename)
Definition: viewer.cpp:658
bool htmlMail() const
Is html mail to be supported? Takes into account override.
Definition: viewer.cpp:272
void printMessage(const Akonadi::Item &msg)
Sets a message as the current one and print it immediately.
Definition: viewer.cpp:137
void displaySplashPage(const QString &info)
Display a generic HTML splash page instead of a message.
Definition: viewer.cpp:125
void printPreviewMessage(const Akonadi::Item &message)
Definition: viewer.cpp:143
void setHtmlLoadExtOverride(bool override)
Override default load external references setting.
Definition: viewer.cpp:254
void addMessageLoadedHandler(AbstractMessageLoadedHandler *handler)
Adds a handler for actions that will be executed when the message has been loaded into the view...
Definition: viewer.cpp:555
KAction * saveMessageDisplayFormatAction()
Definition: viewer.cpp:646
void showReader(KMime::Content *aMsgPart, bool aHTML, const QString &encoding)
Emitted when the content should be shown in a separate window.
void setScrollBarPolicy(Qt::Orientation orientation, Qt::ScrollBarPolicy policy)
Sets the scrollbar policy for the scrollbar defined by orientation to policy.
Definition: viewer.cpp:549
void setAppName(const QString &appName)
Set the application name that is shown when the splash screen is active.
Definition: viewer.cpp:260
Definition: csshelper.h:41
void slotScrollUp(int pixels=10)
HTML Widget scrollbar and layout handling.
Definition: viewer.cpp:199
void setOverrideEncoding(const QString &encoding)
Definition: viewer.cpp:371
KToggleAction * toggleFixFontAction()
Definition: viewer.cpp:385
void popupMenu(const Akonadi::Item &msg, const KUrl &url, const KUrl &imageUrl, const QPoint &mousePos)
The user presses the right mouse button.
void showOpenAttachmentFolderWidget(const KUrl &url)
Definition: viewer.cpp:709
Viewer::DisplayFormatMessage displayFormatMessageOverwrite() const
Get the html override setting.
Definition: viewer.cpp:242
KMime::Message::Ptr message() const
Returns the current message displayed in the viewer.
Definition: viewer.cpp:316
void makeResourceOnline(MessageViewer::Viewer::ResourceOnlineMode mode)
void showMessage(KMime::Message::Ptr message, const QString &encoding)
Emitted when the message should be shown in a separate window.
void deleteMessage()
Initiates a delete, by sending a signal to delete the message item.
Definition: viewer.cpp:572
void setDecryptMessageOverwrite(bool overwrite=true)
Enforce message decryption.
Definition: viewer.cpp:302
bool mimePartTreeIsEmpty() const
Definition: viewer.cpp:391
Viewer(QWidget *parent, QWidget *mainWindow=0, KActionCollection *actionCollection=0, Qt::WindowFlags f=0)
Create a mail viewer widget.
Definition: viewer.cpp:52
typedef WindowFlags
QString messagePath() const
The path to the message in terms of Akonadi collection hierarchy.
Definition: viewer.cpp:113
KToggleAction * toggleMimePartTreeAction()
Definition: viewer.cpp:397
Definition: viewer.h:133
void slotChangeDisplayMail(Viewer::DisplayFormatMessage, bool)
Definition: viewer.cpp:639
virtual void closeEvent(QCloseEvent *event)
void itemRemoved()
Emitted when the item, previously set with setMessageItem, has been removed.
void removeMessageLoadedHandler(AbstractMessageLoadedHandler *handler)
Removes the handler for actions that will be executed when the message has been loaded into the view...
Definition: viewer.cpp:565
void replaceMsgByUnencryptedVersion()
Emitted after parsing of a message to have it stored in unencrypted state in it's folder...
Definition: viewer.h:134
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void requestConfigSync()
virtual bool event(QEvent *event)
An interface to plug in a handler that is called when an message item has been loaded into the view...
Definition: viewer.h:58
QAbstractItemModel * messageTreeModel() const
A QAIM tree model of the message structure.
Definition: viewer.cpp:530
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.