RemoteFile Class Reference

#include <remotefile.h>

List of all members.


Detailed Description

Definition at line 12 of file remotefile.h.


Public Member Functions

 RemoteFile (const QString &url, bool usereadahead=true, int retries=-1)
 ~RemoteFile ()
bool Open ()
void Close (void)
long long Seek (long long pos, int whence, long long curpos=-1)
int Read (void *data, int size)
void Reset (void)
bool SaveAs (QByteArray &data)
void SetTimeout (bool fast)
bool isOpen (void) const
long long GetFileSize (void) const
const MythSocketgetSocket (void) const
MythSocketgetSocket (void)

Private Member Functions

MythSocketopenSocket (bool control)

Private Attributes

QString path
bool usereadahead
int retries
long long filesize
bool timeoutisfast
long long readposition
int recordernum
QMutex lock
MythSocketcontrolSock
MythSocketsock
QString query

Constructor & Destructor Documentation

RemoteFile::RemoteFile ( const QString &  url,
bool  usereadahead = true,
int  retries = -1 
)

Definition at line 14 of file remotefile.cpp.

RemoteFile::~RemoteFile (  ) 

Definition at line 26 of file remotefile.cpp.


Member Function Documentation

bool RemoteFile::Open ( void   ) 

Definition at line 92 of file remotefile.cpp.

Referenced by RemoteFile().

void RemoteFile::Close ( void   ) 

Definition at line 99 of file remotefile.cpp.

Referenced by ~RemoteFile().

long long RemoteFile::Seek ( long long  pos,
int  whence,
long long  curpos = -1 
)

Definition at line 154 of file remotefile.cpp.

Referenced by RingBuffer::safe_read(), and RingBuffer::Seek().

int RemoteFile::Read ( void *  data,
int  size 
)

Definition at line 190 of file remotefile.cpp.

Referenced by RingBuffer::safe_read(), and SaveAs().

void RemoteFile::Reset ( void   ) 

Definition at line 128 of file remotefile.cpp.

Referenced by Seek().

bool RemoteFile::SaveAs ( QByteArray &  data  ) 

void RemoteFile::SetTimeout ( bool  fast  ) 

Definition at line 304 of file remotefile.cpp.

Referenced by RingBuffer::ReadAheadThread().

bool RemoteFile::isOpen ( void   )  const [inline]

Definition at line 30 of file remotefile.h.

Referenced by Open(), and RingBuffer::OpenFile().

long long RemoteFile::GetFileSize ( void   )  const [inline]

Definition at line 32 of file remotefile.h.

Referenced by RingBuffer::GetRealFileSize().

const MythSocket* RemoteFile::getSocket ( void   )  const [inline]

Definition at line 35 of file remotefile.h.

MythSocket* RemoteFile::getSocket ( void   )  [inline]

Definition at line 37 of file remotefile.h.

MythSocket * RemoteFile::openSocket ( bool  control  )  [private]

Definition at line 35 of file remotefile.cpp.

Referenced by Open().


Member Data Documentation

QString RemoteFile::path [private]

Definition at line 43 of file remotefile.h.

Referenced by openSocket().

Definition at line 44 of file remotefile.h.

Referenced by openSocket().

int RemoteFile::retries [private]

Definition at line 45 of file remotefile.h.

Referenced by openSocket().

long long RemoteFile::filesize [private]

Definition at line 46 of file remotefile.h.

Referenced by openSocket(), and SaveAs().

Definition at line 47 of file remotefile.h.

Referenced by SetTimeout().

long long RemoteFile::readposition [private]

Definition at line 48 of file remotefile.h.

Referenced by Seek().

int RemoteFile::recordernum [private]

Definition at line 49 of file remotefile.h.

Referenced by Close(), openSocket(), Read(), Seek(), and SetTimeout().

QMutex RemoteFile::lock [mutable, private]

Definition at line 51 of file remotefile.h.

Referenced by Close(), Read(), Reset(), Seek(), and SetTimeout().

Definition at line 52 of file remotefile.h.

Referenced by Close(), Open(), Read(), Seek(), SetTimeout(), and ~RemoteFile().

Definition at line 53 of file remotefile.h.

Referenced by Close(), Open(), Read(), Reset(), Seek(), SetTimeout(), and ~RemoteFile().

QString RemoteFile::query [private]

Definition at line 54 of file remotefile.h.

Referenced by Close(), Read(), Seek(), and SetTimeout().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:10 2010 for MythTV by  doxygen 1.5.5