1 /* 2 * Copyright 2002 Marcus Overhagen. All Rights Reserved. 3 * This file may be used under the terms of the MIT License. 4 */ 5 #ifndef TIME_SOURCE_OBJECT_H 6 #define TIME_SOURCE_OBJECT_H 7 8 9 #include <TimeSource.h> 10 11 #include <MediaMisc.h> 12 13 14 namespace BPrivate { 15 namespace media { 16 17 18 class TimeSourceObject : public BTimeSource { 19 public: 20 TimeSourceObject(const media_node& node); 21 22 protected: 23 virtual status_t TimeSourceOp(const time_source_op_info& op, 24 void* _reserved); 25 26 virtual BMediaAddOn* AddOn(int32* _id) const; 27 28 // override from BMediaNode 29 virtual status_t DeleteHook(BMediaNode* node); 30 }; 31 32 33 } // namespace media 34 } // namespace BPrivate 35 36 37 using namespace BPrivate::media; 38 39 40 #endif // TIME_SOURCE_OBJECT_H 41