summaryrefslogtreecommitdiff
path: root/stats_display_window.h
blob: 887c55090d1b1f74391d0f15ba6b6aceef1e245a (plain)
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
#ifndef STATS_DISPLAY_WINDOW_H
#define STATS_DISPLAY_WINDOW_H

#include <QWidget>
#include <QDebug>
#include <QByteArray>
#include <QFile>
#include <QJsonObject>
#include <QJsonDocument>
#include "file_download.h"

namespace Ui {
class stats_display_window;
}

class stats_display_window : public QWidget
{
    Q_OBJECT


protected:
      void showEvent(QShowEvent *ev);

public:
    explicit stats_display_window(QWidget *parent = 0);
    ~stats_display_window();

private:
    Ui::stats_display_window *ui;

    struct user_info {
        QString username;
        QString realname;
        QString avatar_url;
    } user;

    file_download download;
signals:
      void window_loaded();

private slots:
    void test();
};

#endif // STATS_DISPLAY_WINDOW_H