Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VsnetDownload::Client::NoteFile Class Reference

#include <vsnet_notify.h>

Inheritance diagram for VsnetDownload::Client::NoteFile:
VsnetDownload::Client::File VsnetDownload::Client::Item

Public Member Functions

 NoteFile (SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType ft, std::string localbasepath)
 
 NoteFile (SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType ft)
 
 NoteFile (const std::string &destfile, SOCKETALT sock, const std::string &filename, VSFileSystem::VSFileType ft)
 
virtual ~NoteFile ()
 
bool done () const
 
bool ok () const
 
int total () const
 
int offset () const
 
- Public Member Functions inherited from VsnetDownload::Client::File
 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 ()
 
- Public Member Functions inherited from VsnetDownload::Client::Item
 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
 

Additional Inherited Members

- Protected Member Functions inherited from VsnetDownload::Client::File
virtual void childSetSize (int len)
 
virtual void childAppend (unsigned char *buffer, int bufsize)
 
- Protected Attributes inherited from VsnetDownload::Client::Item
VSFileSystem::VSFileType _filetype
 

Detailed Description

Definition at line 242 of file vsnet_notify.h.

Constructor & Destructor Documentation

VsnetDownload::Client::NoteFile::NoteFile ( SOCKETALT  sock,
const std::string &  filename,
VSFileSystem::VSFileType  ft,
std::string  localbasepath 
)

Definition at line 205 of file vsnet_notify.cpp.

References VsnetDownload::Client::Item::protected_replace_notifier().

205  :
206  File( sock, filename, localbasepath, ft, NotifyPtr() )
207  , _me( new NotifyMe )
208 {
210 }
VsnetDownload::Client::NoteFile::NoteFile ( SOCKETALT  sock,
const std::string &  filename,
VSFileSystem::VSFileType  ft 
)

Definition at line 212 of file vsnet_notify.cpp.

References VsnetDownload::Client::Item::protected_replace_notifier().

212  :
213  File( sock, filename, VSFileSystem::homedir, ft, NotifyPtr() )
214  , _me( new NotifyMe )
215 {
217 }
VsnetDownload::Client::NoteFile::NoteFile ( const std::string &  destfile,
SOCKETALT  sock,
const std::string &  filename,
VSFileSystem::VSFileType  ft 
)

Definition at line 219 of file vsnet_notify.cpp.

References VsnetDownload::Client::Item::protected_replace_notifier().

219  :
220  File( destfile, sock, filename, VSFileSystem::homedir, ft, NotifyPtr() )
221  , _me( new NotifyMe )
222 {
224 }
VsnetDownload::Client::NoteFile::~NoteFile ( )
virtual

Definition at line 226 of file vsnet_notify.cpp.

227 {}

Member Function Documentation

bool VsnetDownload::Client::NoteFile::done ( ) const
inline

Definition at line 258 of file vsnet_notify.h.

References VsnetDownload::Client::NotifyMe::done().

Referenced by NetClient::loginAccept().

259  {
260  return me()->done();
261  }
int VsnetDownload::Client::NoteFile::offset ( ) const
inline

Definition at line 273 of file vsnet_notify.h.

References VsnetDownload::Client::NotifyMe::offset().

274  {
275  return me()->offset();
276  }
bool VsnetDownload::Client::NoteFile::ok ( ) const
inline

Definition at line 263 of file vsnet_notify.h.

References VsnetDownload::Client::NotifyMe::ok().

264  {
265  return me()->ok();
266  }
int VsnetDownload::Client::NoteFile::total ( ) const
inline

Definition at line 268 of file vsnet_notify.h.

References VsnetDownload::Client::NotifyMe::total().

269  {
270  return me()->total();
271  }

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