mtime WTimerManager::GetTimeFromLast() const { mtime ret; if (listTime_.empty()) { ret.valid = false; return ret; } return GetTimeFrom(listTime_.size() - 1); }
void FileTimeSearcher::DoUpdate(const Result& result) { QDateTime matchedFileTime = GetTimeFrom(result, matchedTimeType); qDebug() << "FileTimeSearcher::DoUpdate()"; qDebug() << "matchedFileTime: " << matchedFileTime; // no size bound limit if (beginTime.isNull() && endTime.isNull()) { // throw exception // should not happen } if (IsValueInRange(matchedFileTime, beginTime, endTime)) { // ok, meet requirement, pass it along qDebug() << "match meet time requirement"; Notify(result); } }