OSDN Git Service

Use `record' instead of `enroll'
[kita/kita.git] / src / libkita / datmanager.cpp
index 1415a03..bd77e98 100644 (file)
@@ -77,9 +77,9 @@ DatInfo * DatManager::getDatInfoPointer() const
 DatInfo* DatManager::getDatInfo(bool checkCached) const
 {
     /* search */
-    /* create and enroll instance */
+    /* create and record instance */
     return (m_searchDatInfo != 0)
-        ? m_searchDatInfo : enrollDatInfo(checkCached);
+        ? m_searchDatInfo : recordDatInfo(checkCached);
 }
 
 
@@ -88,7 +88,7 @@ DatInfo* DatManager::getDatInfo(bool checkCached) const
 DatInfo* DatManager::searchDatInfo() const
 {
     if (m_datUrl.isEmpty())
-        return 0; /* This url is not enrolled in BoardManager. */
+        return 0; /* This url is not recorded in BoardManager. */
     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 */
-DatInfo* DatManager::enrollDatInfo(bool checkCached) const
+DatInfo* DatManager::recordDatInfo(bool checkCached) const
 {
     if (m_datUrl.isEmpty())
-        return 0; /* This url is not enrolled in BoardManager. */
+        return 0; /* This url is not recorded in BoardManager. */
 
     /* create DatInfo & read cached data */
     DatInfo* datInfo = new DatInfo(m_datUrl);
@@ -374,7 +374,7 @@ int DatManager::getNumById(const QString& strid) const
 
 
 /* public */
-bool DatManager::isThreadEnrolled() const
+bool DatManager::isThreadRecorded() const
 {
     return !m_datUrl.isEmpty();
 }