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/engine/OSCClientSender.h | 141 -------------------------------------- 1 file changed, 141 deletions(-) delete mode 100644 src/libs/engine/OSCClientSender.h (limited to 'src/libs/engine/OSCClientSender.h') diff --git a/src/libs/engine/OSCClientSender.h b/src/libs/engine/OSCClientSender.h deleted file mode 100644 index 7def53ba..00000000 --- a/src/libs/engine/OSCClientSender.h +++ /dev/null @@ -1,141 +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 OSCCLIENTSENDER_H -#define OSCCLIENTSENDER_H - -#include -#include -#include -#include -#include -#include -#include "types.h" -#include "interface/ClientInterface.h" - -using std::list; using std::string; -using std::cerr; - -namespace Ingen { - - -/** Implements ClientInterface for OSC clients (sends OSC messages). - * - * \ingroup engine - */ -class OSCClientSender : public Shared::ClientInterface -{ -public: - OSCClientSender(const string& url) - : _url(url), - _address(lo_address_new_from_url(url.c_str())), - _transfer(NULL), - _enabled(true) - {} - - virtual ~OSCClientSender() - { lo_address_free(_address); } - - const string& url() const { return _url; } - const lo_address address() const { return _address; } - - //void plugins(); // FIXME remove - - - - /* *** ClientInterface Implementation Below *** */ - - - //void client_registration(string url, int client_id); - - void enable() { _enabled = true; } - void disable() { _enabled = false; } - - void bundle_begin(); - void bundle_end(); - - void transfer_begin(); - void transfer_end(); - - void response(int32_t id, bool success, string msg); - - void num_plugins(uint32_t num); - - void error(string msg); - - virtual void new_plugin(string uri, - string type_uri, - string name); - - virtual void new_patch(string path, uint32_t poly); - - virtual void new_node(string plugin_uri, - string node_path, - bool is_polyphonic, - uint32_t num_ports); - - virtual void new_port(string path, - string data_type, - bool is_output); - - virtual void patch_enabled(string path); - - virtual void patch_disabled(string path); - - virtual void patch_cleared(string path); - - virtual void object_destroyed(string path); - - virtual void object_renamed(string old_path, - string new_path); - - virtual void connection(string src_port_path, - string dst_port_path); - - virtual void disconnection(string src_port_path, - string dst_port_path); - - virtual void metadata_update(string subject_path, - string predicate, - Raul::Atom value); - - virtual void control_change(string port_path, - float value); - - virtual void program_add(string node_path, - uint32_t bank, - uint32_t program, - string program_name); - - virtual void program_remove(string node_path, - uint32_t bank, - uint32_t program); - -private: - string _url; - lo_address _address; - - lo_bundle _transfer; - - bool _enabled; -}; - - -} // namespace Ingen - -#endif // OSCCLIENTSENDER_H - -- cgit v1.2.1