kmail Library API Documentation

kmreadermainwin.h

00001 // -*- mode: C++; c-file-style: "gnu" -*-
00002 
00003 #ifndef KMReaderMainWin_h
00004 #define KMReaderMainWin_h
00005 
00006 #include "secondarywindow.h"
00007 
00008 #include <kurl.h>
00009 
00010 class KMReaderWin;
00011 class KMMessage;
00012 class KMMessagePart;
00013 class KAction;
00014 class KActionMenu;
00015 class KMFolderIndex;
00016 template <typename T, typename S> class QMap;
00017 
00018 class KMReaderMainWin : public KMail::SecondaryWindow
00019 {
00020   Q_OBJECT
00021 
00022 public:
00023   KMReaderMainWin( bool htmlOverride, char *name = 0 );
00024   KMReaderMainWin( char *name = 0 );
00025   KMReaderMainWin(KMMessagePart* aMsgPart,
00026     bool aHTML, const QString& aFileName, const QString& pname,
00027     const QString & encoding, char *name = 0 );
00028   virtual ~KMReaderMainWin();
00029   // take ownership of and show @param msg
00030   void showMsg( const QString & encoding, KMMessage *msg );
00031 
00032 private slots:
00033   void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint);
00034 
00036   void copySelectedToFolder( int menuId );
00037   void slotPrintMsg();
00038   void slotReplyToMsg();
00039   void slotReplyAllToMsg();
00040   void slotReplyAuthorToMsg();
00041   void slotReplyListToMsg();
00042   void slotForwardMsg();
00043   void slotForwardAttachedMsg();
00044   void slotRedirectMsg();
00045   void slotBounceMsg();
00046 
00047   void slotConfigChanged();
00048 
00049  protected slots:
00051   void slotUpdateToolbars();
00052   void slotEditKeys();
00053   void slotEditToolbars();
00054 
00055 private:
00056   void setupAccel();
00057 
00058   KMReaderWin *mReaderWin;
00059   KMMessage *mMsg;
00060   KURL mUrl;
00061   QMap<int,KMFolder*> mMenuToFolder;
00062   // a few actions duplicated from kmmainwidget
00063   KAction *mPrintAction, *mReplyAction, *mReplyAllAction, *mReplyAuthorAction,
00064           *mReplyListAction, *mForwardInlineAction,
00065           *mForwardAttachedAction, *mRedirectAction, *mBounceAction;
00066   KAction *mCopyMsgTextAction, *mSelectAllTextAction;
00067   KActionMenu *mReplyActionMenu;
00068   KActionMenu *mForwardActionMenu;
00069 
00070 };
00071 
00072 #endif /*KMReaderMainWin_h*/
KDE Logo
This file is part of the documentation for kmail Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:20:16 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003