2003-01-03 04:51:22 +03:00
|
|
|
/***********************************************************************
|
|
|
|
* Copyright (c) 2002 Marcus Overhagen. All Rights Reserved.
|
|
|
|
* This file may be used under the terms of the OpenBeOS License.
|
|
|
|
*
|
|
|
|
* The object returned by BMediaRoster's
|
|
|
|
* BTimeSource * MakeTimeSourceFor(const media_node & for_node);
|
|
|
|
*
|
|
|
|
***********************************************************************/
|
|
|
|
#ifndef _TIME_SOURCE_OBJECT_H_
|
|
|
|
#define _TIME_SOURCE_OBJECT_H_
|
|
|
|
|
|
|
|
#include <TimeSource.h>
|
2003-05-26 01:16:53 +04:00
|
|
|
#include "MediaMisc.h"
|
2003-01-09 20:54:20 +03:00
|
|
|
|
2003-01-03 04:51:22 +03:00
|
|
|
namespace BPrivate { namespace media {
|
|
|
|
|
|
|
|
class TimeSourceObject : public BTimeSource
|
|
|
|
{
|
|
|
|
public:
|
2003-01-09 20:54:20 +03:00
|
|
|
TimeSourceObject(const media_node &node);
|
2003-01-03 04:51:22 +03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual status_t TimeSourceOp(
|
|
|
|
const time_source_op_info & op,
|
|
|
|
void * _reserved);
|
|
|
|
|
2003-01-06 02:35:07 +03:00
|
|
|
virtual BMediaAddOn* AddOn(
|
2003-01-03 04:51:22 +03:00
|
|
|
int32 * internal_id) const;
|
|
|
|
|
2003-01-06 02:35:07 +03:00
|
|
|
// override from BMediaNode
|
|
|
|
virtual status_t DeleteHook(BMediaNode * node);
|
|
|
|
};
|
|
|
|
|
2003-01-03 04:51:22 +03:00
|
|
|
} } using namespace BPrivate::media;
|
|
|
|
|
|
|
|
#endif
|