-
Notifications
You must be signed in to change notification settings - Fork 1
/
global.cpp
68 lines (39 loc) · 1.01 KB
/
global.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <QMessageBox>
#include "global.h"
global::global(int &argc, char *argv[]) :
QApplication(argc, argv) {
}
global::~global() {
}
// Getters
QString global::id_user() const {
return m_id_user;
}
QString global::id_profile() const {
return m_id_profile;
}
QString global::id_campaign() const {
return m_id_campaign;
}
//Setters
void global::set_id_user(const QString &id_user) {
m_id_user = id_user;
QMessageBox msgbox;
msgbox.setText("Novi prijavljeni uporabnik je " + id_user);
// msgbox.exec();
emit id_user_changed();
}
void global::set_id_profile(const QString &id_profile) {
m_id_profile = id_profile;
QMessageBox msgbox;
msgbox.setText("Novi profil je " + id_profile);
// msgbox.exec();
emit id_profile_changed();
}
void global::set_id_campaign(const QString &id_campaign) {
m_id_campaign = id_campaign;
QMessageBox msgbox;
msgbox.setText("Nova kampanija je " + id_campaign);
// msgbox.exec();
emit id_campaign_changed();
}