#include <VP1WebWatcher.h>
Definition at line 29 of file VP1WebWatcher.h.
 
◆ RESULT
| Enumerator | 
|---|
| UNKNOWN |  | 
| INVALID_URL |  | 
| CONNECTION_PROBLEMS |  | 
| NOT_ON_SERVER |  | 
| EXISTS |  | 
Definition at line 49 of file VP1WebWatcher.h.
 
 
◆ VP1WebWatcher() [1/2]
      
        
          | VP1WebWatcher::VP1WebWatcher | ( | int | recheckInterval_ms = 30000, | 
        
          |  |  | QObject * | parent = 0 | 
        
          |  | ) |  |  | 
      
 
Definition at line 177 of file VP1WebWatcher.cxx.
  178   : QObject(
parent), 
m_d(
new Imp(
this,recheckInterval_ms))
 
  180   startTimer(recheckInterval_ms);
 
 
 
◆ VP1WebWatcher() [2/2]
      
        
          | VP1WebWatcher::VP1WebWatcher | ( | const QStringList & | urls, | 
        
          |  |  | int | recheckInterval_ms = 30000, | 
        
          |  |  | QObject * | parent = 0 | 
        
          |  | ) |  |  | 
      
 
Definition at line 184 of file VP1WebWatcher.cxx.
  185   : QObject(
parent), 
m_d(
new Imp(
this,recheckInterval_ms))
 
  188   startTimer(recheckInterval_ms);
 
 
 
◆ ~VP1WebWatcher()
  
  | 
        
          | VP1WebWatcher::~VP1WebWatcher | ( |  | ) |  |  | virtual | 
 
 
◆ addUrl()
      
        
          | void VP1WebWatcher::addUrl | ( | const QString & |  | ) |  | 
      
 
 
◆ addUrls()
      
        
          | void VP1WebWatcher::addUrls | ( | const QStringList & |  | ) |  | 
      
 
 
◆ httpRequestDone
  
  | 
        
          | void VP1WebWatcher::httpRequestDone | ( | bool | error | ) |  |  | privateslot | 
 
Definition at line 200 of file VP1WebWatcher.cxx.
  203     if (wu->thread && wu->thread->handleDone(
error, sender())) {
 
  204       bool changed = wu->lastResult != wu->thread->result();
 
  205       wu->lastResult = wu->thread->result();
 
 
 
 
◆ isWatchingUrl()
      
        
          | bool VP1WebWatcher::isWatchingUrl | ( | const QString & | u | ) | const | 
      
 
 
◆ lastModTime()
      
        
          | QDateTime VP1WebWatcher::lastModTime | ( | const QString & | url | ) |  | 
      
 
Definition at line 325 of file VP1WebWatcher.cxx.
  329       if (wu->lastResult.startsWith(VP1WebWatcher_PREFIX))
 
  331       QString lastmod = wu->lastResult;
 
  332       lastmod = lastmod.simplified();
 
  335       dt.setTimeSpec(Qt::UTC);
 
 
 
 
◆ lastResult()
Definition at line 291 of file VP1WebWatcher.cxx.
  295       if (wu->lastResult==VP1WebWatcher_UrlInvalid)
 
  297       if (wu->lastResult==VP1WebWatcher_httpProblems)
 
  299       if (wu->lastResult==VP1WebWatcher_FileNotExist)
 
  301       if (wu->lastResult==VP1WebWatcher_Unknown)
 
  303       if (wu->lastResult==VP1WebWatcher_ResultNotReady)
 
 
 
 
◆ lastResultToString()
      
        
          | QString VP1WebWatcher::lastResultToString | ( | const QString & | url | ) |  | 
      
 
 
◆ removeUrl()
      
        
          | void VP1WebWatcher::removeUrl | ( | const QString & |  | ) |  | 
      
 
 
◆ removeUrls()
      
        
          | void VP1WebWatcher::removeUrls | ( | const QStringList & |  | ) |  | 
      
 
 
◆ timerEvent()
  
  | 
        
          | void VP1WebWatcher::timerEvent | ( | QTimerEvent * |  | ) |  |  | protected | 
 
 
◆ urlChanged
  
  | 
        
          | void VP1WebWatcher::urlChanged | ( | const QString & | url | ) |  |  | signal | 
 
 
◆ urls()
      
        
          | QStringList VP1WebWatcher::urls | ( |  | ) | const | 
      
 
 
◆ m_d
The documentation for this class was generated from the following files: