1#ifndef __SINGLE_SHOT_SOURCE__
2#define __SINGLE_SHOT_SOURCE__
3
4#include "Source.h"
5
6extern CFStringRef gSingleShotSourceName;
7
8/*
9	We need this source because we need to send the data followed by
10	a null value, so that all input sources have the same behavior.
11*/
12
13class SingleShotSource : public Source
14{
15protected:
16	SingleShotSource(CFTypeRef value, Transform* t, CFStringRef name);
17
18public:
19	void DoActivate();
20	Boolean Equal(const CoreFoundationObject* obj);
21	static CFTypeRef Make(CFTypeRef value, Transform* t, CFStringRef name);
22	std::string DebugDescription();
23};
24
25#endif
26