ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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")
74  , m_expectedMD5Sum("")
75  , m_bytesReceived(0)
76  , m_lastChangeTime(0)
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 
93  connect(&m_stallTimer,SIGNAL(timeout()), m_theclass, SLOT(checkForStall()));
94  m_stallTimer.start(10000);
95 }

◆ ~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 }

◆ 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:
VP1AvailEvtsHttps::generateHttpsRequest
void generateHttpsRequest()
Definition: VP1AvailEvtsHttps.cxx:153
VP1AvailEvtsHttps::finished
void finished()
Definition: VP1AvailEvtsHttps.cxx:233
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
VP1AvailEvtsHttps::Imp::m_updateInterval
int m_updateInterval
Definition: VP1AvailEvtsHttps.cxx:48
VP1AvailEvtsHttps::Imp::m_theclass
VP1AvailEvtsHttps * m_theclass
Definition: VP1AvailEvtsHttps.cxx:45
VP1AvailEvtsHttps::Imp::m_fileInfoUrl
QString m_fileInfoUrl
Definition: VP1AvailEvtsHttps.cxx:46
VP1AvailEvtsHttps::Imp::m_netreply
QNetworkReply * m_netreply
Definition: VP1AvailEvtsHttps.cxx:51
VP1AvailEvtsHttps::checkForStall
void checkForStall()
Definition: VP1AvailEvtsHttps.cxx:389
isValid
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition: AtlasPID.h:620
VP1AvailEvtsHttps::Imp::m_baseUrl
QString m_baseUrl
Definition: VP1AvailEvtsHttps.cxx:47
physics_parameters.url
string url
Definition: physics_parameters.py:27
VP1AvailEvtsHttps::Imp::m_netmanager
QNetworkAccessManager * m_netmanager
Definition: VP1AvailEvtsHttps.cxx:50
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
VP1AvailEvtsHttps::Imp::m_bytesReceived
qint64 m_bytesReceived
Definition: VP1AvailEvtsHttps.cxx:56
VP1AvailEvtsHttps::Imp::m_evtToGet
QString m_evtToGet
Definition: VP1AvailEvtsHttps.cxx:52
VP1AvailEvtsHttps::dataReadProgress
void dataReadProgress(qint64, qint64)
Definition: VP1AvailEvtsHttps.cxx:377
VP1AvailEvtsHttps::sslErrors
void sslErrors(const QList< QSslError > &)
Definition: VP1AvailEvtsHttps.cxx:365
VP1AvailEvtsHttps::Imp::m_urlLastMod
QString m_urlLastMod
Definition: VP1AvailEvtsHttps.cxx:54
VP1AvailEvtsHttps::Imp::m_stallTimer
QTimer m_stallTimer
Definition: VP1AvailEvtsHttps.cxx:59
VP1AvailEvtsHttps::error
void error(QNetworkReply::NetworkError)
Definition: VP1AvailEvtsHttps.cxx:357
VP1AvailEvtsHttps::Imp::m_expectedMD5Sum
QString m_expectedMD5Sum
Definition: VP1AvailEvtsHttps.cxx:55
VP1AvailEvtsHttps::Imp::m_stage
int m_stage
Definition: VP1AvailEvtsHttps.cxx:53
python.TrigInDetArtSteps.timeout
timeout
Definition: TrigInDetArtSteps.py:35
VP1AvailEvtsHttps::Imp::m_lastChangeTime
unsigned m_lastChangeTime
Definition: VP1AvailEvtsHttps.cxx:57