23 #include "tdehtmlpart_p.h"
24 #include "tdehtml_run.h"
25 #include <tdeio/job.h>
28 #include "tdehtml_ext.h"
31 TDEHTMLRun::TDEHTMLRun(
TDEHTMLPart *part, tdehtml::ChildFrame *child,
const KURL &url,
33 : KParts::BrowserRun( url, args, part, part->widget() ? part->widget()->topLevelWidget() : 0,
34 false, false, hideErrorDialog ),
38 setEnableExternalBrowser(
false);
47 void TDEHTMLRun::foundMimeType(
const TQString &_type )
49 Q_ASSERT(!m_bFinished);
50 TQString mimeType = _type;
51 if (
static_cast<TDEHTMLPart *
>(m_part)->processObjectRequest( m_child, m_strURL, mimeType ) )
58 if ( res == KParts::BrowserRun::Delayed )
60 m_bFinished = ( res == KParts::BrowserRun::Handled );
62 m_child->m_bCompleted =
true;
63 static_cast<TDEHTMLPart *
>(m_part)->checkCompleted();
69 m_timer.start( 0,
true );
74 KRun::foundMimeType( mimeType );
77 m_child->m_bCompleted =
true;
78 static_cast<TDEHTMLPart *
>(m_part)->checkCompleted();
81 void TDEHTMLRun::save(
const KURL & url,
const TQString & suggestedFilename )
83 TDEHTMLPopupGUIClient::saveURL( m_part->widget(), i18n(
"Save As" ), url, m_args.metaData(), TQString::null, 0, suggestedFilename );
87 void TDEHTMLRun::handleError( TDEIO::Job *job )
92 #include "tdehtml_run.moc"
virtual void handleError(TDEIO::Job *job)
void started(TDEIO::Job *)
This class is tdehtml's main class.