You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
#ifndef KMReaderMainWin_h |
|
#define KMReaderMainWin_h |
|
|
|
#include <kurl.h> |
|
#include "kmtopwidget.h" |
|
|
|
class QTextCodec; |
|
class KMReaderWin; |
|
class KMMessage; |
|
class KMMessagePart; |
|
class KAction; |
|
class KMFolderIndex; |
|
template <typename T, typename S> class QMap; |
|
|
|
class KMReaderMainWin : public KMTopLevelWidget |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
KMReaderMainWin( bool htmlOverride, char *name = 0 ); |
|
KMReaderMainWin( char *name = 0 ); |
|
KMReaderMainWin(KMMessagePart* aMsgPart, |
|
bool aHTML, const QString& aFileName, const QString& pname, |
|
const QTextCodec *codec, char *name = 0 ); |
|
virtual ~KMReaderMainWin(); |
|
// take ownership of and show @param msg |
|
void showMsg( const QTextCodec *codec, KMMessage *msg ); |
|
|
|
private slots: |
|
void slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const QPoint& aPoint); |
|
|
|
/** Copy selected messages to folder with corresponding to given menuid */ |
|
void copySelectedToFolder( int menuId ); |
|
|
|
private: |
|
void setupAccel(); |
|
|
|
KMReaderWin *mReaderWin; |
|
KMMessage *mMsg; |
|
KURL mUrl; |
|
QMap<int,KMFolder*> mMenuToFolder; |
|
}; |
|
|
|
#endif /*KMReaderMainWin_h*/
|
|
|