// TODO: need to refactoring.
parse_machiBBS();
KURL url = m_url;
- url.setProtocol( "k2ch" );
writeCacheData( url );
emit receiveData( m_threadData );
} else {
KURL url = m_url;
- url.setProtocol( "k2ch" );
make_cacheDir( url );
writeCacheData( url );
}
QString Access::getcache()
{
- KURL url = m_url;
- url.setProtocol( "k2ch" );
-
- m_orgData = getCacheData( url );
+ m_orgData = getCacheData( m_url );
return m_orgData;
KURL url = thread->datURL();
QString str = Kita::Cache::getPath( url );
- KIO::NetAccess::del( str );
-
- url.setProtocol( "k2ch" );
- str = Kita::Cache::getPath( url );
return KIO::NetAccess::del( str );
}
return FALSE;
QString Cache::baseDir( const KURL& url )
{
- QString dir;
- if ( url.protocol() == "k2ch" ) {
- dir = KGlobal::dirs() ->saveLocation( "cache", "kita" );
- } else {
- dir = KProtocolManager::cacheDir();
- }
+ QString dir = KGlobal::dirs() ->saveLocation( "cache", "kita" );
if ( dir[ dir.length() - 1 ] != '/' )
dir += "/";