mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-07 13:54:33 +00:00
21 lines
406 B
C
21 lines
406 B
C
|
#pragma once
|
||
|
|
||
|
class StreamListener;
|
||
|
class Stream;
|
||
|
|
||
|
class ConnectionProvider
|
||
|
{
|
||
|
protected:
|
||
|
StreamListener *listener;
|
||
|
public:
|
||
|
void setListener(StreamListener *l) { listener = l; }
|
||
|
|
||
|
virtual ~ConnectionProvider() {}
|
||
|
virtual Stream* getStream() = 0;
|
||
|
virtual void idle() {}
|
||
|
virtual void suspend() {}
|
||
|
virtual void resume() {}
|
||
|
|
||
|
virtual void* segmentToUnload() { return nullptr; }
|
||
|
};
|