plptools
Loading...
Searching...
No Matches
rfsvfactory.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 1999 Philip Proudman <philip.proudman@btinternet.com>
5 * Copyright (C) 1999 Matt J. Gumbley <matt@gumbley.demon.co.uk>
6 * Copyright (C) 1999-2001 Fritz Elfert <felfert@to.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * along with this program; if not, see <https://www.gnu.org/licenses/>.
20 *
21 */
22#ifndef _RFSVFACTORY_H_
23#define _RFSVFACTORY_H_
24
25#include "rfsv.h"
26
27class TCPSocket;
28
34
35public:
39 enum errs {
46 };
47
57
61 virtual ~rfsvfactory();
62
72 virtual rfsv * create(bool);
73
80 virtual Enum<errs> getError() { return err; }
81
82private:
88 int serNum;
90};
91
92#endif
Wrapper class featuring range-checking and string representation of enumerated values.
Definition: Enum.h:136
A class for dealing with sockets.
Definition: tcpsocket.h:38
Access remote file services of a Psion.
Definition: rfsv.h:75
A factory for automatically instantiating the correct rfsv protocol variant depending on the connecte...
Definition: rfsvfactory.h:33
virtual Enum< errs > getError()
Retrieve an error code.
Definition: rfsvfactory.h:80
virtual ~rfsvfactory()
Delete the rfsvfactory, cleaning up any resources.
Definition: rfsvfactory.cc:50
errs
The known errors which can happen during create .
Definition: rfsvfactory.h:39
@ FACERR_NORESPONSE
Definition: rfsvfactory.h:45
@ FACERR_PROTVERSION
Definition: rfsvfactory.h:44
@ FACERR_COULD_NOT_SEND
Definition: rfsvfactory.h:41
TCPSocket * skt
The socket to be used for connecting to the ncpd daemon.
Definition: rfsvfactory.h:87
Enum< errs > err
Definition: rfsvfactory.h:89
virtual rfsv * create(bool)
Creates a new rfsv instance.
Definition: rfsvfactory.cc:54