Writing the SDK ApplicationSY-7000 SDK Manual
19
CLASS EVENTMANAGER
This class is responsible to handling all events in the system the Event Manager related to 8 events.
Every event has a call back function that presents the handle function. When one event occurs the call
back function for this event is called and in this way you can configure the functionality of every event.
The events are:
•
Keyboard
•
Magnetic card track 1
•
Magnetic card track 2
•
Magnetic card track 3
•
Barcode card
•
Proximity card
•
Timer
•
Proximity
Public methods:
•
virtual ~EventManager();
•
void RegisterForEvent(Event eventId, EventCallback callback, void* userdata);
•
void UnRegisterForEvent(Event eventId, EventCallback callback);
•
int InstallNetworkServer (const unsigned int port , const char* ifc = "eth0" );
•
int createLowResTimer (long timeoutSeconds);
•
void killTimer (int timerId);
•
int EventLoop ();
•
static EventManager * GetInstance();
Methods description:
virtual ~EventManager();
This is the destructor for EventManager
void RegisterForEvent(Event eventId, EventCallback callback , void* userdata );
This is used to register a callback for an event
Arguments:
Event eventId
event we are registering for. The available events include:
• EVENT_KEYBOARD,
• EVENT_BARCODE,
• EVENT_MAGCARD1,
Содержание SY-7000 SDK
Страница 1: ...SY 7000 SDK Manual SYnel Industries LTD...
Страница 10: ...IntroductionSY 7000 SDK Manual 10 1 1 3 2Bottom connector panel...
Страница 33: ...Writing the SDK ApplicationSY 7000 SDK Manual 33...
Страница 37: ...Creating and Loading the Application File to the TerminalSY 7000 SDK Manual 37...
Страница 40: ...SY 7000 SDK Manual 40 Step 6 Use the default settings on this screen and click Next...
Страница 41: ...SY 7000 SDK Manual 41 Step 7 Specify the location to store the installation files and click Next...
Страница 42: ...SY 7000 SDK Manual 42 Step 8 Select Direct Connection and click Next...
Страница 44: ...SY 7000 SDK Manual 44 Step 10 Click the sign next to Devel to expand it...
Страница 45: ...SY 7000 SDK Manual 45 Step 11 Under Devel scroll down to gcc...
Страница 46: ...SY 7000 SDK Manual 46 Step 12 Select gcc by clicking on the word Skip once...
Страница 48: ...SY 7000 SDK Manual 48 Cygwin will now download and install the packages that you selected...
Страница 49: ...SY 7000 SDK Manual 49 Step 14 Leave the options checked and click Finish...
Страница 51: ...SY 7000 SDK Manual 51...
Страница 52: ...SY 7000 SDK Manual 52...
Страница 54: ...SY 7000 SDK Manual 45...