00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kfm_run_h__
00021 #define __kfm_run_h__
00022
00023 #include <kparts/browserrun.h>
00024 #include <tqguardedptr.h>
00025 #include <kservice.h>
00026 #include "konq_openurlrequest.h"
00027
00028 class KonqMainWindow;
00029 class KonqView;
00030
00031 class KonqRun : public KParts::BrowserRun
00032 {
00033 Q_OBJECT
00034 public:
00039 KonqRun( KonqMainWindow* mainWindow, KonqView *childView,
00040 const KURL &url, const KonqOpenURLRequest & req = KonqOpenURLRequest(),
00041 bool trustedSource = false );
00042
00043 virtual ~KonqRun();
00044
00048 bool foundMimeType() const { return m_bFoundMimeType; }
00049
00050 KonqView *childView() const { return m_pView; }
00051
00052 const TQString & typedURL() const { return m_req.typedURL; }
00053
00054 KURL mailtoURL() const { return m_mailto; }
00055
00056 protected:
00057 virtual void foundMimeType( const TQString & _type );
00058 virtual void handleError( KIO::Job * job );
00059 virtual void init();
00060 virtual void scanFile();
00061
00062 protected slots:
00063 void slotRedirection( KIO::Job *, const KURL& );
00064
00065 protected:
00066 TQGuardedPtr<KonqMainWindow> m_pMainWindow;
00067 TQGuardedPtr<KonqView> m_pView;
00068 bool m_bFoundMimeType;
00069 KonqOpenURLRequest m_req;
00070 KURL m_mailto;
00071 };
00072
00073 #endif