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

kmail

  • sources
  • kde-4.12
  • 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 #include <boost/scoped_ptr.hpp>
12 #include <akonadi/item.h>
13 #include <akonadi/collection.h>
14 #include <QModelIndex>
15 class KMReaderWin;
16 class KAction;
17 class KFontAction;
18 class KFontSizeAction;
19 class KJob;
20 template <typename T, typename S> class QMap;
21 
22 namespace KMail {
23 class MessageActions;
24 }
25 
26 namespace KMime {
27  class Message;
28  class Content;
29 }
30 Q_DECLARE_METATYPE(QModelIndex)
31 
32 class KMReaderMainWin : public KMail::SecondaryWindow
33 {
34  Q_OBJECT
35 
36 public:
37  KMReaderMainWin( bool htmlOverride, bool htmlLoadExtOverride, char *name = 0 );
38  explicit KMReaderMainWin( char *name = 0 );
39  KMReaderMainWin( KMime::Content* aMsgPart, bool aHTML, const QString &encoding, char *name = 0 );
40  virtual ~KMReaderMainWin();
41 
42  void setUseFixedFont( bool useFixedFont );
43 
52  void showMessage( const QString & encoding, const Akonadi::Item &msg, const Akonadi::Collection & parentCollection = Akonadi::Collection());
53 
54  void showMessage( const QString & encoding, KMime::Message::Ptr message);
55  void showMessagePopup(const Akonadi::Item&msg ,const KUrl&aUrl,const KUrl &imageUrl,const QPoint& aPoint, bool contactAlreadyExists, bool uniqueContactFound);
56 
57 private slots:
58  void slotMessagePopup(const Akonadi::Item& ,const KUrl&,const KUrl &imageUrl,const QPoint& );
59  void slotContactSearchJobForMessagePopupDone(KJob*);
60  void slotTrashMsg();
61  void slotForwardInlineMsg();
62  void slotForwardAttachedMsg();
63  void slotRedirectMsg();
64  void slotFontAction(const QString &);
65  void slotSizeAction(int);
66  void slotCustomReplyToMsg( const QString &tmpl );
67  void slotCustomReplyAllToMsg( const QString &tmpl );
68  void slotCustomForwardMsg( const QString &tmpl );
69 
70  void slotEditToolbars();
71  void slotConfigChanged();
72  void slotUpdateToolbars();
73 
76  void slotReplyOrForwardFinished();
77  void slotCopyItem(QAction*);
78  void slotCopyResult( KJob * job );
79 
80 private:
81  Akonadi::Collection parentCollection() const;
82  void initKMReaderMainWin();
83  void setupAccel();
84  KAction *copyActionMenu(QMenu *menu);
85 
86  KMReaderWin *mReaderWin;
87  Akonadi::Item mMsg;
88  // a few actions duplicated from kmmainwidget
89  KAction *mTrashAction, *mSaveAtmAction;
90  KFontAction *mFontAction;
91  KFontSizeAction *mFontSizeAction;
92  KMail::MessageActions *mMsgActions;
93  Akonadi::Collection mParentCollection;
94 
95 };
96 
97 #endif /*KMReaderMainWin_h*/
KMReaderWin
This class implements a "reader window", that is a window used for reading or viewing messages...
Definition: kmreaderwin.h:50
KMail::MessageActions
Manages common actions that can be performed on one or more messages.
Definition: messageactions.h:59
secondarywindow.h
QMenu
KMReaderMainWin
Definition: kmreadermainwin.h:32
KJob
QMap
Definition: kmmainwidget.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 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

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