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 QTextCodec;
00011 class KMReaderWin;
00012 class KMMessage;
00013 class KMMessagePart;
00014 class KAction;
00015 class KActionMenu;
00016 class KMFolderIndex;
00017 template <typename T, typename S> class QMap;
00018 
00019 class KMReaderMainWin : public KMail::SecondaryWindow
00020 {
00021   Q_OBJECT
00022 
00023 public:
00024   KMReaderMainWin( bool htmlOverride, char *name = 0 );
00025   KMReaderMainWin( char *name = 0 );
00026   KMReaderMainWin(KMMessagePart* aMsgPart,
00027     bool aHTML, const QString& aFileName, const QString& pname,
00028     const QTextCodec *codec, char *name = 0 );
00029   virtual ~KMReaderMainWin();
00030   // take ownership of and show @param msg
00031   void showMsg( const QTextCodec *codec, KMMessage *msg );
00032 
00033 private slots:
00034   void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint);
00035 
00037   void copySelectedToFolder( int menuId );
00038   void slotPrintMsg();
00039   void slotReplyToMsg();
00040   void slotReplyAllToMsg();
00041   void slotReplyAuthorToMsg();
00042   void slotReplyListToMsg();
00043   void slotForwardMsg();
00044   void slotForwardAttachedMsg();
00045   void slotRedirectMsg();
00046   void slotBounceMsg();
00047 
00048   void slotConfigChanged();
00049 
00050 private:
00051   void setupAccel();
00052 
00053   KMReaderWin *mReaderWin;
00054   KMMessage *mMsg;
00055   KURL mUrl;
00056   QMap<int,KMFolder*> mMenuToFolder;
00057   // a few actions duplicated from kmmainwidget
00058   KAction *mPrintAction, *mReplyAction, *mReplyAllAction, *mReplyAuthorAction,
00059           *mReplyListAction, *mForwardAction,
00060           *mForwardAttachedAction, *mRedirectAction, *mBounceAction;
00061   KActionMenu *mReplyActionMenu;
00062   KActionMenu *mForwardActionMenu;
00063 
00064 };
00065 
00066 #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 Mon Apr 4 06:44:22 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003