aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall/psion.h
blob: 83893af2c5aa38f8481134c14fc33240a6f3277f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _PSION_H
#define _PSION_H

#include <Enum.h>
#include "rfsv.h"

class ppsocket;
class rfsvfactory;
class rpcsfactory;
class rpcs;

/**
 * Semi smart proxy for communicating with a Psion.
 */
class Psion
{
public:

	virtual ~Psion();

	virtual bool connect();

	virtual Enum<rfsv::errs> copyFromPsion(const char * const from, int fd,
										   cpCallback_t func);

    virtual Enum<rfsv::errs> copyToPsion(const char * const from,
										 const char * const to,
										 void *, cpCallback_t func);

	virtual Enum<rfsv::errs> devinfo(const char drive, PlpDrive& plpDrive);

	virtual Enum<rfsv::errs> devlist(u_int32_t& devbits);

	virtual Enum<rfsv::errs> dir(const char* dir, PlpDir& files);

	virtual bool dirExists(const char* name);

	virtual void disconnect();

	virtual Enum<rfsv::errs> mkdir(const char* dir);

	virtual void remove(const char* name);

private:

	ppsocket* m_skt;
	ppsocket* m_skt2;
	rfsvfactory* m_rfsvFactory;
	rpcsfactory* m_rpcsFactory;
	rpcs* m_rpcs;
	rfsv* m_rfsv;

};

#endif