29 static const QString VP1WebWatcher_PREFIX =
"vp1webwatcher_";
30 static const QString VP1WebWatcher_Unknown = VP1WebWatcher_PREFIX+
"unknown";
31 static const QString VP1WebWatcher_ResultNotReady = VP1WebWatcher_PREFIX+
"result_not_ready";
32 static const QString VP1WebWatcher_UrlInvalid = VP1WebWatcher_PREFIX+
"url_invalid";
33 static const QString VP1WebWatcher_httpProblems = VP1WebWatcher_PREFIX+
"http_problems";
34 static const QString VP1WebWatcher_FileNotExist = VP1WebWatcher_PREFIX+
"file_not_existant";
45 m_result(VP1WebWatcher_ResultNotReady),
71 std::cout <<
"WARNING!! - VP1WebWatcher::run() needs to be ported to QNetworkManager. Returning..." << std::endl;
95 std::cout <<
"WARNING!! - VP1WebWatcher::handleDone() needs to be ported to QNetworkManager. Returning..." << std::endl;
178 : QObject(
parent), m_d(
new Imp(this,recheckInterval_ms))
180 startTimer(recheckInterval_ms);
185 : QObject(
parent), m_d(
new Imp(this,recheckInterval_ms))
188 startTimer(recheckInterval_ms);
297 if (wu->
lastResult==VP1WebWatcher_httpProblems)
299 if (wu->
lastResult==VP1WebWatcher_FileNotExist)
303 if (wu->
lastResult==VP1WebWatcher_ResultNotReady)
314 case UNKNOWN:
return "UNKNOWN";
318 case EXISTS:
return "EXISTS";
329 if (wu->
lastResult.startsWith(VP1WebWatcher_PREFIX))
332 lastmod = lastmod.simplified();
335 dt.setTimeSpec(Qt::UTC);