1139804Simp/* 21541Srgrimes * Copyright 2002 Marcus Overhagen. All Rights Reserved. 31541Srgrimes * This file may be used under the terms of the MIT License. 41541Srgrimes */ 51541Srgrimes#ifndef TIME_SOURCE_OBJECT_H 61541Srgrimes#define TIME_SOURCE_OBJECT_H 71541Srgrimes 81541Srgrimes 91541Srgrimes#include <TimeSource.h> 101541Srgrimes 111541Srgrimes#include <MediaMisc.h> 121541Srgrimes 131541Srgrimes 141541Srgrimesnamespace BPrivate { 151541Srgrimesnamespace media { 161541Srgrimes 171541Srgrimes 181541Srgrimesclass TimeSourceObject : public BTimeSource { 191541Srgrimespublic: 201541Srgrimes TimeSourceObject(const media_node& node); 211541Srgrimes 221541Srgrimesprotected: 231541Srgrimes virtual status_t TimeSourceOp(const time_source_op_info& op, 241541Srgrimes void* _reserved); 251541Srgrimes 261541Srgrimes virtual BMediaAddOn* AddOn(int32* _id) const; 271541Srgrimes 281541Srgrimes // override from BMediaNode 291541Srgrimes virtual status_t DeleteHook(BMediaNode* node); 301541Srgrimes}; 311541Srgrimes 321541Srgrimes 331541Srgrimes} // namespace media 3422521Sdyson} // namespace BPrivate 351541Srgrimes 361541Srgrimes 371541Srgrimesusing namespace BPrivate::media; 381541Srgrimes 391541Srgrimes 40116182Sobrien#endif // TIME_SOURCE_OBJECT_H 41116182Sobrien