-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauth.h
More file actions
41 lines (39 loc) · 997 Bytes
/
auth.h
File metadata and controls
41 lines (39 loc) · 997 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
/**
* @file auth.h
* @brief Authentication header
* @author mnxoid
*
* Copyright 2014 by mnxoid,
*
* This software is the confidential and proprietary information
* of mnxoid ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with mnxoid.
**/
#ifndef AUTH_H
#define AUTH_H
extern int session; //!< Current SESSION_ID
/**
* @brief Enumeration with types of access privileges
**/
typedef enum
{
ADMIN, //!< Administrator privileges
EXUSER, //!< Extended user privileges
USER, //!< Default user privileges
DENIED //!< Access denied
}Access;
#ifndef AUTH_CPP
/**
* @brief The authentication function
* @param [in] login - User name
* @param [in] pwd - User password
*
* @return Access Privilege level
* @see Access
*
**/
extern Access Check(QString login, QString pwd);
#endif
#endif // AUTH_H