MythTV  master
mythfilebuffer.h
Go to the documentation of this file.
1 // Qt
2 #include <QCoreApplication>
3 
4 // MythTV
5 #include "io/mythmediabuffer.h"
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 };
RemoteFile
Definition: remotefile.h:17
MythMediaBuffer
Definition: mythmediabuffer.h:50
uint
unsigned int uint
Definition: compat.h:144
mythmediabuffer.h
MythFileBuffer
Definition: mythfilebuffer.h:7
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
Buffer
Definition: MythExternControl.h:36
std
Definition: mythchrono.h:23