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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
kmreadermainwin.h
Go to the documentation of this file.
1 // -*- mode: C++; c-file-style: "gnu" -*-
2 
3 #ifndef KMReaderMainWin_h
4 #define KMReaderMainWin_h
5 
6 #include "secondarywindow.h"
7 
8 #include <kurl.h>
9 #include <KMime/Message>
10 
11 #ifndef Q_MOC_RUN
12 #include <boost/scoped_ptr.hpp>
13 #endif
14 #include <akonadi/item.h>
15 #include <akonadi/collection.h>
16 #include <QModelIndex>
17 #include <messageviewer/viewer/viewer.h>
18 class KMReaderWin;
19 class KAction;
20 class KFontAction;
21 class KFontSizeAction;
22 class KJob;
23 
24 namespace KMail {
25 class MessageActions;
26 }
27 
28 namespace KMime {
29 class Message;
30 class Content;
31 }
32 Q_DECLARE_METATYPE(QModelIndex)
33 
34 class KMReaderMainWin : public KMail::SecondaryWindow
35 {
36  Q_OBJECT
37 
38 public:
39  KMReaderMainWin( MessageViewer::Viewer::DisplayFormatMessage format, bool htmlLoadExtOverride, char *name = 0 );
40  explicit KMReaderMainWin( char *name = 0 );
41  KMReaderMainWin( KMime::Content* aMsgPart, MessageViewer::Viewer::DisplayFormatMessage format, const QString &encoding, char *name = 0 );
42  virtual ~KMReaderMainWin();
43 
44  void setUseFixedFont( bool useFixedFont );
45 
54  void showMessage( const QString & encoding, const Akonadi::Item &msg, const Akonadi::Collection & parentCollection = Akonadi::Collection());
55 
56  void showMessage( const QString & encoding, KMime::Message::Ptr message);
57  void showMessagePopup(const Akonadi::Item&msg ,const KUrl&aUrl,const KUrl &imageUrl,const QPoint& aPoint, bool contactAlreadyExists, bool uniqueContactFound);
58 
59 private slots:
60  void slotMessagePopup(const Akonadi::Item& ,const KUrl&,const KUrl &imageUrl,const QPoint& );
61  void slotContactSearchJobForMessagePopupDone(KJob*);
62  void slotTrashMsg();
63  void slotForwardInlineMsg();
64  void slotForwardAttachedMsg();
65  void slotRedirectMsg();
66  void slotFontAction(const QString &);
67  void slotSizeAction(int);
68  void slotCustomReplyToMsg( const QString &tmpl );
69  void slotCustomReplyAllToMsg( const QString &tmpl );
70  void slotCustomForwardMsg( const QString &tmpl );
71 
72  void slotEditToolbars();
73  void slotConfigChanged();
74  void slotUpdateToolbars();
75 
78  void slotReplyOrForwardFinished();
79  void slotCopyItem(QAction*);
80  void slotCopyMoveResult( KJob * job );
81  void slotMoveItem(QAction *action);
82 
83 private:
84  void copyOrMoveItem(const Akonadi::Collection &collection, bool move);
85  Akonadi::Collection parentCollection() const;
86  void initKMReaderMainWin();
87  void setupAccel();
88  void changeFont(const QFont &f);
89  KAction *copyActionMenu(QMenu *menu);
90  KAction *moveActionMenu(QMenu *menu);
91 
92  KMReaderWin *mReaderWin;
93  Akonadi::Item mMsg;
94  // a few actions duplicated from kmmainwidget
95  KAction *mTrashAction, *mSaveAtmAction;
96  KFontAction *mFontAction;
97  KFontSizeAction *mFontSizeAction;
98  KMail::MessageActions *mMsgActions;
99  Akonadi::Collection mParentCollection;
100 };
101 
102 #endif /*KMReaderMainWin_h*/
QModelIndex
KMReaderWin
This class implements a "reader window", that is a window used for reading or viewing messages...
Definition: kmreaderwin.h:49
QFont
KMail::MessageActions
Manages common actions that can be performed on one or more messages.
Definition: messageactions.h:50
QPoint
secondarywindow.h
QString
QMenu
QAction
KMReaderMainWin
Definition: kmreadermainwin.h:34
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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