ATLAS Offline Software
Loading...
Searching...
No Matches
VP1AvailEvtsHttps::Imp Class Reference
Collaboration diagram for VP1AvailEvtsHttps::Imp:

Public Member Functions

 Imp (VP1AvailEvtsHttps *, QString, int)
 ~Imp ()
void startTimer (int interval=0)
void connectNetworkSignalsToSlots ()

Public Attributes

VP1AvailEvtsHttpsm_theclass
QString m_fileInfoUrl
QString m_baseUrl
int m_updateInterval
QNetworkAccessManager * m_netmanager
QNetworkReply * m_netreply
QString m_evtToGet
int m_stage
QString m_urlLastMod
QString m_expectedMD5Sum
qint64 m_bytesReceived
unsigned m_lastChangeTime
QTimer m_stallTimer

Detailed Description

Definition at line 33 of file VP1AvailEvtsHttps.cxx.

Constructor & Destructor Documentation

◆ Imp()

VP1AvailEvtsHttps::Imp::Imp ( VP1AvailEvtsHttps * theclass,
QString fileInfoUrl,
int updateInterval )

Definition at line 62 of file VP1AvailEvtsHttps.cxx.

65 : m_theclass(theclass)
66 , m_fileInfoUrl(fileInfoUrl)
67 , m_baseUrl("")
68 , m_updateInterval(updateInterval)
69 , m_netmanager(0)
70 , m_netreply(0)
71 , m_evtToGet("")
72 , m_stage(0)
73 , m_urlLastMod("UNKNOWN")
77 , m_stallTimer(0)
78{
79 QUrl url(m_fileInfoUrl);
80 if (url.isValid()) {
81 QString path = url.path();
82 QString infofilebasename = QFileInfo(path).fileName();
83 if (!infofilebasename.isEmpty()&&path.endsWith(infofilebasename)) {
85 m_baseUrl.chop(infofilebasename.count());
86 if (!QUrl(m_baseUrl).isValid())
87 m_baseUrl="";
88 else if (!m_baseUrl.endsWith("/"))
89 m_baseUrl += "/";
90 }
91 }
92
94 m_stallTimer.start(10000);
95}
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition AtlasPID.h:878
QNetworkAccessManager * m_netmanager
VP1AvailEvtsHttps * m_theclass
path
python interpreter configuration --------------------------------------—
Definition athena.py:128

◆ ~Imp()

VP1AvailEvtsHttps::Imp::~Imp ( )

Definition at line 97 of file VP1AvailEvtsHttps.cxx.

98{
99}

Member Function Documentation

◆ connectNetworkSignalsToSlots()

void VP1AvailEvtsHttps::Imp::connectNetworkSignalsToSlots ( )

Definition at line 106 of file VP1AvailEvtsHttps.cxx.

107{
108 connect(m_netreply, SIGNAL(finished()),
109 m_theclass, SLOT(finished()));
110 connect(m_netreply, SIGNAL(error(QNetworkReply::NetworkError)),
111 m_theclass, SLOT(error(QNetworkReply::NetworkError)));
112#ifndef QT_NO_SSL
113 connect(m_netreply, SIGNAL(sslErrors(const QList<QSslError>&)),
114 m_theclass, SLOT(sslErrors(const QList<QSslError>&)));
115#endif
116 connect(m_netreply, SIGNAL(downloadProgress(qint64,qint64)),
117 m_theclass, SLOT(dataReadProgress(qint64,qint64)));
118 m_bytesReceived = 0;
119}
void sslErrors(const QList< QSslError > &)
void dataReadProgress(qint64, qint64)

◆ startTimer()

void VP1AvailEvtsHttps::Imp::startTimer ( int interval = 0)

Definition at line 101 of file VP1AvailEvtsHttps.cxx.

102{
103 QTimer::singleShot((interval>0 ? m_updateInterval : 60) ,m_theclass,SLOT(generateHttpsRequest()));
104}

Member Data Documentation

◆ m_baseUrl

QString VP1AvailEvtsHttps::Imp::m_baseUrl

Definition at line 47 of file VP1AvailEvtsHttps.cxx.

◆ m_bytesReceived

qint64 VP1AvailEvtsHttps::Imp::m_bytesReceived

Definition at line 56 of file VP1AvailEvtsHttps.cxx.

◆ m_evtToGet

QString VP1AvailEvtsHttps::Imp::m_evtToGet

Definition at line 52 of file VP1AvailEvtsHttps.cxx.

◆ m_expectedMD5Sum

QString VP1AvailEvtsHttps::Imp::m_expectedMD5Sum

Definition at line 55 of file VP1AvailEvtsHttps.cxx.

◆ m_fileInfoUrl

QString VP1AvailEvtsHttps::Imp::m_fileInfoUrl

Definition at line 46 of file VP1AvailEvtsHttps.cxx.

◆ m_lastChangeTime

unsigned VP1AvailEvtsHttps::Imp::m_lastChangeTime

Definition at line 57 of file VP1AvailEvtsHttps.cxx.

◆ m_netmanager

QNetworkAccessManager* VP1AvailEvtsHttps::Imp::m_netmanager

Definition at line 50 of file VP1AvailEvtsHttps.cxx.

◆ m_netreply

QNetworkReply* VP1AvailEvtsHttps::Imp::m_netreply

Definition at line 51 of file VP1AvailEvtsHttps.cxx.

◆ m_stage

int VP1AvailEvtsHttps::Imp::m_stage

Definition at line 53 of file VP1AvailEvtsHttps.cxx.

◆ m_stallTimer

QTimer VP1AvailEvtsHttps::Imp::m_stallTimer

Definition at line 59 of file VP1AvailEvtsHttps.cxx.

◆ m_theclass

VP1AvailEvtsHttps* VP1AvailEvtsHttps::Imp::m_theclass

Definition at line 45 of file VP1AvailEvtsHttps.cxx.

◆ m_updateInterval

int VP1AvailEvtsHttps::Imp::m_updateInterval

Definition at line 48 of file VP1AvailEvtsHttps.cxx.

◆ m_urlLastMod

QString VP1AvailEvtsHttps::Imp::m_urlLastMod

Definition at line 54 of file VP1AvailEvtsHttps.cxx.


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