summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/device_info.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-12 11:46:35 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-12 11:46:35 +0000
commitc410d9e567ddb02ab2913242d713cf0be0bf4a35 (patch)
tree893b49c70f61e5f0fbca1a91e29c101429fbb4c4 /libs/surfaces/mackie/device_info.h
parentd6051c9953ea8778399ad72fc91c334c242d25e0 (diff)
new files
git-svn-id: svn://localhost/ardour2/branches/3.0@11937 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/device_info.h')
-rw-r--r--libs/surfaces/mackie/device_info.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/device_info.h b/libs/surfaces/mackie/device_info.h
new file mode 100644
index 0000000000..83ddf13c54
--- /dev/null
+++ b/libs/surfaces/mackie/device_info.h
@@ -0,0 +1,65 @@
+/*
+ Copyright (C) 2006,2007 John Anderson
+ Copyright (C) 2012 Paul Davis
+
+ This program 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.
+
+ This program 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 more 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __ardour_mackie_control_protocol_device_info_h__
+#define __ardour_mackie_control_protocol_device_info_h__
+
+#include <stdint.h>
+#include <string>
+
+class XMLNode;
+
+namespace Mackie {
+
+class DeviceInfo
+{
+ public:
+ DeviceInfo();
+ DeviceInfo(const XMLNode&);
+ ~DeviceInfo();
+
+ uint32_t strip_cnt () const;
+ bool has_two_character_display() const;
+ bool has_master_fader () const;
+ bool has_segmented_display() const;
+ bool has_timecode_display() const;
+ const std::string& name() const;
+
+ private:
+ uint32_t _strip_cnt;
+ bool _has_two_character_display;
+ bool _has_master_fader;
+ bool _has_segmented_display;
+ bool _has_timecode_display;
+ std::string _name;
+};
+
+class DeviceProfile
+{
+ public:
+ DeviceProfile (DeviceInfo& info);
+ ~DeviceProfile();
+
+ const std::string& get_f_action (uint32_t fn, int modifier_state);
+ void set_f_action (uint32_t fn, int modifier_state, const std::string&);
+};
+
+}
+
+#endif /* __ardour_mackie_control_protocol_device_info_h__ */