-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminview.h
44 lines (36 loc) · 962 Bytes
/
adminview.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
#ifndef ADMINVIEW_H
#define ADMINVIEW_H
#include <QWidget>
#include "DTOs.h"
#include <vector>
#include <QInputDialog>
namespace Ui {
class AdminView;
}
class AdminView : public QWidget
{
Q_OBJECT
public:
explicit AdminView(QWidget *parent = nullptr);
~AdminView();
void placeUsersInTable(std::vector<Student>);
void placeUsersInTable(std::vector<Teacher>);
private:
Ui::AdminView *ui;
void placeUserInTable(Student);
void placeUserInTable(Teacher);
signals:
void requestLogout();
void requestAllStudents();
void requestAllTeachers();
void requestDeleteTeacher(QString);
void requestDeleteStudent(QString);
private slots:
void on_pushButton_clicked();
void on_button_logout_clicked();
void on_button_refresh_students_clicked();
void on_button_refresh_teachers_clicked();
void on_button_remove_teacher_clicked();
void on_button_remove_student_clicked();
};
#endif // ADMINVIEW_H