MythTV
master
mythtv
libs
libmythtv
io
mythfilebuffer.h
Go to the documentation of this file.
1
// Qt
2
#include <QCoreApplication>
3
4
// MythTV
5
#include "
io/mythmediabuffer.h
"
6
7
class
MTV_PUBLIC
MythFileBuffer
:
public
MythMediaBuffer
8
{
9
Q_DECLARE_TR_FUNCTIONS(
MythFileBuffer
)
10
11
friend class
MythMediaBuffer
;
12
13
public:
14
~
MythFileBuffer
() override;
15
16
bool
IsOpen (
void
) const override;
17
long
long
GetReadPosition (
void
) const override;
18
bool
OpenFile (const QString &Filename,
std
::chrono::milliseconds Retry = kDefaultOpenTimeout) override;
19
bool
ReOpen (const QString& Filename = "") override;
20
21
protected:
22
MythFileBuffer
(const QString &Filename,
bool
Write,
bool
UseReadAhead,
std
::chrono::milliseconds Timeout);
23
int
SafeRead (
void
*
Buffer
,
uint
Size) override;
24
int
SafeRead (
int
FD,
void
*
Buffer
,
uint
Size);
25
int
SafeRead (
RemoteFile
*Remote,
void
*
Buffer
,
uint
Size);
26
long
long
GetRealFileSizeInternal(
void
) const override;
27
long
long
SeekInternal (
long
long
Position,
int
Whence) override;
28
};
Buffer
Definition:
MythExternControl.h:37
MythFileBuffer
Definition:
mythfilebuffer.h:8
MythMediaBuffer
Definition:
mythmediabuffer.h:60
RemoteFile
Definition:
remotefile.h:18
uint
unsigned int uint
Definition:
compat.h:68
mythmediabuffer.h
MTV_PUBLIC
#define MTV_PUBLIC
Definition:
mythtvexp.h:11
std
STL namespace.
Generated on Mon Dec 15 2025 03:16:15 for MythTV by
1.9.4