-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdef.h
56 lines (44 loc) · 1.06 KB
/
def.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
//***************************************************************************
// File def.h
// Date 24.07.17 - #1
// Copyright (c) 2017-2017 s710 (s710 (at) posteo (dot) de). All rights reserved.
// --------------------------------------------------------------------------
// Ark ClusterChat / globals
//***************************************************************************
#ifndef __DEF_HPP__
#define __DEF_HPP__
//***************************************************************************
// global defines
//***************************************************************************
enum ReturnValues
{
success= 0,
fail= -1,
na= fail,
yes= 1,
no= !yes,
done= success
};
enum State
{
isUnknown= na,
isRunning,
isExit,
isStopped
};
enum Errors
{
errFirst= -99,
errWrongSequence,
wrnNoResponse
};
// global flags
class Globals
{
public:
static int cfgVerbose;
static int cfgDebug;
static int cfgShowAdmin;
};
//***************************************************************************
#endif // __DEF_HPP__