summaryrefslogtreecommitdiff
path: root/stats_display_window.h
blob: d73f6cad29e008276ddfbc0ed196e68ea069ffbb (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 "file_download.h"
#include "parse_file.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 { /* contains our user data for both steam and csgo */
        QString username;
        QString realname;
        QString avatar_url;
        QString status;
        QString time_ingame;
    } user;

    file_download download;
    parse_file parse;
signals:
      void window_loaded();

private slots:
    void window_open();
};

#endif // STATS_DISPLAY_WINDOW_H