plptools
Loading...
Searching...
No Matches
fakepsion.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 2002 Daniel Brahneborg <basic@chello.se>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * along with this program; if not, see <https://www.gnu.org/licenses/>.
18 *
19 */
20#ifndef _FAKEPSION_H
21#define _FAKEPSION_H
22
23#include "psion.h"
24
28class FakePsion : public Psion
29{
30public:
31
32 virtual ~FakePsion();
33
34 virtual bool connect();
35
36 virtual Enum<rfsv::errs> copyToPsion(const char * const from,
37 const char * const to,
38 void *, cpCallback_t func);
39
40 virtual Enum<rfsv::errs> devinfo(const char drive, PlpDrive& plpDrive);
41
42 virtual Enum<rfsv::errs> devlist(uint32_t& devbits);
43
44 virtual Enum<rfsv::errs> dir(const char* dir, PlpDir& files);
45
46 virtual bool dirExists(const char* name);
47
48 virtual void disconnect();
49
50 virtual Enum<rfsv::errs> mkdir(const char* dir);
51
52 virtual void remove(const char* name);
53
54};
55
56#endif
57
Wrapper class featuring range-checking and string representation of enumerated values.
Definition: Enum.h:136
A dummy version of the Psion proxy, mainly for testing the installer.
Definition: fakepsion.h:29
virtual Enum< rfsv::errs > copyToPsion(const char *const from, const char *const to, void *, cpCallback_t func)
Definition: fakepsion.cpp:38
virtual Enum< rfsv::errs > devlist(uint32_t &devbits)
Definition: fakepsion.cpp:53
virtual Enum< rfsv::errs > mkdir(const char *dir)
Definition: fakepsion.cpp:76
virtual bool connect()
Definition: fakepsion.cpp:32
virtual Enum< rfsv::errs > dir(const char *dir, PlpDir &files)
Definition: fakepsion.cpp:59
virtual void disconnect()
Definition: fakepsion.cpp:71
virtual ~FakePsion()
Definition: fakepsion.cpp:27
virtual bool dirExists(const char *name)
Definition: fakepsion.cpp:65
virtual Enum< rfsv::errs > devinfo(const char drive, PlpDrive &plpDrive)
Definition: fakepsion.cpp:47
virtual void remove(const char *name)
Definition: fakepsion.cpp:84
A class representing information about a Disk drive on the psion.
Definition: plpdirent.h:196
Semi smart proxy for communicating with a Psion.
Definition: psion.h:36
int(* cpCallback_t)(void *, uint32_t)
Defines the callback procedure for progress indication of copy operations.
Definition: rfsv.h:42
std::deque< class PlpDirent > PlpDir
Definition: rfsv.h:31