{
QString cachePath = Kita::Cache::getPath( m_url );
m_orgData = QString::null;
-
- if( cachePath != QString::null ){
- QFile file( cachePath );
- if ( file.open( IO_ReadOnly ) ){
- m_orgData += file.readAll();
- file.close();
- }
+
+ if( cachePath != QString::null )
+ {
+ QFile file( cachePath );
+ if ( file.open( IO_ReadOnly ) )
+ {
+ m_orgData += file.readAll();
+ file.close();
+ }
}
-
+
return m_orgData;
}
m_orgData += m_threadData;
QString cachePath = Kita::Cache::getPath( m_url );
- if( cachePath != QString::null ){
- FILE *fs = fopen( QFile::encodeName( cachePath ), "w" );
- if ( !fs ) return ;
+ if( cachePath != QString::null )
+ {
+ FILE *fs = fopen( QFile::encodeName( cachePath ), "w" );
+ if ( !fs ) return ;
- fwrite( m_orgData, m_orgData.length(), 1, fs );
- fclose( fs );
+ fwrite( m_orgData, m_orgData.length(), 1, fs );
+ fclose( fs );
}
return ;
QString cstr( data );
if( ( m_orgData != QString::null && responseCode() != 206 )
- || ( m_firstReceive && cstr[0] != '\n' )
- || ( m_orgData == QString::null && responseCode() != 200 )
- ) m_invalidDataReceived = TRUE;
+ || ( m_firstReceive && cstr[0] != '\n' )
+ || ( m_orgData == QString::null && responseCode() != 200 )
+ ) m_invalidDataReceived = TRUE;
if( m_invalidDataReceived ) return;
-
+
/* If this is the first call at resumption, remove LF at head. */
if(m_firstReceive)
{