summaryrefslogtreecommitdiffstats
path: root/src/server/ServerInterfaceImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 21:45:14 +0000
commit0d4792af695d94a1e476adcdb65eed8a501ddbd4 (patch)
tree1c0fc824541fcdbb057f5a0909bc8cf7704dccfe /src/server/ServerInterfaceImpl.hpp
parent4ce6781bd6727fca68d4c99337f47a75d849e5ab (diff)
downloadingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.gz
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.tar.bz2
ingen-0d4792af695d94a1e476adcdb65eed8a501ddbd4.zip
Make OSCEngineReceiver and HTTPEngineReceiver has-a ServerInterfaceImpl (instead of is-a).
Towards further modularization... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3570 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ServerInterfaceImpl.hpp')
-rw-r--r--src/server/ServerInterfaceImpl.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/ServerInterfaceImpl.hpp b/src/server/ServerInterfaceImpl.hpp
index 6c65dcb9..1afbafce 100644
--- a/src/server/ServerInterfaceImpl.hpp
+++ b/src/server/ServerInterfaceImpl.hpp
@@ -45,7 +45,7 @@ class Engine;
* are successful.
*/
class ServerInterfaceImpl : public EventSource,
- public ServerInterface
+ public ServerInterface
{
public:
ServerInterfaceImpl(Engine& engine);
@@ -97,9 +97,12 @@ public:
virtual void ping();
virtual void get(const Raul::URI& uri);
-protected:
+ SharedPtr<Request> request() { return _request; }
+ void set_request(SharedPtr<Request> r) { _request = r; }
+
virtual void disable_responses();
+protected:
SharedPtr<Request> _request; ///< NULL if responding disabled
Engine& _engine;
bool _in_bundle; ///< True iff a bundle is currently being received