-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatastructures.h
More file actions
61 lines (48 loc) · 818 Bytes
/
Copy pathdatastructures.h
File metadata and controls
61 lines (48 loc) · 818 Bytes
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
#pragma once
#include <QString>
#include <QDateTime>
#include <Qvector>
struct User
{
int i_ID;
QString s_Full_Name;
QString s_Right;
QString s_Office;
};
#define EDIT_USERS 0
#define EDIT_RIGHTS 1
#define EDIT_OFFICE 2
#define EDIT_HOLIDAYS 3
#define LAST_EDIT EDIT_HOLIDAYS
struct Right
{
int i_ID;
QString s_Name;
int i_acs_lvl;
bool rights[LAST_EDIT + 1];
};
struct Office
{
int i_ID;
QString s_Name;
QString s_Address;
};
const QString fileDateFormate = "yyyy-MM-dd HH:mm:ss";
struct File
{
QString s_Name;
QDateTime dt_DateModified;
QString s_Type;
int i_acs_lvl;
long i_Size;
};
struct Message
{
QString text;
QDateTime date_time;
int sender;
int recepient;
};
#define LOWEST_ACS_LVL 7
#define SEP "|"
#define KB 1024