-
Notifications
You must be signed in to change notification settings - Fork 1
/
logginghome.h
66 lines (48 loc) · 1.26 KB
/
logginghome.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef LOGGINGHOME_H
#define LOGGINGHOME_H
#include "popupalert.h"
#include <QMainWindow>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QUrl>
QT_BEGIN_NAMESPACE
namespace Ui { class LoggingHome; }
QT_END_NAMESPACE
class LoggingHome : public QMainWindow
{
Q_OBJECT
public:
LoggingHome(QWidget *parent = nullptr);
~LoggingHome();
private slots:
void url_changed();
void url_updated();
void url_request_sender();
void on_setURLButton_clicked();
void url_download_finished(QNetworkReply *);
void on_checkBox_multiple_clicked(bool checked);
void on_checkBox_singlechange_clicked(bool checked);
void on_verticalSlider_sliderMoved(int position);
void on_reuseURLButton_clicked();
private: //object creation
Ui::LoggingHome *ui;
QNetworkAccessManager *networkmanager;
popupalert *popup_obj;
QUrl url_obj;
QString url_String;
QString url_reply_string;
QString url_past_reply_string;
//flags
bool valid=false;
bool allow_multiple=false;
bool single_change=false;
//counters
int request_counter=0;
int resp;
//read in values
float reply_float;
float past_reply_float;
int delta;
float sensitivitythreshold=0.4; //
};
#endif // LOGGINGHOME_H