Ardour  9.0-pre0-384-ga76afae0e9
component.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Luciano Iam <oss@lucianoiam.com>
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_surface_websockets_component_h_
20 #define _ardour_surface_websockets_component_h_
21 
23 
24 #include <glibmm.h>
25 
26 #include "ardour/session.h"
27 #include "pbd/event_loop.h"
28 
29 namespace ArdourSurface
30 {
31 
32 class ArdourWebsockets;
33 class ArdourMixer;
34 class ArdourTransport;
35 class WebsocketsServer;
36 class WebsocketsDispatcher;
37 
39 {
40 public:
42  : _surface (surface){};
43 
44  virtual ~SurfaceComponent (){};
45 
46  virtual int start ()
47  {
48  return 0;
49  }
50  virtual int stop ()
51  {
52  return 0;
53  }
54 
55  BasicUI& basic_ui () const;
56  virtual PBD::EventLoop* event_loop () const;
57  Glib::RefPtr<Glib::MainLoop> main_loop () const;
59  ArdourMixer& mixer () const;
63 
64 protected:
66 };
67 
68 } // namespace ArdourSurface
69 
70 #endif // _ardour_surface_websockets_component_h_
virtual PBD::EventLoop * event_loop() const
WebsocketsDispatcher & dispatcher() const
ArdourSurface::ArdourWebsockets & _surface
Definition: component.h:65
ArdourMixer & mixer() const
ArdourTransport & transport() const
SurfaceComponent(ArdourSurface::ArdourWebsockets &surface)
Definition: component.h:41
WebsocketsServer & server() const
ARDOUR::Session & session() const
Glib::RefPtr< Glib::MainLoop > main_loop() const