//----------------------------------------------------------------------------- bool KMFolder::isIndexOutdated(void) { QFileInfo contInfo(location()); QFileInfo indInfo(indexLocation()); if (!contInfo.exists()) return FALSE; if (!indInfo.exists()) return TRUE; return (contInfo.lastModified() > indInfo.lastModified()); }
KMFolderIndex::IndexStatus KMFolderIndex::indexStatus() { QFileInfo contInfo(location()); QFileInfo indInfo(indexLocation()); if (!contInfo.exists()) return KMFolderIndex::IndexOk; if (!indInfo.exists()) return KMFolderIndex::IndexMissing; return ( contInfo.lastModified() > indInfo.lastModified() ) ? KMFolderIndex::IndexTooOld : KMFolderIndex::IndexOk; }