Kita::Board board = Kita::Board( KURL( datURL, ".." ) );
kdDebug() << "board.url = " << board.url().url() << endl;
Kita::Thread thread( board, datURL );
- kdDebug() << "thread.url = %s" << thread.url().url() << endl;
+ kdDebug() << "thread.url = %s" << thread.url() << endl;
thread.setName( item->text( Row_Subject ) );
thread.setResNum( item->text( Row_Read ).toInt() );
emit signalShowThreadWithNewTab( thread );
break;
case 2:
- clipboard->setText( thread.name() + "\n" + thread.url().url() );
+ clipboard->setText( thread.name() + "\n" + thread.url() );
break;
default:
break;
emit signalShowThreadWithNewTab( thread );
break;
case 2:
- clipboard->setText( thread.name() + "\n" + thread.url().url() );
+ clipboard->setText( thread.name() + "\n" + thread.url() );
break;
default:
break;
void ThreadTest::testURL()
{
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/test/read.cgi/linux/1069738960/"),
- m_normal->url().url() );
+ m_normal->url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/test/read.cgi/linux/1069738960/"),
- m_noboard->url().url() );
+ m_noboard->url() );
}
void ThreadTest::testDatID()
return m_datURL;
}
-const KURL Thread::url() const
+const QString Thread::url() const
{
- return KURL( datToThread( m_datURL.url() ) );
+ return datToThread( m_datURL.url() );
}
const QString& Thread::datID() const
if( thread.datURL().url() != "http://pc.2ch.net/linux/dat/1022744633.dat" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
- if( thread.url().url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
+ if( thread.url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
if( thread.name() != "2ch browser thread" ) {
if( thread2.datURL().url() != "http://pc.2ch.net/linux/dat/1022744633.dat" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
- if( thread2.url().url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
+ if( thread2.url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
if( thread2.name() != "2ch browser thread" ) {
if( thread.datURL().url() != "http://pc.2ch.net/linux/dat/1022744633.dat" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
- if( thread.url().url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
+ if( thread.url() != "http://pc.2ch.net/test/read.cgi/linux/1022744633/" ) {
kdError() << "inValid: line=" << __LINE__ << endl;
}
if( thread.name() != "2ch browser thread" ) {
~Thread();
Thread& operator=( const Thread& obj );
const KURL& datURL() const;
- const KURL url() const;
+ const QString url() const;
const QString& datID() const;
int resNum() const;
const QString& name() const;
new_dlg->boardNameLabel->setText( thread.boardName() );
new_dlg->threadNameLabel->setText( thread.name() );
- new_dlg->threadURLLabel->setText( thread.url().url() );
+ new_dlg->threadURLLabel->setText( thread.url() );
new_dlg->setCaption( i18n("Write in %1").arg( thread.name() ) );
return new_dlg;