USER_EVENT = 1001
SAMPLING_EVENT = 1002
CONNECTION_EVENT = 1003
MONITORING_EVENT = 1004
PROPERTIES_EVENT = 1005  # Is this used?
SENSOR_EVENT = 1006
SENSOR_QUALITY_EVENT = 1007
HEADSET_FOUND_EVENT = 1008
EMOSTATE_EVENT = 1009

EVENTS = (USER_EVENT, SAMPLING_EVENT, CONNECTION_EVENT,
          MONITORING_EVENT, PROPERTIES_EVENT, SENSOR_EVENT,
          SENSOR_QUALITY_EVENT, HEADSET_FOUND_EVENT,
          EMOSTATE_EVENT)


class EventError(Exception):
    """A specific error when the DLL is not found"""
    def __init__(self, event_id):
        self.event_id = event_id
    
    def __str__(self):
        return "Unknown Event ID: %s" % self.event_id
    
    def __repr__(self):
        return self.__str__()