MythTV  master
Macros | Functions
mythfilebuffer.cpp File Reference
#include <QFileInfo>
#include <QDir>
#include "threadedfilewriter.h"
#include "mythcontext.h"
#include "remotefile.h"
#include "mythconfig.h"
#include "mythtimer.h"
#include "mythdate.h"
#include "compat.h"
#include "mythcorecontext.h"
#include "io/mythfilebuffer.h"
#include <cstdlib>
#include <cerrno>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
Include dependency graph for mythfilebuffer.cpp:

Go to the source code of this file.

Macros

#define POSIX_FADV_SEQUENTIAL   0
 
#define POSIX_FADV_WILLNEED   0
 
#define POSIX_FADV_DONTNEED   0
 
#define O_STREAMING   0
 
#define O_LARGEFILE   0
 
#define O_BINARY   0
 
#define LOC   QString("FileRingBuf(%1): ").arg(m_filename)
 

Functions

static int posix_fadvise (int, off_t, off_t, int)
 
static bool CheckPermissions (const QString &Filename)
 
static bool IsSubtitlePossible (const QString &Extension)
 
static QString LocalSubtitleFilename (QFileInfo &FileInfo)
 

Macro Definition Documentation

◆ POSIX_FADV_SEQUENTIAL

#define POSIX_FADV_SEQUENTIAL   0

Definition at line 28 of file mythfilebuffer.cpp.

◆ POSIX_FADV_WILLNEED

#define POSIX_FADV_WILLNEED   0

Definition at line 29 of file mythfilebuffer.cpp.

◆ POSIX_FADV_DONTNEED

#define POSIX_FADV_DONTNEED   0

Definition at line 30 of file mythfilebuffer.cpp.

◆ O_STREAMING

#define O_STREAMING   0

Definition at line 34 of file mythfilebuffer.cpp.

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 38 of file mythfilebuffer.cpp.

◆ O_BINARY

#define O_BINARY   0

Definition at line 42 of file mythfilebuffer.cpp.

◆ LOC

#define LOC   QString("FileRingBuf(%1): ").arg(m_filename)

Definition at line 45 of file mythfilebuffer.cpp.

Function Documentation

◆ posix_fadvise()

static int posix_fadvise ( int  ,
off_t  ,
off_t  ,
int   
)
static

Definition at line 26 of file mythfilebuffer.cpp.

Referenced by MythFileBuffer::OpenFile(), and MythFileBuffer::SeekInternal().

◆ CheckPermissions()

static bool CheckPermissions ( const QString &  Filename)
static

Definition at line 110 of file mythfilebuffer.cpp.

Referenced by MythFileBuffer::OpenFile().

◆ IsSubtitlePossible()

static bool IsSubtitlePossible ( const QString &  Extension)
static

Definition at line 122 of file mythfilebuffer.cpp.

Referenced by MythFileBuffer::OpenFile().

◆ LocalSubtitleFilename()

static QString LocalSubtitleFilename ( QFileInfo &  FileInfo)
static

Definition at line 137 of file mythfilebuffer.cpp.

Referenced by MythFileBuffer::OpenFile().