-
Notifications
You must be signed in to change notification settings - Fork 0
/
shield.h
58 lines (56 loc) · 1.11 KB
/
shield.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include<stdlib.h>
#include<string.h>
#include<iostream>
#include<unistd.h>
#include "passwd.h"
#ifdef CLR
#undef CLR
#endif
#define CLR system("clear");
using namespace std;
namespace shield{
class _case{
int id;char* name;int level_access;
public:
_case(int ,char* ,int);
_case();
~_case();
void add(int);
int searchc(int);
void pdetails(int,int);
int adda(int);
};
void report();
int nreports();
class agent{
int id;int level;char* name;char* password;
public:
agent(int,int,char *);
agent();
~agent();
void pmdetails(); //print my details
void pdetails(); // print agent details
void login();
void work();
void promote();
void demote();
void epassword(); //edit password
void edetails(); //edit details
bool passwordc(passwd x);
void fpwd();
void displayo();
int search(int);
int searchd(int);
char* encrypt(char *);
char* decrypt(char *);
char * aname();
void freea();
char iswork();
void chatbox();
int messages();
int amsg(int);
int cases();
};
void apply();
int nappli();
}