kdDebug() << "datURL = " << datURL.url() << endl;
Kita::Board board = Kita::Board( KURL( datURL, ".." ) );
kdDebug() << "board.url = " << board.url().url() << endl;
- Kita::Thread thread( board, datURL );
+ Kita::Thread thread( board.name(), datURL );
kdDebug() << "thread.url = %s" << thread.url() << endl;
thread.setName( item->text( Row_Subject ) );
thread.setResNum( item->text( Row_Read ).toInt() );
KURL datURL = m_board.url();
datURL.addPath("/dat/" + datName);
- Kita::Thread* thread = new Kita::Thread( m_board, datURL,
+ Kita::Thread* thread = new Kita::Thread( m_board.name(), datURL,
item->text( Row_Subject ),
item->text( Row_Read ).toInt() );
KURL datURL = m_board.url();
datURL.addPath("/dat/" + datName);
- Kita::Thread thread( m_board, datURL );
+ Kita::Thread thread( m_board.name(), datURL );
thread.setName( item->text( Row_Subject ) );
thread.setResNum( item->text( Row_Read ).toInt() );
KURL datURL = m_boardURL;
datURL.addPath("/dat/" + fname);
- Kita::Thread* thread = new Kita::Thread(*this, datURL, subject, num.toInt());
+ Kita::Thread* thread = new Kita::Thread( name(), datURL, subject, num.toInt());
threadList.append(thread);
}
}
void ThreadTest::setUp()
{
- m_normal = new Thread( Board( "http://pc.2ch.net/linux/", "Linux" ),
+ m_normal = new Thread( "Linux",
KURL( "http://pc.2ch.net/linux/dat/1069738960.dat" ),
"Kita - 2ch client for KDE",
0 );
Thread::Thread( const QString& boardName, const KURL& datURL, const QString& threadName, int resNum )
: m_datURL( datURL ), m_threadName( threadName ), m_resNum( resNum )
{
+ m_datID = m_datURL.filename().section( ".", 0, 0 );
m_board = new Board( datToBoard( datURL.url() ), boardName );
}
-
+/*
Thread::Thread(const Board& board, const KURL& datURL, const QString threadName, int resNum)
: m_datURL(datURL), m_threadName(threadName), m_resNum(resNum)
{
m_datID = m_datURL.filename().section(".", 0, 0);
m_board = new Board( board.url(), board.name() );
-}
+}*/
Thread::Thread( const KURL& datURL, const QString& threadName, int resNum )
: m_datURL( datURL ), m_threadName( threadName ), m_resNum( resNum ), m_board( 0 )
m_boardParser->endElement( namespaceURI, localName, qName );
} else if( localName == "thread" ) {
m_inThread = false;
- m_thread = Kita::Thread( *m_board, KURL( m_datUrlStr ), m_threadName, m_resNum );
+ m_thread = Kita::Thread( m_board->name(), KURL( m_datUrlStr ), m_threadName, m_resNum );
m_isValid = true;
// create thread;
} else if( localName == "daturl" ) {
Thread();
Thread( const Thread& obj );
Thread( const QString& boardName, const KURL& datURL, const QString& threadName = QString::null, int resNum = 0 );
- Thread(const Board& board, const KURL& datURL, const QString threadName = QString::null, int resNum = 0);
+// Thread(const Board& board, const KURL& datURL, const QString threadName = QString::null, int resNum = 0);
Thread( const KURL& datURL, const QString& threadName = QString::null, int resNum = 0 );
~Thread();
Thread& operator=( const Thread& obj );
this, SLOT( slotOpenURLResult() ) );
Kita::Board board( m_url.upURL().upURL() );
- m_threadview->showThread( Kita::Thread( board, m_url ) );
+ m_threadview->showThread( Kita::Thread( board.name(), m_url ) );
emit started( 0 );
return true;
}