return d->path;
}
-void Root::setMaxAgeSeconds(int seconds)
+void Root::setMaxAgeSeconds(unsigned int seconds)
{
d->maxAgeSeconds = seconds;
}
+
+unsigned int Root::maxAgeSeconds() const
+{
+ return d->maxAgeSeconds;
+}
void Root::setHTTPClient(HTTP::Client* aHTTP)
{
{
CatalogDict::iterator it = d->catalogs.begin();
for (; it != d->catalogs.end(); ++it) {
- if (aForce || (it->second->ageInSeconds() > d->maxAgeSeconds)) {
+ if (aForce || it->second->needsRefresh()) {
it->second->refresh();
}
}