Emergency 20 Dokumentation  4.2.0
Emergency5Rights.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
15 #include <qsf/base/rights/Right.h>
16 #include <qsf/base/rights/Rights.h>
17 
18 
19 //[-------------------------------------------------------]
20 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24 
25 
26  //[-------------------------------------------------------]
27  //[ Classes ]
28  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Qt definitions (MOC) ]
39  //[-------------------------------------------------------]
40  // Empty fake Q_OBJECT macro to silence the lupdate Qt tool ("Class '<x>' lacks Q_OBJECT macro" warnings)
41  #ifndef Q_OBJECT
42  #define Q_OBJECT
43  #define QSF_FAKE_Q_OBJECT
44  #endif
45  Q_OBJECT
46  #ifdef QSF_FAKE_Q_OBJECT
47  #undef Q_OBJECT
48  #undef QSF_FAKE_Q_OBJECT
49  #endif
50 
51 
52  //[-------------------------------------------------------]
53  //[ Public definitions ]
54  //[-------------------------------------------------------]
55  public:
56  static const uint32 EVENT_SEE_ALL;
57 
58 
59  //[-------------------------------------------------------]
60  //[ Public methods ]
61  //[-------------------------------------------------------]
62  public:
70  explicit Emergency5Rights(qsf::RightsManager* rightsManager);
71 
76  inline virtual ~Emergency5Rights();
77 
78 
79  //[-------------------------------------------------------]
80  //[ Private data ]
81  //[-------------------------------------------------------]
82  private:
83  qsf::Right mEventSeeAll;
84 
85 
86  //[-------------------------------------------------------]
87  //[ CAMP reflection system ]
88  //[-------------------------------------------------------]
89  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
90 
91 
92  };
93 
94 
95 //[-------------------------------------------------------]
96 //[ Namespace ]
97 //[-------------------------------------------------------]
98 } // qsf
99 
100 
101 //[-------------------------------------------------------]
102 //[ Implementation ]
103 //[-------------------------------------------------------]
105 
106 
107 //[-------------------------------------------------------]
108 //[ CAMP reflection system ]
109 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
Rights manager class.
Definition: RightsManager.h:50
#define EM5_API_EXPORT
Definition: Export.h:28
Abstract rights base class.
Definition: Rights.h:36
Fine granular right class.
Definition: Right.h:43
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
EMERGENCY 5 rights class.
Definition: Emergency5Rights.h:33
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
#define Q_OBJECT
Definition: Emergency5Rights.h:42
static const uint32 EVENT_SEE_ALL
"emergency5.event.see_all" unique right ID
Definition: Emergency5Rights.h:56