-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreportobject.h
44 lines (36 loc) · 886 Bytes
/
reportobject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: MIT
#ifndef REPORTOBJECT_H
#define REPORTOBJECT_H
#include <QObject>
#include <QDateTime>
#include <QNetworkAccessManager>
#include <QNetworkReply>
class ReportObject : public QObject
{
Q_OBJECT
public:
explicit ReportObject(QObject *parent = nullptr);
void fetch_report();
QString id;
QString title;
QDateTime timestamp_last_update;
QString description;
quint8 severity;
QString link;
QStringList tags;
QString ioc;
QString visibility;
QString server_url;
QString auth, org_key;
QByteArray jsonReport;
private slots:
void slotError(QNetworkReply::NetworkError);
void slotSslErrors(QList<QSslError>);
void slotFinished();
private:
QNetworkAccessManager *manager;
QNetworkReply *reply;
//bool network_error;
};
#endif // REPORTOBJECT_H