-
Notifications
You must be signed in to change notification settings - Fork 0
/
iocmainwindow.h
51 lines (41 loc) · 1 KB
/
iocmainwindow.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
45
46
47
48
49
50
51
// Copyright 2020-2023 VMware, Inc.
// SPDX-License-Identifier: MIT
#ifndef IOCMAINWINDOW_H
#define IOCMAINWINDOW_H
#include <QMainWindow>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include "iocsyntaxhighlighter.h"
#include "feed.h"
#include "report.h"
namespace Ui {
class IocMainWindow;
}
class IocMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit IocMainWindow(QWidget *parent = 0);
~IocMainWindow();
private:
Ui::IocMainWindow *ui;
QStringList get_instances_list();
void refresh();
QString name;
QString api_id;
QString api_secret;
QString server, server_url;
QString org_key;
QString auth;
QByteArray IOCs;
QNetworkAccessManager *manager;
QNetworkReply *reply;
bool network_error;
QList<Feed *> Feedlist;
private slots:
void slotError(QNetworkReply::NetworkError);
void slotSslErrors(QList<QSslError>);
void slotFinished();
void on_comboBox_currentIndexChanged(int index);
};
#endif // IOCMAINWINDOW_H