-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmytable.h
31 lines (26 loc) · 801 Bytes
/
mytable.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
#include <QtGui>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QTableWidget>
#include <QHeaderView>
#include <vector>
#include <fstream>
#include "MyDataReader.h"
class mytable : public QTableWidget {
Q_OBJECT
public:
// mytable constructor, takes the file as an argument.
mytable(QWidget *parent = 0, std::ifstream* in = nullptr);
// stores the names of the coins.
std::vector<std::string> names;
public slots:
// gets the usd,eur,gbp values from the website.
void dothings(std::vector<std::string>* ids);
// creates the table.
void replyFinished(QNetworkReply * reply) ;
private:
QTableWidget *table;
QNetworkAccessManager *manager;
MyDataReader *read;
} ;