void Access::getcache()
{
QString orgData;
- init();
+ // get cache path.
QString cachePath = Kita::Cache::getPath( m_datURL );
+ if ( cachePath == QString::null ) {
+ return;
+ }
- if ( cachePath != QString::null ) {
- QFile file( cachePath );
- if ( file.open( IO_ReadOnly ) ) {
- orgData += file.readAll();
- file.close();
- }
+ // read cache file.
+ QFile file( cachePath );
+ if ( file.open( IO_ReadOnly ) ) {
+ orgData += file.readAll();
+ file.close();
}
+ // set data size.
if ( orgData == QString::null ) return ;
m_dataSize = orgData.length();
break;
default:
+ /* convert data stream into 2ch dat.
+ and emit receiveData SIGNAL. */
emitDatLineList( orgData );
break;
}