'Raise some event. Takes three arguments:
1) "realm" - scope of event. Usually a namespace.
2) "event" - the event itself. F.e. "SUCESSFULL SEND".
3) data that comes along with event. Depends on event.'

def Event(self, realm, event, data):

    if self._eventHandler:
        self._eventHandler(realm, event, data)
