summaryrefslogtreecommitdiffstats
path: root/src/Patchage.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-29 10:41:28 +0100
committerDavid Robillard <d@drobilla.net>2020-11-29 12:00:37 +0100
commit6d71c2f83b7fef4956f04e277a905d45de249745 (patch)
tree39b11d92856d98d798529061ac0f8957dc81109d /src/Patchage.hpp
parent15004f61bf9f330b959a815465bdda09c66ec9a4 (diff)
downloadpatchage-6d71c2f83b7fef4956f04e277a905d45de249745.tar.gz
patchage-6d71c2f83b7fef4956f04e277a905d45de249745.tar.bz2
patchage-6d71c2f83b7fef4956f04e277a905d45de249745.zip
Move command line handling to main
Diffstat (limited to 'src/Patchage.hpp')
-rw-r--r--src/Patchage.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Patchage.hpp b/src/Patchage.hpp
index f153bd3..a6cfec0 100644
--- a/src/Patchage.hpp
+++ b/src/Patchage.hpp
@@ -43,6 +43,7 @@
#include "ILog.hpp"
#include "Legend.hpp"
#include "Metadata.hpp"
+#include "Options.hpp"
#include "PatchageEvent.hpp"
#include "TextViewLog.hpp"
#include "Widget.hpp"
@@ -65,7 +66,7 @@ class Module;
class Patchage
{
public:
- Patchage(int argc, char** argv);
+ explicit Patchage(Options options);
~Patchage();
Patchage(const Patchage&) = delete;
@@ -209,12 +210,9 @@ protected:
Glib::RefPtr<Gtk::TextTag> _error_tag;
Glib::RefPtr<Gtk::TextTag> _warning_tag;
- bool _pane_initialized;
- bool _attach;
- bool _jack_driver_autoattach;
-#ifdef HAVE_ALSA
- bool _alsa_driver_autoattach;
-#endif
+ Options _options;
+ bool _pane_initialized;
+ bool _attach;
};
#endif // PATCHAGE_PATCHAGE_HPP