Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vsnet_notify.h>
Public Member Functions | |
File (SOCKETALT sock, const std::string &filename, std::string localbasepath, VSFileSystem::VSFileType ft, NotifyPtr notify=NotifyPtr()) | |
File (const std::string &destfile, SOCKETALT sock, const std::string &filename, std::string localbasepath, VSFileSystem::VSFileType ft, NotifyPtr notify=NotifyPtr()) | |
virtual | ~File () |
![]() | |
Item (SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType=VSFileSystem::UnknownFile, NotifyPtr notify=NotifyPtr()) | |
virtual | ~Item () |
State | state () const |
VSError | error () const |
void | changeState (State s) |
void | changeState (State s, VSError e) |
void | setFileType (VSFileSystem::VSFileType ft) |
VSFileSystem::VSFileType | getFileType () |
void | setSize (int len) |
void | append (unsigned char *buffer, int bufsize) |
const std::string & | getFilename () const |
SOCKETALT | getSock () const |
int | get_fd () const |
Protected Member Functions | |
virtual void | childSetSize (int len) |
virtual void | childAppend (unsigned char *buffer, int bufsize) |
![]() | |
void | protected_replace_notifier (NotifyPtr ptr) |
Additional Inherited Members | |
![]() | |
VSFileSystem::VSFileType | _filetype |
Definition at line 215 of file vsnet_notify.h.
VsnetDownload::Client::File::File | ( | SOCKETALT | sock, |
const std::string & | filename, | ||
std::string | localbasepath, | ||
VSFileSystem::VSFileType | ft, | ||
NotifyPtr | notify = NotifyPtr() |
||
) |
VsnetDownload::Client::File::File | ( | const std::string & | destfile, |
SOCKETALT | sock, | ||
const std::string & | filename, | ||
std::string | localbasepath, | ||
VSFileSystem::VSFileType | ft, | ||
NotifyPtr | notify = NotifyPtr() |
||
) |
|
virtual |
Definition at line 165 of file vsnet_notify.cpp.
References VSFileSystem::VSFile::Close().
|
protectedvirtual |
Implements VsnetDownload::Client::Item.
Definition at line 188 of file vsnet_notify.cpp.
References bufsize, VSFileSystem::VSFile::Close(), and VSFileSystem::VSFile::Write().
|
protectedvirtual |
Implements VsnetDownload::Client::Item.
Definition at line 173 of file vsnet_notify.cpp.
References VsnetDownload::Client::Item::_filetype, VSFileSystem::Ok, and VSFileSystem::VSFile::OpenCreateWrite().