-
Notifications
You must be signed in to change notification settings - Fork 9
/
getinfo.h
43 lines (33 loc) · 898 Bytes
/
getinfo.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
#pragma once
#include "ashirtdialog/ashirtdialog.h"
#include <QNetworkReply>
#include "components/evidence_editor/evidenceeditor.h"
class DatabaseConnection;
class LoadingButton;
class GetInfo : public AShirtDialog {
Q_OBJECT
public:
explicit GetInfo(DatabaseConnection *db, qint64 evidenceID, QWidget *parent = nullptr);
~GetInfo();
private:
void buildUi();
void wireUi();
bool saveData();
void showEvent(QShowEvent *evt) override;
signals:
void setActionButtonsEnabled(bool enabled);
private slots:
void submitButtonClicked();
void deleteButtonClicked();
void onUploadComplete();
public:
signals:
void evidenceSubmitted(model::Evidence evidence);
private:
DatabaseConnection *db;
qint64 evidenceID;
QNetworkReply *uploadAssetReply = nullptr;
// Ui Components
EvidenceEditor *evidenceEditor = nullptr;
LoadingButton *submitButton = nullptr;
};