From bb1c49dfa484db080938cff6f8f70167c9026a1c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 Jul 2007 19:26:47 +0000 Subject: Consistently rename all C++ files .cpp/.hpp. Fix (some) inclusion guard names to not clash with other libs. git-svn-id: http://svn.drobilla.net/lad/ingen@613 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/SigClientInterface.h | 142 ----------------------------------- 1 file changed, 142 deletions(-) delete mode 100644 src/libs/client/SigClientInterface.h (limited to 'src/libs/client/SigClientInterface.h') diff --git a/src/libs/client/SigClientInterface.h b/src/libs/client/SigClientInterface.h deleted file mode 100644 index a7f7761b..00000000 --- a/src/libs/client/SigClientInterface.h +++ /dev/null @@ -1,142 +0,0 @@ -/* This file is part of Ingen. - * Copyright (C) 2007 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. - * - * The signals here match the calls to ClientInterface exactly. See the - * documentation for ClientInterface for meanings of signal parameters. - */ -class SigClientInterface : virtual public Ingen::Shared::ClientInterface, public sigc::trackable -{ -public: - - // Signal parameters math up directly with ClientInterface calls - - 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: - - // ClientInterface hooks that fire the above signals - - // FIXME: implement for this (is implemented for ThreadedSigClientInterface) - void enable() { } - void disable() { } - - void bundle_begin() {} - void bundle_end() {} - - void transfer_begin() {} - void transfer_end() {} - - void num_plugins(uint32_t num) { num_plugins_sig.emit(num); } - - void response(int32_t id, bool success, string msg) - { response_sig.emit(id, success, msg); } - - void error(string msg) - { error_sig.emit(msg); } - - void new_plugin(string uri, string type_uri, string name) - { new_plugin_sig.emit(uri, type_uri, name); } - - void new_patch(string path, uint32_t poly) - { new_patch_sig.emit(path, poly); } - - void new_node(string plugin_uri, string node_path, bool is_polyphonic, uint32_t num_ports) - { new_node_sig.emit(plugin_uri, node_path, is_polyphonic, num_ports); } - - void new_port(string path, string data_type, bool is_output) - { new_port_sig.emit(path, data_type, is_output); } - - void connection(string src_port_path, string dst_port_path) - { connection_sig.emit(src_port_path, dst_port_path); } - - void object_destroyed(string path) - { object_destroyed_sig.emit(path); } - - void patch_enabled(string path) - { patch_enabled_sig.emit(path); } - - void patch_disabled(string path) - { patch_disabled_sig.emit(path); } - - void patch_cleared(string path) - { patch_cleared_sig.emit(path); } - - void object_renamed(string old_path, string new_path) - { object_renamed_sig.emit(old_path, new_path); } - - void disconnection(string src_port_path, string dst_port_path) - { disconnection_sig.emit(src_port_path, dst_port_path); } - - void metadata_update(string path, string key, Raul::Atom value) - { metadata_update_sig.emit(path, key, value); } - - void control_change(string port_path, float value) - { control_change_sig.emit(port_path, value); } - - void program_add(string path, uint32_t bank, uint32_t program, string name) - { program_add_sig.emit(path, bank, program, name); } - - void program_remove(string path, uint32_t bank, uint32_t program) - { program_remove_sig.emit(path, bank, program); } - -protected: - SigClientInterface() {} -}; - - -} // namespace Client -} // namespace Ingen - -#endif -- cgit v1.2.1