MythTV  master
Macros | Functions
fileringbuffer.cpp File Reference
#include <cstdlib>
#include <cerrno>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <QFileInfo>
#include <QDir>
#include "threadedfilewriter.h"
#include "fileringbuffer.h"
#include "mythcontext.h"
#include "remotefile.h"
#include "mythconfig.h"
#include "mythtimer.h"
#include "mythdate.h"
#include "compat.h"
#include "mythcorecontext.h"
Include dependency graph for fileringbuffer.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 check_permissions (const QString &filename)
 Returns false iff file exists and has incorrect permissions. More...
 
static bool is_subtitle_possible (const QString &extension)
 
static QString local_sub_filename (QFileInfo &fileInfo)
 

Macro Definition Documentation

◆ POSIX_FADV_SEQUENTIAL

#define POSIX_FADV_SEQUENTIAL   0

Definition at line 26 of file fileringbuffer.cpp.

◆ POSIX_FADV_WILLNEED

#define POSIX_FADV_WILLNEED   0

Definition at line 27 of file fileringbuffer.cpp.

◆ POSIX_FADV_DONTNEED

#define POSIX_FADV_DONTNEED   0

Definition at line 28 of file fileringbuffer.cpp.

◆ O_STREAMING

#define O_STREAMING   0

Definition at line 32 of file fileringbuffer.cpp.

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 36 of file fileringbuffer.cpp.

◆ O_BINARY

#define O_BINARY   0

Definition at line 40 of file fileringbuffer.cpp.

◆ LOC

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

Definition at line 43 of file fileringbuffer.cpp.

Function Documentation

◆ posix_fadvise()

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

Definition at line 25 of file fileringbuffer.cpp.

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

◆ check_permissions()

check_permissions ( const QString &  filename)
static

Returns false iff file exists and has incorrect permissions.

Parameters
filenameFile (including path) that we want to know about

Definition at line 110 of file fileringbuffer.cpp.

Referenced by FileRingBuffer::OpenFile().

◆ is_subtitle_possible()

static bool is_subtitle_possible ( const QString &  extension)
static

Definition at line 122 of file fileringbuffer.cpp.

Referenced by FileRingBuffer::OpenFile().

◆ local_sub_filename()

static QString local_sub_filename ( QFileInfo &  fileInfo)
static

Definition at line 137 of file fileringbuffer.cpp.

Referenced by FileRingBuffer::OpenFile().