28 #include "akregator_run.h"
33 BrowserRun::BrowserRun(TQWidget* mainWindow, Viewer* currentViewer, const KURL& url, const KParts::URLArgs& args, OpeningMode mode)
34 : KParts::BrowserRun(url, args, 0L, mainWindow, false, false, true)
36 m_currentViewer = currentViewer;
39 if (mode == CURRENT_TAB)
41 connect(m_currentViewer, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotViewerDeleted()));
43 setEnableExternalBrowser( false);
46 BrowserRun::~BrowserRun()
48 kdDebug() << "BrowserRun::~BrowserRun()" << endl;
51 void BrowserRun::foundMimeType( const TQString & type )
53 if (type== "text/html" ||type== "text/xml" || type== "application/xhtml+xml")
54 emit signalOpenInViewer(url(), m_currentViewer, m_openingMode);
56 if ( handleNonEmbeddable(type) == KParts::BrowserRun::NotHandled )
57 KRun::foundMimeType( type );
60 void BrowserRun::slotViewerDeleted()
65 m_openingMode = NEW_TAB_FOREGROUND;
70 #include "akregator_run.moc"
|