ATLAS Offline Software
VP1AvailEvtsHttps.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1AvailEvtsHttps //
9 // //
10 // Description: ... //
11 // //
13 
14 #ifndef VP1AVAILEVTSHTTPS_H
15 #define VP1AVAILEVTSHTTPS_H
16 
17 // include C++
18 //#include <stddef.h> // this to fix the 'ptrdiff_t' does not name a type error with Qt (http://qt-project.org/forums/viewthread/16992)
19 
20 #include <QObject>
21 #include <QNetworkReply>
22 
23 #include "VP1Gui/VP1AvailEvents.h"
24 
25 class QNetworkAccessManager;
26 
28 {
29  Q_OBJECT
30 
31 public:
32 
33  VP1AvailEvtsHttps(QString fileinfoUrl,
34  int updateInterval,
35  int timeCutForNew,
36  const QString& tmpcopydir,
37  int maxLocalFilesToKeep = -1,
38  QObject * parent = 0);
39  virtual ~VP1AvailEvtsHttps();
40 
41  virtual void init();
42 
43  const QString& fileinfoLocation();
44 
45 public Q_SLOTS:
46  void start(QNetworkAccessManager* netmanager);
47 
48 private Q_SLOTS:
49  // ---- Https/SSL slots ----
50  // Slots of the QNetworkReply
51  void finished();
52  void error(QNetworkReply::NetworkError);
53 #ifndef QT_NO_SSL
54  void sslErrors(const QList<QSslError>&);
55 #endif
56  void dataReadProgress(qint64,qint64);
57  void checkForStall();
58 
59  // Timer slot
60  void generateHttpsRequest();
61 
62 private:
63  class Imp;
64  Imp* m_d;
65 };
66 
67 #endif
68 
VP1AvailEvtsHttps::generateHttpsRequest
void generateHttpsRequest()
Definition: VP1AvailEvtsHttps.cxx:153
VP1AvailEvtsHttps::finished
void finished()
Definition: VP1AvailEvtsHttps.cxx:233
VP1AvailEvtsHttps
Definition: VP1AvailEvtsHttps.h:28
VP1AvailEvtsHttps::init
virtual void init()
Definition: VP1AvailEvtsHttps.cxx:137
VP1AvailEvents.h
VP1AvailEvtsHttps::start
void start(QNetworkAccessManager *netmanager)
Definition: VP1AvailEvtsHttps.cxx:142
VP1AvailEvtsHttps::checkForStall
void checkForStall()
Definition: VP1AvailEvtsHttps.cxx:389
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1AvailEvents::timeCutForNew
int timeCutForNew() const
Definition: VP1AvailEvents.cxx:92
VP1AvailEvtsHttps::Imp
Definition: VP1AvailEvtsHttps.cxx:33
VP1AvailEvtsHttps::VP1AvailEvtsHttps
VP1AvailEvtsHttps(QString fileinfoUrl, int updateInterval, int timeCutForNew, const QString &tmpcopydir, int maxLocalFilesToKeep=-1, QObject *parent=0)
Definition: VP1AvailEvtsHttps.cxx:121
VP1AvailEvtsHttps::fileinfoLocation
const QString & fileinfoLocation()
Definition: VP1AvailEvtsHttps.cxx:148
VP1AvailEvtsHttps::dataReadProgress
void dataReadProgress(qint64, qint64)
Definition: VP1AvailEvtsHttps.cxx:377
VP1AvailEvtsHttps::sslErrors
void sslErrors(const QList< QSslError > &)
Definition: VP1AvailEvtsHttps.cxx:365
VP1AvailEvents::maxLocalFilesToKeep
int maxLocalFilesToKeep() const
Definition: VP1AvailEvents.cxx:98
VP1AvailEvtsHttps::error
void error(QNetworkReply::NetworkError)
Definition: VP1AvailEvtsHttps.cxx:357
VP1AvailEvents
Definition: VP1AvailEvents.h:25
VP1AvailEvtsHttps::m_d
Imp * m_d
Definition: VP1AvailEvtsHttps.h:63
VP1AvailEvtsHttps::~VP1AvailEvtsHttps
virtual ~VP1AvailEvtsHttps()
Definition: VP1AvailEvtsHttps.cxx:132