/* This file is part of Ingen. Copyright (C) 2006 Dave Robillard. * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef SIGCLIENTINTERFACE_H #define SIGCLIENTINTERFACE_H #include #include #include #include "interface/ClientInterface.h" using std::string; namespace Ingen { namespace Client { /** A LibSigC++ signal emitting interface for clients to use. * * This simply emits an sigc signal for every event (eg OSC message) coming from * the engine. Use Store (which extends this) if you want a nice client-side * model of the engine. */ class SigClientInterface : virtual public Ingen::Shared::ClientInterface, public sigc::trackable { public: // See the corresponding emitting functions below for parameter meanings sigc::signal response_sig; sigc::signal bundle_begin_sig; sigc::signal bundle_end_sig; sigc::signal error_sig; sigc::signal num_plugins_sig; sigc::signal new_plugin_sig; sigc::signal new_patch_sig; sigc::signal new_node_sig; sigc::signal new_port_sig; sigc::signal patch_enabled_sig; sigc::signal patch_disabled_sig; sigc::signal patch_cleared_sig; sigc::signal object_renamed_sig; sigc::signal object_destroyed_sig; sigc::signal connection_sig; sigc::signal disconnection_sig; sigc::signal metadata_update_sig; sigc::signal control_change_sig; sigc::signal program_add_sig; sigc::signal program_remove_sig; protected: SigClientInterface() {} }; } // namespace Client } // namespace Ingen #endif