svnno****@sourc*****
svnno****@sourc*****
2009年 7月 29日 (水) 20:15:30 JST
Revision: 2492 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2492 Author: nogu Date: 2009-07-29 20:15:30 +0900 (Wed, 29 Jul 2009) Log Message: ----------- add const Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/libkita/cache.cpp kita/branches/KITA-KDE4/kita/src/libkita/cache.h Modified: kita/branches/KITA-KDE4/kita/src/libkita/cache.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/libkita/cache.cpp 2009-07-29 11:13:15 UTC (rev 2491) +++ kita/branches/KITA-KDE4/kita/src/libkita/cache.cpp 2009-07-29 11:15:30 UTC (rev 2492) @@ -30,7 +30,7 @@ } -QString Cache::serverDir() +QString Cache::serverDir() const { /* Is board enrolled ? */ BoardData * bdata = BoardManager::getBoardData(m_url); @@ -42,7 +42,7 @@ } -QString Cache::boardDir() +QString Cache::boardDir() const { /* Is board enrolled ? */ BoardData * bdata = BoardManager::getBoardData(m_url); @@ -54,7 +54,7 @@ } -QString Cache::getPath() +QString Cache::getPath() const { QString path = getDirPath(); if (path.isEmpty()) return QString(); @@ -64,7 +64,7 @@ return path + m_url.fileName(); } -QString Cache::getIndexPath() +QString Cache::getIndexPath() const { QString path = getPath(); if (path.isEmpty()) { @@ -80,7 +80,7 @@ /* public */ -QString Cache::getSettingPath() +QString Cache::getSettingPath() const { QString path = getDirPath(); if (path.isEmpty()) return QString(); @@ -89,7 +89,7 @@ } /* public */ -QString Cache::getBBSHistoryPath() +QString Cache::getBBSHistoryPath() const { QString path = getDirPath(); if (path.isEmpty()) return QString(); @@ -98,7 +98,7 @@ } /* public */ -QString Cache::getSubjectPath() +QString Cache::getSubjectPath() const { QString path = getDirPath(); if (path.isEmpty()) return QString(); @@ -106,7 +106,7 @@ return path + "subject.txt"; } -QString Cache::getDirPath() +QString Cache::getDirPath() const { return baseDir() + serverDir() + boardDir(); } Modified: kita/branches/KITA-KDE4/kita/src/libkita/cache.h =================================================================== --- kita/branches/KITA-KDE4/kita/src/libkita/cache.h 2009-07-29 11:13:15 UTC (rev 2491) +++ kita/branches/KITA-KDE4/kita/src/libkita/cache.h 2009-07-29 11:15:30 UTC (rev 2492) @@ -25,15 +25,15 @@ public: Cache(const KUrl& url); - QString serverDir(); - QString boardDir(); + QString serverDir() const; + QString boardDir() const; - QString getPath(); - QString getIndexPath(); - QString getSettingPath(); - QString getBBSHistoryPath(); - QString getSubjectPath(); - QString getDirPath(); + QString getPath() const; + QString getIndexPath() const; + QString getSettingPath() const; + QString getBBSHistoryPath() const; + QString getSubjectPath() const; + QString getDirPath() const; static QString baseDir();