diff options
author | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
commit | 228279d6717e69ffd2d2a886244179635ac27c2b (patch) | |
tree | d8a25007daeda686f07aefc8b5fcc9486040c536 /src/libs | |
parent | 9a3d8d0604a2f81e3514e8a1a30aaf41aadf73a2 (diff) | |
download | ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.gz ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.bz2 ingen-228279d6717e69ffd2d2a886244179635ac27c2b.zip |
Got store working directly through SigClientInterface
git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/client/SigClientInterface.h | 44 |
1 files changed, 25 insertions, 19 deletions
diff --git a/src/libs/client/SigClientInterface.h b/src/libs/client/SigClientInterface.h index f384f239..6b427e3c 100644 --- a/src/libs/client/SigClientInterface.h +++ b/src/libs/client/SigClientInterface.h @@ -28,30 +28,36 @@ namespace LibOmClient { /** A LibSigC++ signal emitting interface for clients to use. * - * sed would have the copyright to this code if it was a legal person. + * 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 Om::Shared::ClientInterface, public sigc::trackable { public: - sigc::signal<void> bundle_begin_sig; - sigc::signal<void> bundle_end_sig; - sigc::signal<void, const string&> error_sig; - sigc::signal<void, uint32_t> num_plugins_sig; - sigc::signal<void, const string&, const string&, const string&> new_plugin_sig; - sigc::signal<void, const string&, uint32_t> new_patch_sig; + + // See the corresponding emitting functions below for parameter meanings + + sigc::signal<void> bundle_begin_sig; + sigc::signal<void> bundle_end_sig; + sigc::signal<void, const string&> error_sig; + sigc::signal<void, uint32_t> num_plugins_sig; + sigc::signal<void, const string&, const string&, const string&> new_plugin_sig; + sigc::signal<void, const string&, uint32_t> new_patch_sig; sigc::signal<void, const string&, const string&, const string&, bool, uint32_t> new_node_sig; - sigc::signal<void, const string&, const string&, bool> new_port_sig; - sigc::signal<void, const string&> patch_enabled_sig; - sigc::signal<void, const string&> patch_disabled_sig; - sigc::signal<void, const string&> patch_cleared_sig; - sigc::signal<void, const string&, const string&> object_renamed_sig; - sigc::signal<void, const string&> object_destroyed_sig; - sigc::signal<void, const string&, const string&> connection_sig; - sigc::signal<void, const string&, const string&> disconnection_sig; - sigc::signal<void, const string&, const string&, const string&> metadata_update_sig; - sigc::signal<void, const string&, float> control_change_sig; - sigc::signal<void, const string&, uint32_t, uint32_t, const string&> program_add_sig; - sigc::signal<void, const string&, uint32_t, uint32_t> program_remove_sig; + sigc::signal<void, const string&, const string&, bool> new_port_sig; + sigc::signal<void, const string&> patch_enabled_sig; + sigc::signal<void, const string&> patch_disabled_sig; + sigc::signal<void, const string&> patch_cleared_sig; + sigc::signal<void, const string&, const string&> object_renamed_sig; + sigc::signal<void, const string&> object_destroyed_sig; + sigc::signal<void, const string&, const string&> connection_sig; + sigc::signal<void, const string&, const string&> disconnection_sig; + sigc::signal<void, const string&, const string&, const string&> metadata_update_sig; + sigc::signal<void, const string&, float> control_change_sig; + sigc::signal<void, const string&, uint32_t, uint32_t, const string&> program_add_sig; + sigc::signal<void, const string&, uint32_t, uint32_t> program_remove_sig; + inline void emit_bundle_begin() { bundle_begin_sig.emit(); } |