|
plptools
|
A factory for automatically instantiating the correct rfsv protocol variant depending on the connected Psion. More...
#include <rfsvfactory.h>

Public Types | |
| enum | errs { FACERR_NONE = 0 , FACERR_COULD_NOT_SEND = 1 , FACERR_AGAIN = 2 , FACERR_NOPSION = 3 , FACERR_PROTVERSION = 4 , FACERR_NORESPONSE = 5 } |
| The known errors which can happen during create . More... | |
Public Member Functions | |
| rfsvfactory (TCPSocket *skt) | |
| Constructs a rfsvfactory. More... | |
| virtual | ~rfsvfactory () |
| Delete the rfsvfactory, cleaning up any resources. More... | |
| virtual rfsv * | create (bool) |
| Creates a new rfsv instance. More... | |
| virtual Enum< errs > | getError () |
| Retrieve an error code. More... | |
Private Attributes | |
| TCPSocket * | skt |
| The socket to be used for connecting to the ncpd daemon. More... | |
| int | serNum |
| Enum< errs > | err |
A factory for automatically instantiating the correct rfsv protocol variant depending on the connected Psion.
Definition at line 33 of file rfsvfactory.h.
| enum rfsvfactory::errs |
The known errors which can happen during create .
| Enumerator | |
|---|---|
| FACERR_NONE | |
| FACERR_COULD_NOT_SEND | |
| FACERR_AGAIN | |
| FACERR_NOPSION | |
| FACERR_PROTVERSION | |
| FACERR_NORESPONSE | |
Definition at line 39 of file rfsvfactory.h.
| rfsvfactory::rfsvfactory | ( | TCPSocket * | skt | ) |
Constructs a rfsvfactory.
Does not take ownership of the socket.
| skt | The socket to be used for connecting to the ncpd daemon. |
Definition at line 44 of file rfsvfactory.cc.
|
virtual |
Delete the rfsvfactory, cleaning up any resources.
Definition at line 50 of file rfsvfactory.cc.
|
virtual |
Creates a new rfsv instance.
| reconnect | Set to true, if automatic reconnect should be performed on failure. |
Definition at line 54 of file rfsvfactory.cc.
Retrieve an error code.
Definition at line 80 of file rfsvfactory.h.
Definition at line 89 of file rfsvfactory.h.
|
private |
Definition at line 88 of file rfsvfactory.h.
|
private |
The socket to be used for connecting to the ncpd daemon.
Definition at line 87 of file rfsvfactory.h.