haiku/src/kits/media/TimeSourceObject.h
beveloper 92e575c103 Moved system time source code into media_addon_server.
It is now a real node.
Shadow timesources finally have the correct control port id.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 09:07:06 +00:00

37 lines
932 B
C++

/***********************************************************************
* 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>
#include "MediaMisc.h"
namespace BPrivate { namespace media {
class TimeSourceObject : public BTimeSource
{
public:
TimeSourceObject(const media_node &node);
protected:
virtual status_t TimeSourceOp(
const time_source_op_info & op,
void * _reserved);
virtual BMediaAddOn* AddOn(
int32 * internal_id) const;
// override from BMediaNode
virtual status_t DeleteHook(BMediaNode * node);
};
} } using namespace BPrivate::media;
#endif