You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
336 B
21 lines
336 B
#ifndef _EVENTLISTENER_h
|
|
#define _EVENTLISTENER_h
|
|
|
|
#include "watchos_consts.h"
|
|
#include "Queue.h"
|
|
#include "Event.h"
|
|
|
|
class EventListener
|
|
{
|
|
private:
|
|
Queue* m_event_queue;
|
|
protected:
|
|
bool hasEvent();
|
|
Event* getEvent();
|
|
void popEvent();
|
|
public:
|
|
EventListener();
|
|
void pushEvent(kernel_handle_t handle);
|
|
};
|
|
|
|
#endif
|