#include <VersionTester.h>

Inheritance diagram for VersionTester:
Inheritance graph
Collaboration diagram for VersionTester:
Collaboration graph

Signals

void newerVersionAvailable (QString)
 

Public Member Functions

 VersionTester (QString hostname, QString versionFilePath, QString myVersion)
 
virtual ~VersionTester ()
 

Static Public Member Functions

static bool isVersionNewerThan (QString, QString)
 

Protected Slots

void finished ()
 
void error (QNetworkReply::NetworkError)
 

Private Attributes

QString m_myVersion
 
QNetworkReply * m_reply
 
bool m_httpFailed
 
QNetworkAccessManager * m_nm
 

Detailed Description

Definition at line 31 of file VersionTester.h.

Constructor & Destructor Documentation

VersionTester::VersionTester ( QString  hostname,
QString  versionFilePath,
QString  myVersion 
)

Definition at line 29 of file VersionTester.cpp.

References error(), finished(), m_nm, and m_reply.

VersionTester::~VersionTester ( )
virtual

Definition at line 44 of file VersionTester.cpp.

References m_nm, and m_reply.

Member Function Documentation

bool VersionTester::isVersionNewerThan ( QString  a,
QString  b 
)
static

Definition at line 54 of file VersionTester.cpp.

Referenced by finished().

void VersionTester::newerVersionAvailable ( QString  )
signal

Referenced by finished().

void VersionTester::finished ( )
protectedslot

Definition at line 90 of file VersionTester.cpp.

References isVersionNewerThan(), m_httpFailed, m_myVersion, m_reply, and newerVersionAvailable().

Referenced by VersionTester().

void VersionTester::error ( QNetworkReply::NetworkError  )
protectedslot

Definition at line 83 of file VersionTester.cpp.

References m_httpFailed, and m_reply.

Referenced by VersionTester().

Member Data Documentation

QString VersionTester::m_myVersion
private

Definition at line 49 of file VersionTester.h.

Referenced by finished().

QNetworkReply* VersionTester::m_reply
private

Definition at line 50 of file VersionTester.h.

Referenced by error(), finished(), VersionTester(), and ~VersionTester().

bool VersionTester::m_httpFailed
private

Definition at line 51 of file VersionTester.h.

Referenced by error(), and finished().

QNetworkAccessManager* VersionTester::m_nm
private

Definition at line 52 of file VersionTester.h.

Referenced by VersionTester(), and ~VersionTester().


The documentation for this class was generated from the following files: