reflect changes at mimetreeparser/messageviewer

wilder-work
Sandro Knauß 8 years ago
parent 5bbaa65730
commit 4942b283ed
  1. 2
      CMakeLists.txt
  2. 2
      src/kmcommands.cpp
  3. 4
      src/kmcommands.h
  4. 4
      src/kmmainwidget.cpp
  5. 6
      src/kmreaderwin.cpp
  6. 4
      src/kmreaderwin.h

@ -67,7 +67,7 @@ find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED DBus Network Test Widget
set(LIBGRAVATAR_VERSION_LIB "5.6.80") set(LIBGRAVATAR_VERSION_LIB "5.6.80")
set(MAILCOMMON_LIB_VERSION_LIB "5.6.80") set(MAILCOMMON_LIB_VERSION_LIB "5.6.80")
set(KDEPIM_APPS_LIB_VERSION_LIB "5.6.80") set(KDEPIM_APPS_LIB_VERSION_LIB "5.6.80")
set(MESSAGELIB_LIB_VERSION_LIB "5.6.80") set(MESSAGELIB_LIB_VERSION_LIB "5.6.81")
set(LIBKLEO_LIB_VERSION_LIB "5.6.80") set(LIBKLEO_LIB_VERSION_LIB "5.6.80")
set(PIMCOMMON_LIB_VERSION_LIB "5.6.80") set(PIMCOMMON_LIB_VERSION_LIB "5.6.80")
set(LIBKDEPIM_LIB_VERSION_LIB "5.6.80") set(LIBKDEPIM_LIB_VERSION_LIB "5.6.80")

@ -1121,7 +1121,7 @@ void KMPrintCommand::setOverrideFont(const QFont &font)
mOverrideFont = font; mOverrideFont = font;
} }
void KMPrintCommand::setAttachmentStrategy(const MimeTreeParser::AttachmentStrategy *strategy) void KMPrintCommand::setAttachmentStrategy(const MessageViewer::AttachmentStrategy *strategy)
{ {
mAttachmentStrategy = strategy; mAttachmentStrategy = strategy;
} }

@ -385,14 +385,14 @@ public:
const QString &encoding = QString()); const QString &encoding = QString());
void setOverrideFont(const QFont &); void setOverrideFont(const QFont &);
void setAttachmentStrategy(const MimeTreeParser::AttachmentStrategy *strategy); void setAttachmentStrategy(const MessageViewer::AttachmentStrategy *strategy);
void setPrintPreview(bool preview); void setPrintPreview(bool preview);
private: private:
Result execute() override; Result execute() override;
MessageViewer::HeaderStylePlugin *mHeaderStylePlugin = nullptr; MessageViewer::HeaderStylePlugin *mHeaderStylePlugin = nullptr;
const MimeTreeParser::AttachmentStrategy *mAttachmentStrategy = nullptr; const MessageViewer::AttachmentStrategy *mAttachmentStrategy = nullptr;
QFont mOverrideFont; QFont mOverrideFont;
QString mEncoding; QString mEncoding;
MessageViewer::Viewer::DisplayFormatMessage mFormat; MessageViewer::Viewer::DisplayFormatMessage mFormat;

@ -88,7 +88,7 @@ using KSieveUi::SieveDebugDialog;
#include "messageviewer/headerstyleplugin.h" #include "messageviewer/headerstyleplugin.h"
#include "messageviewer/headerstyle.h" #include "messageviewer/headerstyle.h"
#include <MimeTreeParser/AttachmentStrategy> #include <MessageViewer/AttachmentStrategy>
#ifndef QT_NO_CURSOR #ifndef QT_NO_CURSOR
#include "Libkdepim/KCursorSaver" #include "Libkdepim/KCursorSaver"
@ -198,7 +198,7 @@ using KPIM::ProgressManager;
using KPIM::BroadcastStatus; using KPIM::BroadcastStatus;
using KMail::SearchWindow; using KMail::SearchWindow;
using KMime::Types::AddrSpecList; using KMime::Types::AddrSpecList;
using MimeTreeParser::AttachmentStrategy; using MessageViewer::AttachmentStrategy;
Q_GLOBAL_STATIC(KMMainWidget::PtrList, theMainWidgetList) Q_GLOBAL_STATIC(KMMainWidget::PtrList, theMainWidgetList)

@ -53,7 +53,7 @@ using MessageViewer::CSSHelper;
using namespace MessageViewer; using namespace MessageViewer;
#include <MessageCore/MessageCoreSettings> #include <MessageCore/MessageCoreSettings>
#include <MimeTreeParser/AttachmentStrategy> #include <MessageViewer/AttachmentStrategy>
#include <MessageComposer/MessageSender> #include <MessageComposer/MessageSender>
#include "MessageComposer/Composer" #include "MessageComposer/Composer"
#include "MessageComposer/TextPart" #include "MessageComposer/TextPart"
@ -232,7 +232,7 @@ void KMReaderWin::readConfig(void)
mViewer->readConfig(); mViewer->readConfig();
} }
void KMReaderWin::setAttachmentStrategy(const MimeTreeParser::AttachmentStrategy *strategy) void KMReaderWin::setAttachmentStrategy(const MessageViewer::AttachmentStrategy *strategy)
{ {
mViewer->setAttachmentStrategy(strategy); mViewer->setAttachmentStrategy(strategy);
} }
@ -524,7 +524,7 @@ void KMReaderWin::setDecryptMessageOverwrite(bool overwrite)
mViewer->setDecryptMessageOverwrite(overwrite); mViewer->setDecryptMessageOverwrite(overwrite);
} }
const MimeTreeParser::AttachmentStrategy *KMReaderWin::attachmentStrategy() const const MessageViewer::AttachmentStrategy *KMReaderWin::attachmentStrategy() const
{ {
return mViewer->attachmentStrategy(); return mViewer->attachmentStrategy();
} }

@ -60,9 +60,9 @@ public:
void readConfig(); void readConfig();
/** Get/set the message attachment strategy. */ /** Get/set the message attachment strategy. */
const MimeTreeParser::AttachmentStrategy *attachmentStrategy() const; const MessageViewer::AttachmentStrategy *attachmentStrategy() const;
void setAttachmentStrategy(const MimeTreeParser::AttachmentStrategy *strategy); void setAttachmentStrategy(const MessageViewer::AttachmentStrategy *strategy);
/** Get selected override character encoding. /** Get selected override character encoding.
@return The encoding selected by the user or an empty string if auto-detection @return The encoding selected by the user or an empty string if auto-detection

Loading…
Cancel
Save