Move MediaIO in it's own header

This commit is contained in:
Dario Casalinuovo 2016-03-25 22:44:56 +01:00
parent 2250435e4c
commit 8c7679851f
8 changed files with 72 additions and 52 deletions

View File

@ -163,29 +163,4 @@ private:
};
class BMediaIO : public BPositionIO {
public:
BMediaIO();
virtual ~BMediaIO();
virtual bool IsSeekable() const = 0;
virtual bool IsFile() const = 0;
virtual bool IsEndless() const = 0;
virtual bool IsCached() const = 0;
virtual size_t CacheSize() const = 0;
private:
BMediaIO(const BMediaIO&);
BMallocIO& operator=(const BMediaIO&);
virtual void _ReservedMediaIO1();
virtual void _ReservedMediaIO2();
virtual void _ReservedMediaIO3();
virtual void _ReservedMediaIO4();
virtual void _ReservedMediaIO5();
uint32 _reserved[1];
};
#endif // _DATA_IO_H

View File

@ -0,0 +1,34 @@
/*
* Copyright 2016 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _MEDIA_IO_H
#define _MEDIA_IO_H
#include <DataIO.h>
#include <SupportDefs.h>
class BMediaIO : public BPositionIO {
public:
BMediaIO();
virtual ~BMediaIO();
virtual bool IsSeekable() const = 0;
virtual bool IsEndless() const = 0;
private:
BMediaIO(const BMediaIO&);
BMallocIO& operator=(const BMediaIO&);
virtual void _ReservedMediaIO1();
virtual void _ReservedMediaIO2();
virtual void _ReservedMediaIO3();
virtual void _ReservedMediaIO4();
virtual void _ReservedMediaIO5();
uint32 _reserved[1];
};
#endif // _MEDIA_IO_H

View File

@ -1,12 +1,14 @@
#ifndef _STREAMER_PLUGIN_H
#define _STREAMER_PLUGIN_H
#include <DataIO.h>
#include <MediaIO.h>
#include <MediaTrack.h>
#include <Url.h>
#include "MediaPlugin.h"
namespace BPrivate { namespace media {
class PluginManager;
@ -41,4 +43,5 @@ public:
using namespace BPrivate::media;
#endif // _STREAMER_PLUGIN_H

View File

@ -15,7 +15,7 @@
#include <AutoDeleter.h>
#include <Autolock.h>
#include <ByteOrder.h>
#include <DataIO.h>
#include <MediaIO.h>
#include <MediaDefs.h>
#include <MediaFormats.h>

View File

@ -15,7 +15,7 @@
#include <AutoDeleter.h>
#include <Autolock.h>
#include <ByteOrder.h>
#include <DataIO.h>
#include <MediaIO.h>
#include <MediaDefs.h>
#include <MediaFormats.h>
#include <Roster.h>

View File

@ -24,6 +24,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
!missing_symbols.cpp
Deprecated.cpp
MediaRecorder.cpp
MediaIO.cpp
# Public Media Kit
Buffer.cpp

View File

@ -0,0 +1,31 @@
/*
* Copyright 2016 Dario Casalinuovo. All rights reserved.
* Distributed under the terms of the MIT License.
*
*/
#include <MediaIO.h>
BMediaIO::BMediaIO()
{
}
BMediaIO::BMediaIO(const BMediaIO &)
{
// copying not allowed...
}
BMediaIO::~BMediaIO()
{
}
// FBC
void BMediaIO::_ReservedMediaIO1() {}
void BMediaIO::_ReservedMediaIO2() {}
void BMediaIO::_ReservedMediaIO3() {}
void BMediaIO::_ReservedMediaIO4() {}
void BMediaIO::_ReservedMediaIO5() {}

View File

@ -601,27 +601,3 @@ BMallocIO::operator=(const BMallocIO &)
// FBC
void BMallocIO::_ReservedMallocIO1() {}
void BMallocIO::_ReservedMallocIO2() {}
BMediaIO::BMediaIO()
{
}
BMediaIO::BMediaIO(const BMediaIO &)
{
// copying not allowed...
}
BMediaIO::~BMediaIO()
{
}
// FBC
void BMediaIO::_ReservedMediaIO1() {}
void BMediaIO::_ReservedMediaIO2() {}
void BMediaIO::_ReservedMediaIO3() {}
void BMediaIO::_ReservedMediaIO4() {}
void BMediaIO::_ReservedMediaIO5() {}