2020-04-09 10:07:19 -04:00
|
|
|
/*
|
2021-06-13 10:32:18 -04:00
|
|
|
* Copyright (C) 2020 Luciano Iam <oss@lucianoiam.com>
|
2020-04-09 10:07:19 -04:00
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ardour_surface_websockets_manifest_h_
|
|
|
|
#define _ardour_surface_websockets_manifest_h_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2020-08-30 15:15:07 -04:00
|
|
|
namespace ArdourSurface {
|
|
|
|
|
2020-04-09 10:07:19 -04:00
|
|
|
class SurfaceManifest
|
|
|
|
{
|
|
|
|
public:
|
2020-04-12 04:02:07 -04:00
|
|
|
// all ardour control surfaces implement presets using xml format
|
2020-04-09 10:07:19 -04:00
|
|
|
SurfaceManifest (std::string);
|
|
|
|
|
|
|
|
bool valid () { return _valid; }
|
|
|
|
|
2020-04-11 03:31:06 -04:00
|
|
|
std::string path () { return _path; }
|
2020-04-09 10:07:19 -04:00
|
|
|
std::string name () { return _name; }
|
|
|
|
std::string description () { return _description; }
|
2020-04-12 04:02:07 -04:00
|
|
|
std::string version () { return _version; }
|
2020-04-09 10:07:19 -04:00
|
|
|
|
|
|
|
std::string to_json ();
|
|
|
|
|
2020-04-11 03:31:06 -04:00
|
|
|
static bool exists_at_path (std::string);
|
|
|
|
|
2020-04-09 10:07:19 -04:00
|
|
|
private:
|
|
|
|
bool _valid;
|
|
|
|
|
2020-04-11 03:31:06 -04:00
|
|
|
std::string _path;
|
2020-04-09 10:07:19 -04:00
|
|
|
std::string _name;
|
|
|
|
std::string _description;
|
2020-04-12 04:02:07 -04:00
|
|
|
std::string _version;
|
2020-04-09 10:07:19 -04:00
|
|
|
};
|
|
|
|
|
2020-08-30 15:15:07 -04:00
|
|
|
} // namespace ArdourSurface
|
|
|
|
|
2020-04-09 10:07:19 -04:00
|
|
|
#endif // _ardour_surface_websockets_manifest_h_
|