]> git.saurik.com Git - apple/security.git/blobdiff - Security/libsecurity_transform/lib/SingleShotSource.h
Security-57031.1.35.tar.gz
[apple/security.git] / Security / libsecurity_transform / lib / SingleShotSource.h
diff --git a/Security/libsecurity_transform/lib/SingleShotSource.h b/Security/libsecurity_transform/lib/SingleShotSource.h
new file mode 100644 (file)
index 0000000..2681cac
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef __SINGLE_SHOT_SOURCE__
+#define __SINGLE_SHOT_SOURCE__
+
+#include "Source.h"
+
+extern CFStringRef gSingleShotSourceName;
+
+/*
+       We need this source because we need to send the data followed by
+       a null value, so that all input sources have the same behavior.
+*/
+
+class SingleShotSource : public Source
+{
+protected:
+       SingleShotSource(CFTypeRef value, Transform* t, CFStringRef name);
+
+public:
+       void DoActivate();
+       Boolean Equal(const CoreFoundationObject* obj);
+       static CFTypeRef Make(CFTypeRef value, Transform* t, CFStringRef name);
+       std::string DebugDescription();
+};
+
+#endif