-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathstocksdialog.h
47 lines (37 loc) · 1.05 KB
/
stocksdialog.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
#ifndef STOCKSDIALOG_H
#define STOCKSDIALOG_H
#include <QtWidgets/QDialog>
#include "mainwindow.h"
namespace Ui {
class stocksDialog;
}
class stocksDialog : public QDialog
{
Q_OBJECT
public:
explicit stocksDialog(QWidget *parent = nullptr);
~stocksDialog();
private slots:
void on_buyCrypto_clicked();
void replyFinished (QNetworkReply *reply);
void on_sellCrypto_clicked();
void on_getPrice_clicked();
void on_getCurrentPrices_clicked();
private:
Ui::stocksDialog *ui;
void createTable(QString table);
void do_download(QString pair);
QJsonDocument ReadJson(const QString &path);
void process_dataframe(QString fname);
void load_model();
QStringList initializemodel();
QVariant loadsettings(QString settings);
void savesettings(QString settings, QVariant attr);
void combo_refresh(int comboindex);
void delay(int msec);
void closedelay(double close);
QStringList readpairfromfile();
QStandardItemModel *model;
QNetworkAccessManager *manager;
};
#endif // STOCKSDIALOG_H