time_t tm_winsparkle::lastCheck() const { #if WIN_SPARKLE_CHECK_VERSION(0,4,0) return win_sparkle_get_last_check_time(); #else return 0; #endif }
QDateTime WinSparkleAutoUpdater::lastUpdateCheckDate() { time_t lastUpdate = win_sparkle_get_last_check_time(); if (lastUpdate == -1) return QDateTime(); // never checked yet #if QT_VERSION < 0x050800 return QDateTime::fromTime_t(lastUpdate); #else return QDateTime::fromSecsSinceEpoch(lastUpdate); #endif }