#pragma once #include #include #include "Swiften/EventLoop/EventOwner.h" namespace Swift { struct Event { Event(boost::shared_ptr owner, const boost::function& callback) : owner(owner), callback(callback) { } bool operator==(const Event& o) const { return o.id == id; } unsigned int id; boost::shared_ptr owner; boost::function callback; }; }