]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_transform/lib/Source.h
Security-59754.41.1.tar.gz
[apple/security.git] / OSX / libsecurity_transform / lib / Source.h
1 #ifndef __SOURCE__
2 #define __SOURCE__
3
4
5
6 #include "SecTransform.h"
7 #include "CoreFoundationBasics.h"
8 #include "Transform.h"
9
10 class Source : public CoreFoundationObject
11 {
12 protected:
13 Transform* mDestination;
14 CFStringRef mDestinationName;
15 CFTypeRef mLastValue;
16 dispatch_queue_t mDispatchQueue;
17
18 void SetValue(CFTypeRef value);
19
20 Source(CFStringRef sourceObjectName, Transform* destination, CFStringRef destinationName);
21
22 public:
23 virtual ~Source();
24
25 void Activate();
26 virtual void DoActivate() = 0;
27
28 Boolean Equal(const CoreFoundationObject* obj);
29 CFTypeRef GetValue() const {return mLastValue;}
30 std::string DebugDescription();
31 };
32
33 #endif