]>
Commit | Line | Data |
---|---|---|
b1ab9ed8 A |
1 | #ifndef __STREAM_SOURCE__ |
2 | #define __STREAM_SOURCE__ | |
3 | ||
4 | ||
5 | #include "Source.h" | |
6 | ||
7 | ||
8 | ||
9 | extern CFStringRef gStreamSourceName; | |
10 | ||
11 | ||
12 | ||
13 | class StreamSource : public Source | |
14 | { | |
15 | protected: | |
16 | StreamSource(CFReadStreamRef input, Transform* transform, CFStringRef name); | |
17 | ||
18 | virtual void Finalize(); | |
19 | CFReadStreamRef mReadStream; | |
20 | dispatch_group_t mReading; | |
21 | ||
22 | void BackgroundActivate(); | |
23 | ||
24 | public: | |
25 | ||
26 | void DoActivate(); | |
27 | virtual ~StreamSource(); | |
28 | ||
29 | static CFTypeRef Make(CFReadStreamRef input, Transform* transform, CFStringRef name); | |
30 | Boolean Equal(const CoreFoundationObject* object); | |
31 | std::string DebugDescription(); | |
32 | }; | |
33 | ||
34 | ||
35 | ||
36 | #endif |