diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-11-23 19:42:09 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-11-23 19:42:09 +0000 |
commit | 94537a47a1c53fd97f3010c9cc17b49b441bb37a (patch) | |
tree | a478afad9957b1f651f84dea6281c24860654661 /libs/midi++2/midi++/midnam_patch.h | |
parent | 2f07b77503f01e75970241e3aa4c9b6fc723a83f (diff) |
* Added support for ChannelNameSetAssignments (midnam_patch.(cc|h)
git-svn-id: svn://localhost/ardour2/branches/3.0@4238 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midi++/midnam_patch.h')
-rw-r--r-- | libs/midi++2/midi++/midnam_patch.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libs/midi++2/midi++/midnam_patch.h b/libs/midi++2/midi++/midnam_patch.h index d4f8dbf466..775f46ec75 100644 --- a/libs/midi++2/midi++/midnam_patch.h +++ b/libs/midi++2/midi++/midnam_patch.h @@ -88,6 +88,50 @@ private: PatchBanks _patch_banks; }; +class CustomDeviceMode : public PBD::Stateful +{ +public: + CustomDeviceMode() {}; + virtual ~CustomDeviceMode() {}; + + const string& name() const { return _name; } + void set_name(const string a_name) { _name = a_name; } + + + XMLNode& get_state (void); + int set_state (const XMLNode& a_node); + +private: + /// array index = channel number + /// string contents = name of channel name set + string _name; + string _channel_name_set_assignments[16]; +}; + +class MasterDeviceNames : public PBD::Stateful +{ +public: + typedef std::list<ChannelNameSet> ChannelNameSets; + typedef std::list<std::string> Models; + + MasterDeviceNames() {}; + virtual ~MasterDeviceNames() {}; + + const string& manufacturer() const { return _manufacturer; } + void set_manufacturer(const string a_manufacturer) { _manufacturer = a_manufacturer; } + + const Models& models() const { return _models; } + void set_models(const Models some_models) { _models = some_models; } + + XMLNode& get_state (void); + int set_state (const XMLNode& a_node); + +private: + string _manufacturer; + Models _models; + ChannelNameSets _channel_name_sets; +}; + class MIDINameDocument : public PBD::Stateful { public: |