From 7a70e86104bdc9f7edd5a7c96abfd301a3e2f960 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 19 Feb 2012 02:12:46 +0100 Subject: [PATCH] Added: Todo comments. --HG-- branch : build_pipeline_v3 --- .../pipeline_service/database_status.cpp | 27 +++---------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/code/nel/tools/pipeline/pipeline_service/database_status.cpp b/code/nel/tools/pipeline/pipeline_service/database_status.cpp index f6d305444..df2c82b76 100644 --- a/code/nel/tools/pipeline/pipeline_service/database_status.cpp +++ b/code/nel/tools/pipeline/pipeline_service/database_status.cpp @@ -93,19 +93,13 @@ CDatabaseStatus::~CDatabaseStatus() bool CDatabaseStatus::getFileStatus(CFileStatus &fileStatus, const std::string &filePath) const { + // TODO_GET_FILE_STATUS // mutex here when reading return false; } namespace { -/* -class CUpdateFileStatusCancel : public CAsyncFileManager::ICancelCallback -{ - // cancel callback - virtual bool callback(const IRunnable *prunnable) const; -}; -CUpdateFileStatusCancel s_UpdateFileStatusCancel; -*/ + class CUpdateFileStatus : public IRunnable { public: @@ -150,7 +144,7 @@ public: nldebug("Calculate crc32 of file: '%s'", FilePath.c_str()); nlSleep(1000); - // calculate crc32 etcetera etcetera + // TODO_CALCULATE_CRC32 StatusMutex->enter(); { @@ -169,21 +163,6 @@ public: delete this; } }; -/* -bool CUpdateFileStatusCancel::callback(const IRunnable *prunnable) const -{ - std::string name; - prunnable->getName(name); - if (name.find("CUpdateFileStatus") != std::string::npos) - { - CUpdateFileStatus *ufs = const_cast(static_cast(prunnable)); - CFileStatus fs; - ufs->Callback(ufs->FilePath, fs, false); - // delete ufs; CALLER DELETES THIS! - return true; - } - return false; -}*/ } /* anonymous namespace */