plptools
Loading...
Searching...
No Matches
connectionerror.cc
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 * 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#include "config.h"
24
25#include "connectionerror.h"
26#include "Enum.h"
27
30 stringRep.add(ConnectionError::FACERR_COULD_NOT_SEND, N_("could not send version request"));
31 stringRep.add(ConnectionError::FACERR_AGAIN, N_("try again"));
32 stringRep.add(ConnectionError::FACERR_NOPSION, N_("no EPOC device connected"));
33 stringRep.add(ConnectionError::FACERR_PROTVERSION, N_("wrong protocol version"));
34 stringRep.add(ConnectionError::FACERR_NORESPONSE, N_("no response from ncpd"));
35 stringRep.add(ConnectionError::FACERR_CONNECTION_FAILURE, N_("could not connect to ncpd"));
#define ENUM_DEFINITION_END(EnumName)
Definition: Enum.h:297
#define ENUM_DEFINITION_BEGIN(EnumName, initWith)
Helper macro to construct an enumeration wrapper Enum<E> for a specific enum type.
Definition: Enum.h:292
stringRep add(ConnectionError::FACERR_NONE, N_("no error"))
ConnectionError
Errors that can occur when connecting to a PLP server.
@ FACERR_PROTVERSION
@ FACERR_AGAIN
@ FACERR_NONE
@ FACERR_COULD_NOT_SEND
@ FACERR_NORESPONSE
@ FACERR_NOPSION
@ FACERR_CONNECTION_FAILURE
#define N_(String)
Definition: plpintl.h:35
static void error(int line)
Definition: sismain.cpp:44
Description of a Psion-Device.
Definition: plpfuse.h:33