MythTV master
mythfilebuffer.h
Go to the documentation of this file.
1// Qt
2#include <QCoreApplication>
3
4// MythTV
6
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};
unsigned int uint
Definition: compat.h:68
#define MTV_PUBLIC
Definition: mythtvexp.h:11
STL namespace.