forked from CodingMorry7/Get2gether
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdisplay.h
38 lines (30 loc) · 1.02 KB
/
display.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
#ifndef DISPLAY_H
#define DISPLAY_H
#include <QString>
#include <QTableView>
#include <QObject>
#include "connection.h"
/* Class purpose: Contains slots relevant to updating
* a QTableView object in a dashboard
* object.
*/
class display : public QObject
{
Q_OBJECT
public:
connection conn;
display();
display(connection &myconn);
private:
void resetValues();
public slots:
void displayResults(QTableView *table, QString command);
void updateEventsView(QTableView *eventTable, QString username, QString date);
void updateGroupsView(QTableView *groupTbl, QString username);
void updateMemberEvents(QTableView *eventTable, QString groupID, QString date);
void updateGroupEvents(QTableView *eventTable, QString groupID);
void updateMembersView(QTableView *memberTbl, QString groupID);
void updateRemindersView(QTableView *reminderTbl, QString username);
void updateBulletinsView(QTableView *bulletinTbl, QString groupID);
};
#endif // DISPLAY_H