QMessageBox::Ok, QMessageBox::Cancel | QMessageBox::Default )
== QMessageBox::Ok )
{
- Kita::DatManager::deleteCache( url, this );
+ Kita::DatManager::deleteCache( url );
emit closeThreadTab( url );
slotUpdateSubject( url );
}
}
}
-bool Access::deleteLog( const Thread* thread, QWidget* parent )
+bool Access::deleteLog( const Thread* thread )
{
KURL url = thread->datURL();
QString str = Kita::Cache::getPath( url );
QString getcache();
QString getupdate();
int responseCode();
- static bool deleteLog( const Thread* thread, QWidget* parent );
+ static bool deleteLog( const Thread* thread );
private:
void writeCacheData();
/* public */
-bool DatInfo::deleteCache(QWidget* parent)
+bool DatInfo::deleteCache()
{
QMutexLocker locker( &m_mutex );
if ( m_access == NULL ) return FALSE;
if ( m_nowLoading ) return FALSE;
bool ret = FALSE;
- if( m_thread ) ret = Kita::Access::deleteLog( m_thread, parent );
+ if( m_thread ) ret = Kita::Access::deleteLog( m_thread );
KitaThreadInfo::removeThreadInfo( m_datURL.prettyURL() );
if(ret) initPrivate();
bool updateCache(const QObject* parent);
int getResponseCode();
int getServerTime();
- bool deleteCache(QWidget* parent);
+ bool deleteCache();
bool isLoadingNow();
void stopLoading();
/* public */
-bool DatManager::deleteCache( const KURL& url, QWidget* parent )
+bool DatManager::deleteCache( const KURL& url )
{
QMutexLocker locker( &m_mutex );
DatInfo * datInfo = getDatInfo( url );
if ( datInfo == NULL ) return FALSE;
- return datInfo->deleteCache(parent);
+ return datInfo->deleteCache();
}
static bool updateCache( const KURL& url , const QObject* parent);
static int getResponseCode( const KURL& url );
static int getServerTime( const KURL& url );
- static bool deleteCache( const KURL& url , QWidget* parent);
+ static bool deleteCache( const KURL& url );
static bool isLoadingNow( const KURL& url );
static void stopLoading( const KURL& url );
!= QMessageBox::Ok ) return;
}
- Kita::DatManager::deleteCache( threadURL(), this );
+ Kita::DatManager::deleteCache( threadURL() );
emit closeThreadTab( m_datURL );
emit updateSubjectTab( m_datURL );
}