QPtrList<Thread> threadList;
/* get all obtained threads list */
- if( boardURL == "http://virtual/obtained/" ){
-
- QDictIterator<Kita::Board> it( *m_boardDict );
- for ( ; it.current(); ++it ) {
-
- /* get the cache dir */
- QString boardUrl = it.currentKey() + "dat/";
- QString cdir = Cache::getPath( boardUrl + "dummy.dat" );
- int i = cdir.findRev( "dummy.dat");
- cdir.truncate( i );
-
- /* get the file names */
- QDir d( cdir );
- if ( d.exists() ){
- QStringList flist = d.entryList( "*.dat" );
- for( QStringList::iterator it = flist.begin(); it != flist.end(); ++it ){
- if( (*it) == QString::null ) continue;
-
- QString datURL = boardUrl + (*it);
-
- /* get the name of the thread from the dat file */
- QString subject = DatManager::threadName( datURL );
-
- if( subject == QString::null ) Kita::Thread::setName( datURL, "?" );
- int rnum = KitaThreadInfo::readNum( datURL );
- if( KitaThreadInfo::resNum( datURL ) < rnum ) KitaThreadInfo::setResNum( datURL, rnum );
- Kita::Thread* thread = Kita::Thread::getByURL( datURL );
- threadList.append( thread );
- }
- }
- }
-
- return threadList;
+ if ( boardURL == "http://virtual/obtained/" ) {
+
+ QDictIterator<Kita::Board> it( *m_boardDict );
+ for ( ; it.current(); ++it ) {
+
+ /* get the cache dir */
+ QString boardUrl = it.currentKey() + "dat/";
+ QString cdir = Cache::getPath( boardUrl + "dummy.dat" );
+ int i = cdir.findRev( "dummy.dat" );
+ cdir.truncate( i );
+
+ /* get the file names */
+ QDir d( cdir );
+ if ( d.exists() ) {
+ QStringList flist = d.entryList( "*.dat" );
+ for ( QStringList::iterator it = flist.begin(); it != flist.end(); ++it ) {
+ if ( ( *it ) == QString::null ) continue;
+
+ QString datURL = boardUrl + ( *it );
+
+ /* get the name of the thread from the dat file */
+ QString subject = DatManager::threadName( datURL );
+
+ if ( subject == QString::null ) Kita::Thread::setName( datURL, "?" );
+ int rnum = KitaThreadInfo::readNum( datURL );
+ if ( KitaThreadInfo::resNum( datURL ) < rnum ) KitaThreadInfo::setResNum( datURL, rnum );
+ Kita::Thread* thread = Kita::Thread::getByURL( datURL );
+ threadList.append( thread );
+ }
+ }
+ }
+
+ return threadList;
}
-
+
KIO::SlaveConfig::self() ->setConfigData( "http",
KURL( boardURL ).host() ,