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    void setUseFixedFont( bool useFixedFont );
00031   // take ownership of and show @param msg
00032   void showMsg( const QTextCodec *codec, KMMessage *msg );
00033 
00034 private slots:
00035   void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint);
00036 
00038   void copySelectedToFolder( int menuId );
00039   void slotPrintMsg();
00040   void slotReplyToMsg();
00041   void slotReplyAllToMsg();
00042   void slotReplyAuthorToMsg();
00043   void slotReplyListToMsg();
00044   void slotForwardMsg();
00045   void slotForwardAttachedMsg();
00046   void slotRedirectMsg();
00047   void slotBounceMsg();
00048 
00049   void slotConfigChanged();
00050 
00051 private:
00052   void setupAccel();
00053 
00054   KMReaderWin *mReaderWin;
00055   KMMessage *mMsg;
00056   KURL mUrl;
00057   QMap<int,KMFolder*> mMenuToFolder;
00058   // a few actions duplicated from kmmainwidget
00059   KAction *mPrintAction, *mReplyAction, *mReplyAllAction, *mReplyAuthorAction,
00060           *mReplyListAction, *mForwardAction,
00061           *mForwardAttachedAction, *mRedirectAction, *mBounceAction;
00062   KActionMenu *mReplyActionMenu;
00063   KActionMenu *mForwardActionMenu;
00064 
00065 };
00066 
00067 #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 04:48:29 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003