00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KSHOWMAILDOC_H
00019 #define KSHOWMAILDOC_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025
00026 #include <qobject.h>
00027 #include <qstring.h>
00028
00029
00030 #include <kurl.h>
00031
00032
00033 class KshowmailView;
00034
00045 class KshowmailDoc : public QObject
00046 {
00047 Q_OBJECT
00048 public:
00050 KshowmailDoc(QWidget *parent, const char *name=0);
00052 ~KshowmailDoc();
00053
00055 void addView(KshowmailView *view);
00057 void removeView(KshowmailView *view);
00059 bool newDocument();
00061 const KURL& URL() const;
00063 void setURL(const KURL& url);
00064
00065 public slots:
00069 void slotUpdateAllViews(KshowmailView *sender);
00070
00071 public:
00073
00074 static KshowmailView *pView;
00075
00076 private:
00078 KURL doc_url;
00079 };
00080
00081 #endif // KSHOWMAILDOC_H