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::TestItem Class Reference

#include <vsnet_notify.h>

Inheritance diagram for VsnetDownload::Client::TestItem:
VsnetDownload::Client::Item VsnetDownload::Client::NotifyMe VsnetDownload::Client::Notify

Public Member Functions

 TestItem (SOCKETALT sock, const std::string &filename)
 
virtual ~TestItem ()
 
- 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
 
- Public Member Functions inherited from VsnetDownload::Client::NotifyMe
 NotifyMe ()
 
virtual ~NotifyMe ()
 
virtual void notify (State s, VSError e)
 
virtual void setTotalBytes (int sz)
 
virtual void addBytes (int sz)
 
bool done () const
 
bool ok () const
 
int total () const
 
int offset () const
 

Protected Member Functions

virtual void childSetSize (int len)
 
virtual void childAppend (unsigned char *buffer, int bufsize)
 
- Protected Member Functions inherited from VsnetDownload::Client::Item
void protected_replace_notifier (NotifyPtr ptr)
 

Additional Inherited Members

- Protected Attributes inherited from VsnetDownload::Client::Item
VSFileSystem::VSFileType _filetype
 

Detailed Description

Definition at line 337 of file vsnet_notify.h.

Constructor & Destructor Documentation

VsnetDownload::Client::TestItem::TestItem ( SOCKETALT  sock,
const std::string &  filename 
)

Definition at line 269 of file vsnet_notify.cpp.

References COUT.

269  :
270  Item( sock, filename, VSFileSystem::UnknownFile, NotifyPtr( this ) )
271 {
272  COUT<<"Created TestItem for downloading "<<filename<<endl;
273 }
virtual VsnetDownload::Client::TestItem::~TestItem ( )
inlinevirtual

Definition at line 342 of file vsnet_notify.h.

342 {}

Member Function Documentation

virtual void VsnetDownload::Client::TestItem::childAppend ( unsigned char *  buffer,
int  bufsize 
)
inlineprotectedvirtual

Implements VsnetDownload::Client::Item.

Definition at line 346 of file vsnet_notify.h.

346 {}
virtual void VsnetDownload::Client::TestItem::childSetSize ( int  len)
inlineprotectedvirtual

Implements VsnetDownload::Client::Item.

Definition at line 345 of file vsnet_notify.h.

345 {}

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