summaryrefslogtreecommitdiff
path: root/user_select_dialog.h
blob: dc83ddb4e27bd2d137cb64d98ecb7857f028361e (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 USER_SELECT_DIALOG_H
#define USER_SELECT_DIALOG_H

#include <QMainWindow>
#include <QDebug>
#include <QFile>
#include "file_download.h"
#include "stats_display_window.h"
#include "parse_file.h"
#include "user_management.h"

namespace Ui {
class user_select_dialog;
}

class user_select_dialog : public QMainWindow
{
    Q_OBJECT

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

private slots:
    void on_select_account_button_clicked();

    void on_player_dropdown_currentIndexChanged(int index);

    void on_manage_users_button_clicked();

    void on_refresh_users_button_clicked();

private:
    Ui::user_select_dialog *ui;
    file_download download;
    stats_display_window n_window;
    user_management manage;
    parse_file parse;
    void download_info();
    void load_players();
    QStringList usernames;
    QStringList userids;
};

#endif // USER_SELECT_DIALOG_H