plptools
Loading...
Searching...
No Matches
device.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-2002 Fritz Elfert <felfert@to.com>
6 * Copyright (C) 2006-2025 Reuben Thomas <rrt@sc3d.org>
7 * Copyright (C) 2026 Jason Morley <hello@jbmorley.co.uk>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 *
22 */
23#pragma once
24
25#include "config.h"
26
27#include <memory>
28
29#include "rfsv.h"
30
32class DeviceEndpoint;
33class rclip;
34class RFSV;
35class RPCS;
36
37namespace device {
38
39extern Enum<RFSV::errs> write_configuration(RFSV &rfsv, const DeviceConfiguration &deviceConfiguration);
40
41extern std::unique_ptr<DeviceConfiguration> read_configuration(RFSV &rfsv, Enum<RFSV::errs> &error);
42
43};
Class for managing and serializing device details.
Wrapper class featuring range-checking and string representation of enumerated values.
Definition: Enum.h:135
Access remote file services of a Psion.
Definition: rfsv.h:79
Remote procedure call services via PLP.
Definition: rpcs.h:52
Remote ClipBoard services via PLP.
Definition: rclip.h:44
Definition: device.h:37
Enum< RFSV::errs > write_configuration(RFSV &rfsv, const DeviceConfiguration &deviceConfiguration)
Definition: device.cc:35
std::unique_ptr< DeviceConfiguration > read_configuration(RFSV &rfsv, Enum< RFSV::errs > &error)
Definition: device.cc:72
static void error(int line)
Definition: sismain.cpp:44