Neonode zForce(TM) SDK
Message.h
Go to the documentation of this file.
1 
9 #ifndef MESSAGE_MESSAGE_H
10 #define MESSAGE_MESSAGE_H
11 
12 #ifndef ZFORCECOMMON_H
13  #error Please include "zForceCommon.h" before this file.
14 #endif // ZFORCECOMMON_H
15 
16 struct Message
17 {
18  MessageType MessageType;
19  MessageGroup MessageGroup;
20  bool Error;
21  int ErrorCode;
22  uint64_t SerialNumber;
23  void ( * Destructor)(Message * self);
24 };
25 
42 DLLEXTERNAL Message * Message_GetInstance (MessageType messageType,
43  MessageGroup messageGroup);
44 
55 DLLINTERNAL Message * Message_New (MessageGroup messageGroup, uint32_t size);
56 
57 // Barr 4.2d violation and exclusion.
58 #if defined(USE_ENABLEMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
59  #include <EnableMessage.h>
60 #endif
61 
62 #if defined(USE_DISABLEMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
63  #include <DisableMessage.h>
64 #endif
65 
66 #if defined(USE_OPERATIONMODESMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
67  #include <OperationModesMessage.h>
68 #endif
69 
70 #if defined(USE_RESOLUTIONMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
71  #include <ResolutionMessage.h>
72 #endif
73 
74 #if defined(USE_TOUCHACTIVEAREAMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
75  #include <TouchActiveAreaMessage.h>
76 #endif
77 
78 #if defined(USE_TOUCHMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
79  #include <TouchMessage.h>
80 #endif
81 
82 #if defined(USE_NUMBEROFTRACKEDOBJECTSMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
84 #endif
85 
86 #if defined(USE_FINGERFREQUENCYMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
87  #include <FingerFrequencyMessage.h>
88 #endif
89 
90 #if defined(USE_IDLEFREQUENCYMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
91  #include <IdleFrequencyMessage.h>
92 #endif
93 
94 #if defined(USE_DETECTEDOBJECTSIZERESTRICTIONMESSAGE) || !defined(COMPILING_ZFORCE_SDK)
96 #endif
97 
98 #endif // MESSAGE_MESSAGE_H
99 
An TouchMessage contains the Data of a Touch.
A DisableMessage that disables a Device.
A FingerFrequencyMessage.
MessageType MessageType
The Message Type of the Message.
Definition: Message.h:18
DLLINTERNAL Message * Message_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for Message.
uint64_t SerialNumber
Unique serial number for this message.
Definition: Message.h:22
A TouchActiveAreaMessage contains the Touch Active Area of a Device.
An IdleFrequencyMessage.
bool Error
If an error occurred, this is True.
Definition: Message.h:20
An OperationModesMessage contains the modes the Device is set to.
Definition: Message.h:16
void(* Destructor)(Message *self)
Destructor.
Definition: Message.h:23
A ResolutionMessage that contains the Resolution a Device is set to.
An EnableMessage that enables a Device.
A DetectedObjectSizeRestrictionMessage contains Detected Object Size Restrictions of a Device...
DLLEXTERNAL Message * Message_GetInstance(MessageType messageType, MessageGroup messageGroup)
Factory creator for Messages.
MessageGroup MessageGroup
The Message Group of the Message.
Definition: Message.h:19
int ErrorCode
Error Code, valid when Error == true.
Definition: Message.h:21
A NumberOfTrackedObjectsMessage.