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#pragma once
21
22#include "psion.h"
23
27class FakePsion : public Psion {
28public:
29
30 virtual ~FakePsion();
31
32 virtual bool connect();
33
34 virtual Enum<RFSV::errs> copyToPsion(const char * const from,
35 const char * const to,
36 void *, cpCallback_t func);
37
38 virtual Enum<RFSV::errs> devinfo(const char drive, Drive& plpDrive);
39
40 virtual Enum<RFSV::errs> devlist(uint32_t& devbits);
41
42 virtual Enum<RFSV::errs> dir(const char* dir, PlpDir& files);
43
44 virtual bool dirExists(const char* name);
45
46 virtual void disconnect();
47
48 virtual Enum<RFSV::errs> mkdir(const char* dir);
49
50 virtual void remove(const char* name);
51
52};
A class representing information about a Disk drive on the psion.
Definition: drive.h:51
Wrapper class featuring range-checking and string representation of enumerated values.
Definition: Enum.h:135
A dummy version of the Psion proxy, mainly for testing the installer.
Definition: fakepsion.h:27
virtual bool connect()
Definition: fakepsion.cc:30
virtual Enum< RFSV::errs > mkdir(const char *dir)
Definition: fakepsion.cc:67
virtual Enum< RFSV::errs > devlist(uint32_t &devbits)
Definition: fakepsion.cc:48
virtual void disconnect()
Definition: fakepsion.cc:64
virtual ~FakePsion()
Definition: fakepsion.cc:27
virtual Enum< RFSV::errs > devinfo(const char drive, Drive &plpDrive)
Definition: fakepsion.cc:42
virtual Enum< RFSV::errs > dir(const char *dir, PlpDir &files)
Definition: fakepsion.cc:53
virtual bool dirExists(const char *name)
Definition: fakepsion.cc:59
virtual Enum< RFSV::errs > copyToPsion(const char *const from, const char *const to, void *, cpCallback_t func)
Definition: fakepsion.cc:34
virtual void remove(const char *name)
Definition: fakepsion.cc:75
Semi smart proxy for communicating with a Psion.
Definition: psion.h:33
int(* cpCallback_t)(void *, uint32_t)
Defines the callback procedure for progress indication of copy operations.
Definition: rfsv.h:45
std::deque< class PlpDirent > PlpDir
Definition: rfsv.h:34