OSDN Git Service
(root)
/
kita
/
kita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5719d40
)
Use `record' instead of `enroll'
author
nogu
<nogu@users.sourceforge.jp>
Fri, 12 Feb 2010 22:32:49 +0000
(07:32 +0900)
committer
nogu
<nogu@users.sourceforge.jp>
Fri, 12 Feb 2010 22:32:49 +0000
(07:32 +0900)
src/bbsview.cpp
patch
|
blob
|
history
src/libkita/boarddata.h
patch
|
blob
|
history
src/libkita/boarddatabase.cpp
patch
|
blob
|
history
src/libkita/boarddatabase.h
patch
|
blob
|
history
src/libkita/cache.cpp
patch
|
blob
|
history
src/libkita/datmanager.cpp
patch
|
blob
|
history
src/libkita/datmanager.h
patch
|
blob
|
history
src/libkita/kita_misc.cpp
patch
|
blob
|
history
src/viewmediator.cpp
patch
|
blob
|
history
diff --git
a/src/bbsview.cpp
b/src/bbsview.cpp
index
f38264f
..
64d71e9
100644
(file)
--- a/
src/bbsview.cpp
+++ b/
src/bbsview.cpp
@@
-149,13
+149,13
@@
bool BBSView::downloadBoardList()
QString boardName = category.boardNameList[ count ];
QString oldUrl;
BoardDatabase db(boardUrl);
QString boardName = category.boardNameList[ count ];
QString oldUrl;
BoardDatabase db(boardUrl);
- int ret = db.
enroll
Board(
+ int ret = db.
record
Board(
boardName, oldUrl, Board_Unknown, true /* test only */);
boardName, oldUrl, Board_Unknown, true /* test only */);
- if (ret == Board_
enroll
New) {
+ if (ret == Board_
record
New) {
newBoards += boardName + " ( " + category.category_name
+ " ) " + boardUrl + '\n';
}
newBoards += boardName + " ( " + category.category_name
+ " ) " + boardUrl + '\n';
}
- if (ret == Board_
enroll
Moved) {
+ if (ret == Board_
record
Moved) {
oldBoards += boardName + " ( " + category.category_name
+ " ) " + oldUrl + " -> " + boardUrl + '\n';
}
oldBoards += boardName + " ( " + category.category_name
+ " ) " + oldUrl + " -> " + boardUrl + '\n';
}
@@
-313,7
+313,7
@@
void BBSView::showBoardList()
}
QString oldUrl;
BoardDatabase db(boardUrl);
}
QString oldUrl;
BoardDatabase db(boardUrl);
- db.
enroll
Board(boardName, oldUrl);
+ db.
record
Board(boardName, oldUrl);
db.loadBBSHistory();
previousBoard = new ListViewItem(categoryItem, previousBoard,
QStringList() << boardName << boardUrl);
db.loadBBSHistory();
previousBoard = new ListViewItem(categoryItem, previousBoard,
QStringList() << boardName << boardUrl);
@@
-326,7
+326,7
@@
void BBSView::showBoardList()
QString oldUrl;
new ListViewItem(m_boardList, 0, QStringList() << boardName << boardUrl);
BoardDatabase db(boardUrl);
QString oldUrl;
new ListViewItem(m_boardList, 0, QStringList() << boardName << boardUrl);
BoardDatabase db(boardUrl);
- db.
enroll
Board(boardName, oldUrl);
+ db.
record
Board(boardName, oldUrl);
loadExtBoard();
refreshFavoriteBoards();
loadExtBoard();
refreshFavoriteBoards();
@@
-363,7
+363,7
@@
void BBSView::loadExtBoard()
int type = Board_Unknown;
if (list.size() == 3) type = list[ 2 ].toInt();
BoardDatabase db(board_url);
int type = Board_Unknown;
if (list.size() == 3) type = list[ 2 ].toInt();
BoardDatabase db(board_url);
- db.
enroll
Board(board_title, oldUrl, type);
+ db.
record
Board(board_title, oldUrl, type);
}
}
}
}
}
}
diff --git
a/src/libkita/boarddata.h
b/src/libkita/boarddata.h
index
6445f74
..
3d14483
100644
(file)
--- a/
src/libkita/boarddata.h
+++ b/
src/libkita/boarddata.h
@@
-27,12
+27,12
@@
namespace Kita
};
};
- /* return value of BoardManager::
enroll
Board */
+ /* return value of BoardManager::
record
Board */
enum {
enum {
- Board_
enroll
New,
- Board_
enrollEnroll
ed,
- Board_
enroll
Moved,
- Board_
enroll
Failed
+ Board_
record
New,
+ Board_
recordRecord
ed,
+ Board_
record
Moved,
+ Board_
record
Failed
};
/*---------------------------------*/
};
/*---------------------------------*/
diff --git
a/src/libkita/boarddatabase.cpp
b/src/libkita/boarddatabase.cpp
index
3e1a0d9
..
081f2c2
100644
(file)
--- a/
src/libkita/boarddatabase.cpp
+++ b/
src/libkita/boarddatabase.cpp
@@
-345,20
+345,20
@@
void BoardDatabase::clearBoardData()
*
* @param[out] oldURL
*
*
* @param[out] oldURL
*
- * @retval Board_
enrollEnrolled if board is already enroll
ed. oldURL is QString().
- * @retval Board_
enroll
New if board is new board. oldURL is QString().
- * @retval Board_
enroll
Moved if board is moved. oldURL is old URL.
+ * @retval Board_
recordRecorded if board is already record
ed. oldURL is QString().
+ * @retval Board_
record
New if board is new board. oldURL is QString().
+ * @retval Board_
record
Moved if board is moved. oldURL is old URL.
*
*
- * @note board is NOT
enroll
ed when board is moved.
- * To
enroll
new URL, call BoardDatabase::moveBoard().
+ * @note board is NOT
record
ed when board is moved.
+ * To
record
new URL, call BoardDatabase::moveBoard().
*
* "int type" is type of board. It could be "Board_Unknown". See also parseBoardURL().
*
*
* "int type" is type of board. It could be "Board_Unknown". See also parseBoardURL().
*
- * If "bool test" is true, this function just checks if the board is
enrolled (never enroll
board).
+ * If "bool test" is true, this function just checks if the board is
recorded (never record
board).
*
*/
/* public */
*
*/
/* public */
-int BoardDatabase::
enroll
Board(const QString& boardName, QString& oldUrl, int type, bool test)
+int BoardDatabase::
record
Board(const QString& boardName, QString& oldUrl, int type, bool test)
{
QString hostname;
QString rootPath;
{
QString hostname;
QString rootPath;
@@
-368,9
+368,9
@@
int BoardDatabase::enrollBoard(const QString& boardName, QString& oldUrl, int ty
type = parseBoardUrl(type, hostname, rootPath, delimiter, bbsPath, ext);
oldUrl.clear();
type = parseBoardUrl(type, hostname, rootPath, delimiter, bbsPath, ext);
oldUrl.clear();
- if (type == Board_Unknown) return Board_
enroll
Failed;
+ if (type == Board_Unknown) return Board_
record
Failed;
- /* check if the board is
enroll
ed or moved. */
+ /* check if the board is
record
ed or moved. */
BoardData *data;
foreach (data, m_boardDataList) {
BoardData *data;
foreach (data, m_boardDataList) {
@@
-379,24
+379,24
@@
int BoardDatabase::enrollBoard(const QString& boardName, QString& oldUrl, int ty
&& data->bbsPath() == bbsPath) {
if (data->hostName() == hostname
&& data->bbsPath() == bbsPath) {
if (data->hostName() == hostname
- && data->rootPath() == rootPath) { /*
enroll
ed */
- return Board_
enrollEnroll
ed;
+ && data->rootPath() == rootPath) { /*
record
ed */
+ return Board_
recordRecord
ed;
} else { /* moved */
oldUrl = data->basePath();
} else { /* moved */
oldUrl = data->basePath();
- return Board_
enroll
Moved;
+ return Board_
record
Moved;
}
}
}
/* test only */
if (test)
}
}
}
/* test only */
if (test)
- return Board_
enroll
New;
+ return Board_
record
New;
- /*
enroll
new board */
+ /*
record
new board */
BoardData* bdata = new BoardData(boardName, hostname, rootPath, delimiter, bbsPath, ext, type);
m_boardDataList.append(bdata);
BoardData* bdata = new BoardData(boardName, hostname, rootPath, delimiter, bbsPath, ext, type);
m_boardDataList.append(bdata);
- return Board_
enroll
New;
+ return Board_
record
New;
}
/* parse board URL */
}
/* parse board URL */
@@
-483,7
+483,7
@@
int BoardDatabase::parseBoardUrl(
}
/* public */
}
/* public */
-bool BoardDatabase::is
Enroll
ed()
+bool BoardDatabase::is
Record
ed()
{
return getBoardData() != 0;
}
{
return getBoardData() != 0;
}
@@
-529,7
+529,7
@@
BoardData* BoardDatabase::getBoardData()
/* load the bbs history file (BBSHISTORY), and create keys of Data Base. */
/* load the bbs history file (BBSHISTORY), and create keys of Data Base. */
-/* Before calling this,
enroll the board by enroll
Board(). */
+/* Before calling this,
record the board by record
Board(). */
/*
ex) If the host of board moved like :
/*
ex) If the host of board moved like :
@@
-588,11
+588,11
@@
bool BoardDatabase::moveBoard(const KUrl& fromUrl, const KUrl& toUrl)
if (oldUrl == newUrl) return false;
if (oldUrl == newUrl) return false;
- /* Is oldURL
enroll
ed? */
+ /* Is oldURL
record
ed? */
BoardData* bdata = getBoardData(oldUrl);
if (bdata == 0) {
BoardData* bdata = getBoardData(oldUrl);
if (bdata == 0) {
- /* Is newURL
enroll
ed? */
+ /* Is newURL
record
ed? */
bdata = getBoardData(newUrl);
if (bdata == 0) return false;
}
bdata = getBoardData(newUrl);
if (bdata == 0) return false;
}
diff --git
a/src/libkita/boarddatabase.h
b/src/libkita/boarddatabase.h
index
c6954bf
..
7060373
100644
(file)
--- a/
src/libkita/boarddatabase.h
+++ b/
src/libkita/boarddatabase.h
@@
-44,9
+44,9
@@
namespace Kita {
/* BoardData */
void clearBoardData();
/* BoardData */
void clearBoardData();
- int
enroll
Board(const QString& boardName, QString& oldUrl,
+ int
record
Board(const QString& boardName, QString& oldUrl,
int type = Board_Unknown, bool test = false);
int type = Board_Unknown, bool test = false);
- bool is
Enroll
ed();
+ bool is
Record
ed();
BoardData* getBoardData();
/* BBSHISTORY */
BoardData* getBoardData();
/* BBSHISTORY */
diff --git
a/src/libkita/cache.cpp
b/src/libkita/cache.cpp
index
c988f61
..
cc63b63
100644
(file)
--- a/
src/libkita/cache.cpp
+++ b/
src/libkita/cache.cpp
@@
-32,7
+32,7
@@
QString Cache::baseDir()
QString Cache::serverDir() const
{
QString Cache::serverDir() const
{
- /* Is board
enroll
ed ? */
+ /* Is board
record
ed ? */
BoardDatabase db(m_url);
BoardData * bdata = db.getBoardData();
if (bdata == 0) return QString();
BoardDatabase db(m_url);
BoardData * bdata = db.getBoardData();
if (bdata == 0) return QString();
@@
-45,7
+45,7
@@
QString Cache::serverDir() const
QString Cache::boardDir() const
{
QString Cache::boardDir() const
{
- /* Is board
enroll
ed ? */
+ /* Is board
record
ed ? */
BoardDatabase db(m_url);
BoardData * bdata = db.getBoardData();
if (bdata == 0) return QString();
BoardDatabase db(m_url);
BoardData * bdata = db.getBoardData();
if (bdata == 0) return QString();
diff --git
a/src/libkita/datmanager.cpp
b/src/libkita/datmanager.cpp
index
1415a03
..
bd77e98
100644
(file)
--- a/
src/libkita/datmanager.cpp
+++ b/
src/libkita/datmanager.cpp
@@
-77,9
+77,9
@@
DatInfo * DatManager::getDatInfoPointer() const
DatInfo* DatManager::getDatInfo(bool checkCached) const
{
/* search */
DatInfo* DatManager::getDatInfo(bool checkCached) const
{
/* search */
- /* create and
enroll
instance */
+ /* create and
record
instance */
return (m_searchDatInfo != 0)
return (m_searchDatInfo != 0)
- ? m_searchDatInfo :
enroll
DatInfo(checkCached);
+ ? m_searchDatInfo :
record
DatInfo(checkCached);
}
}
@@
-88,7
+88,7
@@
DatInfo* DatManager::getDatInfo(bool checkCached) const
DatInfo* DatManager::searchDatInfo() const
{
if (m_datUrl.isEmpty())
DatInfo* DatManager::searchDatInfo() const
{
if (m_datUrl.isEmpty())
- return 0; /* This url is not
enroll
ed in BoardManager. */
+ return 0; /* This url is not
record
ed in BoardManager. */
if (m_datInfoList.isEmpty())
return 0;
if (m_datInfoList.isEmpty())
return 0;
@@
-116,13
+116,13
@@
DatInfo* DatManager::searchDatInfo() const
}
}
-/* create and
enroll
the instance of DatInfo and delete old instances.
+/* create and
record
the instance of DatInfo and delete old instances.
Note that DatInfo::DatInfo() opens cached data and reads it. */
/* private */
Note that DatInfo::DatInfo() opens cached data and reads it. */
/* private */
-DatInfo* DatManager::
enroll
DatInfo(bool checkCached) const
+DatInfo* DatManager::
record
DatInfo(bool checkCached) const
{
if (m_datUrl.isEmpty())
{
if (m_datUrl.isEmpty())
- return 0; /* This url is not
enroll
ed in BoardManager. */
+ return 0; /* This url is not
record
ed in BoardManager. */
/* create DatInfo & read cached data */
DatInfo* datInfo = new DatInfo(m_datUrl);
/* create DatInfo & read cached data */
DatInfo* datInfo = new DatInfo(m_datUrl);
@@
-374,7
+374,7
@@
int DatManager::getNumById(const QString& strid) const
/* public */
/* public */
-bool DatManager::isThread
Enroll
ed() const
+bool DatManager::isThread
Record
ed() const
{
return !m_datUrl.isEmpty();
}
{
return !m_datUrl.isEmpty();
}
diff --git
a/src/libkita/datmanager.h
b/src/libkita/datmanager.h
index
d3b9e8b
..
c9eacc8
100644
(file)
--- a/
src/libkita/datmanager.h
+++ b/
src/libkita/datmanager.h
@@
-69,7
+69,7
@@
namespace Kita
/* another information */
/* another information */
- bool isThread
Enroll
ed() const;
+ bool isThread
Record
ed() const;
bool is2chThread() const;
bool isResValid(int num) const;
bool isBroken() const;
bool is2chThread() const;
bool isResValid(int num) const;
bool isBroken() const;
@@
-95,7
+95,7
@@
namespace Kita
private:
DatInfo* getDatInfo(bool checkCached = true) const;
DatInfo* searchDatInfo() const;
private:
DatInfo* getDatInfo(bool checkCached = true) const;
DatInfo* searchDatInfo() const;
- DatInfo*
enroll
DatInfo(bool checkCached) const;
+ DatInfo*
record
DatInfo(bool checkCached) const;
KUrl m_url;
KUrl m_datUrl;
KUrl m_url;
KUrl m_datUrl;
diff --git
a/src/libkita/kita_misc.cpp
b/src/libkita/kita_misc.cpp
index
e61fbb2
..
2ee3016
100644
(file)
--- a/
src/libkita/kita_misc.cpp
+++ b/
src/libkita/kita_misc.cpp
@@
-98,7
+98,7
@@
QString Kita::getWriteUrl(const KUrl& m_datUrl)
If mode = URLMODE_DAT, output is URL of dat file.
If mode = URLMODE_THREAD, output is URL of read.cgi .
If mode = URLMODE_DAT, output is URL of dat file.
If mode = URLMODE_THREAD, output is URL of read.cgi .
- If url is NOT
enroll
ed, return QString().
+ If url is NOT
record
ed, return QString().
(ex.1)
(ex.1)
@@
-145,7
+145,7
@@
QString Kita::convertUrl(
return m_prevConvNewUrl;
}
return m_prevConvNewUrl;
}
- /* Is board
enroll
ed ? */
+ /* Is board
record
ed ? */
BoardDatabase db(url);
BoardData* bdata = db.getBoardData();
if (bdata == 0) return QString();
BoardDatabase db(url);
BoardData* bdata = db.getBoardData();
if (bdata == 0) return QString();
diff --git
a/src/viewmediator.cpp
b/src/viewmediator.cpp
index
8fa85a2
..
17a51d1
100644
(file)
--- a/
src/viewmediator.cpp
+++ b/
src/viewmediator.cpp
@@
-137,7
+137,7
@@
void ViewMediator::updateFavoriteListView()
void ViewMediator::openUrl(const KUrl& url)
{
// open thread.
void ViewMediator::openUrl(const KUrl& url)
{
// open thread.
- if (DatManager(url).isThread
Enroll
ed()) {
+ if (DatManager(url).isThread
Record
ed()) {
m_threadTabWidget->slotShowMainThread(url);
return;
}
m_threadTabWidget->slotShowMainThread(url);
return;
}