Ardour  9.0-pre0-582-g084a23a80d
simple_export.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _ardour_simple_export_h_
20 #define _ardour_simple_export_h_
21 
23 #include "ardour/session_handle.h"
24 #include "ardour/types.h"
25 
26 namespace ARDOUR
27 {
28 class ExportHandler;
29 class ExportStatus;
30 class ExportProfileManager;
31 
38 {
39 public:
41  virtual ~SimpleExport () {}
42 
44  bool run_export ();
45 
46  void set_name (std::string const&);
47  void set_folder (std::string const&);
49  bool set_preset (std::string const&);
50 
51  std::string preset_uuid () const;
52  std::string folder () const;
53  bool check_outputs () const;
54 
55 protected:
56  std::shared_ptr<ARDOUR::ExportHandler> _handler;
57  std::shared_ptr<ARDOUR::ExportStatus> _status;
58  std::shared_ptr<ARDOUR::ExportProfileManager> _manager;
59 
60 private:
61  std::string _name;
62  std::string _folder;
63  std::string _pset_id;
66 };
67 
68 }
69 
70 #endif
void set_session(ARDOUR::Session *)
void set_folder(std::string const &)
std::string preset_uuid() const
void set_range(samplepos_t, samplepos_t)
void set_name(std::string const &)
std::shared_ptr< ARDOUR::ExportStatus > _status
Definition: simple_export.h:57
bool check_outputs() const
std::shared_ptr< ARDOUR::ExportProfileManager > _manager
Definition: simple_export.h:58
std::string folder() const
std::shared_ptr< ARDOUR::ExportHandler > _handler
Definition: simple_export.h:56
std::string _pset_id
Definition: simple_export.h:63
bool set_preset(std::string const &)
#define LIBARDOUR_API
Temporal::samplepos_t samplepos_t