/* * Copyright (c) 2012 Yoann Blein * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include namespace Swift { InputEventResponder::InputEventResponder(ScreenSharingManager* ssManager, IQRouter* router) : SetResponder(router), ssManager(ssManager) { } InputEventResponder::~InputEventResponder() { } bool InputEventResponder::handleSetRequest(const JID& from, const JID&, const std::string& id, boost::shared_ptr payload) { if (payload->getAction() == InputEventPayload::Notify) { sendResponse(from, id, boost::shared_ptr()); ssManager->handleInputEvent(from, payload); } return true; } }