KURL datURL = thread->datURL();
propertyWidget->threadURLLabel->setText( datURL.url() );
propertyWidget->threadNameLabel->setText( Kita::DatManager::threadName( datURL ) );
+ propertyWidget->cachePathLabel->setText( Kita::DatManager::getCachePath( datURL ) );
propertyWidget->show();
}
break;
#include "datmanager.h"
#include "datinfo.h"
#include "board.h"
+#include "cache.h"
#include "kita_misc.h"
#include "kita-utf8.h"
#include "kita-utf16.h"
return KURL( Kita::datToBoard( datURL.prettyURL() ) ).fileName();
}
+const QString DatManager::getCachePath( const KURL& url )
+{
+ QMutexLocker locker( &m_mutex );
+
+ KURL datURL = Kita::ParseMisc::parseURLonly( url );
+ return Kita::Cache::getPath( datURL );
+}
/*---------------------------------------*/
/* HTML data */
static const QString& boardName( const KURL& url );
static const QString boardID( const KURL& url );
+ static const QString getCachePath( const KURL& url );
/* HTML data */
static QString getHtml( const KURL& url, int startnum, int endnum );
<rect>
<x>0</x>
<y>0</y>
- <width>600</width>
- <height>488</height>
+ <width>790</width>
+ <height>492</height>
</rect>
</property>
<property name="caption">
</widget>
<widget class="QLabel">
<property name="name">
+ <cstring>threadNameLabel0</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>40</y>
+ <width>110</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Thread Name</string>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>cachePathLabel0</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>70</y>
+ <width>110</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Cache Path</string>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
<cstring>threadURLLabel</cstring>
</property>
<property name="geometry">
<rect>
<x>130</x>
<y>10</y>
- <width>460</width>
+ <width>650</width>
<height>20</height>
</rect>
</property>
<rect>
<x>130</x>
<y>40</y>
- <width>460</width>
+ <width>650</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QLabel">
<property name="name">
- <cstring>threadNameLabel0</cstring>
+ <cstring>cachePathLabel</cstring>
</property>
<property name="geometry">
<rect>
- <x>10</x>
- <y>40</y>
- <width>110</width>
+ <x>130</x>
+ <y>70</y>
+ <width>650</width>
<height>20</height>
</rect>
</property>
<property name="text">
- <string>Thread Name</string>
+ <string></string>
</property>
</widget>
</widget>