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
28
ENUM_DEFINITION_BEGIN
(
ConnectionError
,
ConnectionError::FACERR_NONE
)
29
stringRep.
add
(
ConnectionError
::
FACERR_NONE
,
N_
("no
error
"));
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"));
36
ENUM_DEFINITION_END
(
ConnectionError
)
Enum.h
ENUM_DEFINITION_END
#define ENUM_DEFINITION_END(EnumName)
Definition:
Enum.h:303
ENUM_DEFINITION_BEGIN
#define ENUM_DEFINITION_BEGIN(EnumName, initWith)
Helper macro to construct an enumeration wrapper Enum<E> for a specific enum type.
Definition:
Enum.h:298
add
stringRep add(ConnectionError::FACERR_NONE, N_("no error"))
connectionerror.h
ConnectionError
ConnectionError
Errors that can occur when connecting to a PLP server.
Definition:
connectionerror.h:28
FACERR_PROTVERSION
@ FACERR_PROTVERSION
Definition:
connectionerror.h:33
FACERR_AGAIN
@ FACERR_AGAIN
Definition:
connectionerror.h:31
FACERR_NONE
@ FACERR_NONE
Definition:
connectionerror.h:29
FACERR_COULD_NOT_SEND
@ FACERR_COULD_NOT_SEND
Definition:
connectionerror.h:30
FACERR_NORESPONSE
@ FACERR_NORESPONSE
Definition:
connectionerror.h:34
FACERR_NOPSION
@ FACERR_NOPSION
Definition:
connectionerror.h:32
FACERR_CONNECTION_FAILURE
@ FACERR_CONNECTION_FAILURE
Definition:
connectionerror.h:35
N_
#define N_(String)
Definition:
plpintl.h:35
error
static void error(int line)
Definition:
sismain.cpp:44
p_device
Description of a Psion-Device.
Definition:
plpfuse.h:33
lib
connectionerror.cc
Generated by
1.9.5