connect( m_boardList, SIGNAL( contextMenuRequested( QListViewItem*, const QPoint&, int ) ),
SLOT( slotContextMenuRequested( QListViewItem*, const QPoint&, int ) ) );
connect( Kita::FavoriteBoards::getInstance(), SIGNAL( changed() ), SLOT( refreshFavoriteBoards() ) );
- connect( this, SIGNAL( openURLRequestExt( const KURL&, const KParts::URLArgs&, QString, int, const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt( const KURL& , const KParts::URLArgs&, QString, int, const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
connect( this, SIGNAL( openBoard( const KURL& ) ), signalCollection, SIGNAL( openBoard( const KURL& ) ) );
connect( SearchCombo, SIGNAL( textChanged( const QString& ) ),
SLOT( filter( const QString& ) ) );
switch ( popup.exec( point ) ) {
case Menu_OpenWithBrowser:
- emit openURLRequestExt( boardURL, KParts::URLArgs(), "text/html" );
+ emit openURLRequestExt( boardURL, "text/html" );
break;
case Menu_OpenWithNewTab:
emit openBoard( boardURL );
signals:
void openBoard( const KURL& url );
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void sigShowSubject();
};
SLOT( slotMouseButtonClicked( int, QListViewItem* ) ) );
connect( this, SIGNAL( bookmarked( const QString&, bool ) ),
Kita::SignalCollection::getInstance(), SIGNAL( bookmarked( const QString&, bool ) ) );
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- Kita::SignalCollection::getInstance(), SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ Kita::SignalCollection::getInstance(), SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
connect( this, SIGNAL( openThread( const KURL& ) ),
Kita::SignalCollection::getInstance(), SIGNAL( openThread( const KURL& ) ) );
}
void slotSearchButton();
signals:
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void openThread( const KURL& url );
void bookmarked( const QString& datURL, bool on );
};
connect( this, SIGNAL( setMainCaption( const QString& ) ),
signalCollection, SIGNAL( setMainCaption( const QString& ) ) );
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
}
void setMainURLLine( const KURL& url );
void setMainCaption( const QString& captionStr );
void setMainStatusbar( const QString& statusStr );
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
};
* @param usrUrl1 dat's URL(image viewer only)
*
*/
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0, const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void setMainURLLine( const KURL& url );
void setMainCaption( const QString& captionStr );
void setMainStatusbar( const QString& statusStr );
connect( signalCollection, SIGNAL( openURLRequest( const KURL&, const KParts::URLArgs& ) ),
SLOT( slotOpenURLRequest( const KURL&, const KParts::URLArgs& ) ) );
- connect( signalCollection, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- SLOT( slotOpenURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ SLOT( slotOpenURLRequestExt( const KURL&, const QString ) ) );
connect( signalCollection, SIGNAL( setMainCaption( const QString& ) ),
SLOT( slotSetMainCaption( const QString& ) ) );
/* open url */ /* public slot */ /* obsolete */
void KitaMainWindow::slotOpenURLRequest( const KURL& url, const KParts::URLArgs& args )
{
- slotOpenURLRequestExt( url, args );
+ slotOpenURLRequestExt( url );
}
void KitaMainWindow::slotOpenBoard( const KURL& url )
if mimetype == QString::null, use KIO::NetAccess::mimetype to decide mime type of url.
*/ /* public slot */
-void KitaMainWindow::slotOpenURLRequestExt(
- const KURL& url, const KParts::URLArgs& args,
- QString mimetype,
- int usr1,
- const KURL& usrUrl1 )
+void KitaMainWindow::slotOpenURLRequestExt( const KURL& url, const QString mimetype )
{
// FIXME: support be.2ch.net
if ( url.host() == "be.2ch.net" && url.path().contains( "/test/p.php", true ) < 1 ) {
}
kdDebug() << QString( "Requested OpenURL: \"%1\"" ).arg( url.url() ) << endl;
- kdDebug() << QString( "content type: \"%1\"" ).arg( args.contentType() ) << endl;
- kdDebug() << QString( "service type: \"%1\"" ).arg( args.serviceType ) << endl;
- kdDebug() << QString( "NewTab: %1, reload: %2" )
- .arg( args.newTab() ? "yes" : "no" )
- .arg( args.reload ? "yes" : "no" ) << endl;
/* open url with web browser, etc. */
if ( mimetype != QString::null ) {
}
if ( mimetype == QString::null ) {
- mimetype = KIO::NetAccess::mimetype( url , this );
+ QString url_mimetype = KIO::NetAccess::mimetype( url , this );
+ kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( url_mimetype ) << endl;
+ KRun::runURL( url, url_mimetype );
+ } else {
+ kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( mimetype ) << endl;
+ KRun::runURL( url, mimetype );
}
- kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( mimetype ) << endl;
-
- KRun::runURL( url, mimetype );
}
void KitaMainWindow::slotSetMainCaption( const QString& captionStr )
void slotOpenBoard( const KURL& url );
void slotOpenThread( const KURL& url );
void slotOpenURLRequest( const KURL& url, const KParts::URLArgs& );
- void slotOpenURLRequestExt( const KURL& url, const KParts::URLArgs& args,
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void slotOpenURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void slotSetMainCaption( const QString& captionStr );
void slotSetMainStatusbar( const QString& statusStr );
void slotURLLine();
connect( signalCollection, SIGNAL( windowDeactivated() ), SLOT( slotHideChildPopup() ) );
/* click */
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
/* write dock */
connect( this, SIGNAL( activateThreadView( const KURL& ) ),
break;
case ID_Open_Browser:
- emit openURLRequestExt( url, KParts::URLArgs(), "text/html" );
+ emit openURLRequestExt( url, "text/html" );
break;
case ID_Home_Link: gotoAnchor( "header", FALSE ); break;
case WRITEMENU_SHOWBROWSER:
str = Kita::DatManager::threadURL( m_datURL ) + "/" + QString().setNum( resNum );
- emit openURLRequestExt( str, KParts::URLArgs(), "text/html" );
+ emit openURLRequestExt( str, "text/html" );
break;
case WRITEMENU_ABONENAME:
break;
case BEMENU_SHOWBROWSER:
- emit openURLRequestExt( strURL, KParts::URLArgs(), "text/html" );
+ emit openURLRequestExt( strURL, "text/html" );
break;
default:
break;
}
} else {
- emit openURLRequestExt( strURL, KParts::URLArgs(), "text/html" );
+ emit openURLRequestExt( strURL, "text/html" );
}
}
signals:
void openWriteDialog( QString );
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void redrawHTMLPart( const KURL& url, bool force );
void mousePressed(); /* to KitaThreadView */
signalCollection, SIGNAL( updateSubjectTab( const KURL& ) ) );
connect( this, SIGNAL( updateThreadTab( const KURL& ) ),
signalCollection, SIGNAL( updateThreadTab( const KURL& ) ) );
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
connect( this, SIGNAL( setMainCaption( const QString& ) ),
signalCollection, SIGNAL( setMainCaption( const QString& ) ) );
connect( this, SIGNAL( closeThreadTab( const KURL& ) ),
void showThreadCompleted(); /* to KitaThreadPart */
void closeThreadTab( const KURL& url );
void closeCurrentTab(); /* to KitaThreadTabWidget */
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void showWriteView( const KURL& , const QString& );
void activateThreadView( const KURL& );
connect( signalCollection, SIGNAL( windowDeactivated() ), SLOT( slotHideChildPopup() ) );
/* click */
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
}
void KitaPreviewPart::createHTMLDocument()
signals:
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void mousePressed(); /* to KitaThreadView */
/* res popup */
connect( buttonCancel, SIGNAL( clicked() ),
SLOT( slotCancel() ) );
- connect( this, SIGNAL( openURLRequestExt(
- const KURL&, const KParts::URLArgs&, QString, int,
- const KURL& ) ),
- signalCollection, SIGNAL( openURLRequestExt(
- const KURL& , const KParts::URLArgs&, QString, int,
- const KURL& ) ) );
+ connect( this, SIGNAL( openURLRequestExt( const KURL&, const QString ) ),
+ signalCollection, SIGNAL( openURLRequestExt( const KURL&, const QString ) ) );
connect( this, SIGNAL( openThread( const KURL& ) ), signalCollection, SIGNAL( openThread( const KURL& ) ) );
connect( faceCombo, SIGNAL( activated( const QString& ) ),
signals:
- void openURLRequestExt( const KURL& url, const KParts::URLArgs& args = KParts::URLArgs(),
- QString mimetype = QString::null,
- int usr1 = 0,
- const KURL& usrUrl1 = KURL() );
+ void openURLRequestExt( const KURL& url, const QString mimetype = QString::null );
void openThread( const KURL& url );
void closeCurrentTab();
};