#include <remotefile.h>
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 MythSocket * | getSocket (void) const |
| MythSocket * | getSocket (void) |
Private Member Functions | |
| MythSocket * | openSocket (bool control) |
Private Attributes | |
| QString | path |
| bool | usereadahead |
| int | retries |
| long long | filesize |
| bool | timeoutisfast |
| long long | readposition |
| int | recordernum |
| QMutex | lock |
| MythSocket * | controlSock |
| MythSocket * | sock |
| QString | query |
| 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.
| bool RemoteFile::Open | ( | void | ) |
| void RemoteFile::Close | ( | void | ) |
| 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 | |||
| ) |
| void RemoteFile::Reset | ( | void | ) |
| bool RemoteFile::SaveAs | ( | QByteArray & | data | ) |
Definition at line 293 of file remotefile.cpp.
Referenced by MythContext::CacheRemotePixmap(), and PreviewGenerator::RemotePreviewRun().
| void RemoteFile::SetTimeout | ( | bool | fast | ) |
| bool RemoteFile::isOpen | ( | void | ) | const [inline] |
| long long RemoteFile::GetFileSize | ( | void | ) | const [inline] |
| 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] |
QString RemoteFile::path [private] |
bool RemoteFile::usereadahead [private] |
int RemoteFile::retries [private] |
long long RemoteFile::filesize [private] |
bool RemoteFile::timeoutisfast [private] |
long long RemoteFile::readposition [private] |
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().
MythSocket* RemoteFile::controlSock [private] |
Definition at line 52 of file remotefile.h.
Referenced by Close(), Open(), Read(), Seek(), SetTimeout(), and ~RemoteFile().
MythSocket* RemoteFile::sock [private] |
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().
1.5.5