Garmin Fleet Management Controller
2.19.0
Main Page
Related Pages
Classes
Files
File List
File Members
fmi_CustomForms.h
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* HEADER NAME:
4
* fmi_CustomForms.h - Protocol info for custom forms
5
*
6
* Copyright 2008-2013 by Garmin Ltd. or its subsidiaries.
7
*---------------------------------------------------------------------
8
* $NoKeywords$
9
*********************************************************************/
10
#ifndef FMI_CF_H
11
#define FMI_CF_H
12
13
#if( FMI_SUPPORT_A612 )
14
15
#define FMI_CF_SCHEMA_ERR_BASE 50
16
#define FMI_CF_XSP_ERR_BASE 200
17
18
enum
FMI_cf_rcode
{
19
FMI_CF_RCODE_OK
,
20
FMI_CF_RCODE_GFS_ERROR
,
21
FMI_CF_RCODE_SQL_ERROR
,
22
FMI_CF_RCODE_SQL_PREPARE_FAILED
,
23
FMI_CF_RCODE_SQL_BIND_FAILED
,
24
FMI_CF_RCODE_SQL_EXEC_FAILED
,
25
FMI_CF_RCODE_SQL_TRANSACTION_ALREADY_STARTED
,
26
FMI_CF_RCODE_SQL_NUMBER_OF_FORMS_LIMIT_EXCEEDED
,
27
FMI_CF_RCODE_SQL_POSITION_FREE_FAILED
,
28
FMI_CF_RCODE_SQL_POSITION_PACK_FAILED
,
29
FMI_CF_RCODE_SQL_ITEM_EXTRAS_NULL_TYPE
,
30
FMI_CF_RCODE_SQL_ITEM_EXTRAS_UNEXPECTED_SIZE
,
31
FMI_CF_RCODE_SQL_OLDEST_SAVED_DELETE_FAILED
,
32
FMI_CF_RCODE_SQL_NO_UNSENT_FORMS
,
33
FMI_CF_RCODE_SQL_SUBMITTED_STRING_POINTER_NULL
,
34
FMI_CF_RCODE_SQL_SUBMITTED_STRING_UNEXPECTED_SIZE
,
35
FMI_CF_RCODE_SQL_FORM_TEMPLATE_NOT_FOUND
,
36
37
FMI_CF_RCODE_SCHEMA_BASE
=
FMI_CF_SCHEMA_ERR_BASE
,
38
FMI_CF_RCODE_SCHEMA_FORM_ELMT_INCOMPLETE
,
39
FMI_CF_RCODE_SCHEMA_ITEM_ELMT_INCOMPLETE
,
40
FMI_CF_RCODE_SCHEMA_ITEM_PARENT_INVALID
,
41
FMI_CF_RCODE_SCHEMA_ITEM_ID_REUSE
,
42
FMI_CF_RCODE_SCHEMA_ITEM_CNT_OUT_OF_RANGE
,
43
FMI_CF_RCODE_SCHEMA_TYPE_PARENT_INVALID
,
44
FMI_CF_RCODE_SCHEMA_TYPE_CNT_OUT_OF_RANGE
,
45
FMI_CF_RCODE_SCHEMA_TEXT_LEN_OUT_OF_RANGE
,
46
FMI_CF_RCODE_SCHEMA_INT_LEN_OUT_OF_RANGE
,
47
FMI_CF_RCODE_SCHEMA_INT_MIN_OUT_OF_RANGE
,
48
FMI_CF_RCODE_SCHEMA_INT_MAX_OUT_OF_RANGE
,
49
FMI_CF_RCODE_SCHEMA_INT_MIN_GRT_THAN_MAX
,
50
FMI_CF_RCODE_SCHEMA_OPT_ELMT_INCOMPLETE
,
51
FMI_CF_RCODE_SCHEMA_OPT_PARENT_INVALID
,
52
FMI_CF_RCODE_SCHEMA_OPT_ID_REUSE
,
53
FMI_CF_RCODE_SCHEMA_OPT_CNT_OUT_OF_RANGE
,
54
FMI_CF_RCODE_SCHEMA_MONTH_OUT_OF_RANGE
,
55
FMI_CF_RCODE_SCHEMA_DAY_OUT_OF_RANGE
,
56
FMI_CF_RCODE_SCHEMA_YEAR_OUT_OF_RANGE
,
57
FMI_CF_RCODE_SCHEMA_INVALID_DAYS_IN_MONTH
,
58
FMI_CF_RCODE_SCHEMA_NO_DATE_SET
,
59
FMI_CF_RCODE_SCHEMA_HOUR_OUT_OF_RANGE
,
60
FMI_CF_RCODE_SCHEMA_MINUTE_OUT_OF_RANGE
,
61
FMI_CF_RCODE_SCHEMA_SECOND_OUT_OF_RANGE
,
62
FMI_CF_RCODE_SCHEMA_NO_TIME_SET
,
63
FMI_CF_RCODE_SCHEMA_UNKNOWN_ITEM_TYPE
,
64
65
FMI_CF_RCODE_XSP_BASE
=
FMI_CF_XSP_ERR_BASE
,
66
FMI_CF_RCODE_XSP_NO_MEMORY
,
67
FMI_CF_RCODE_XSP_SYNTAX
,
68
FMI_CF_RCODE_XSP_NO_ELEMENTS
,
69
FMI_CF_RCODE_XSP_INVALID_TOKEN
,
70
FMI_CF_RCODE_XSP_UNCLOSED_TOKEN
,
71
FMI_CF_RCODE_XSP_PARTIAL_CHAR
,
72
FMI_CF_RCODE_XSP_TAG_MISMATCH
,
73
FMI_CF_RCODE_XSP_DUPLICATE_ATTRIBUTE
,
74
FMI_CF_RCODE_XSP_JUNK_AFTER_DOC_ELEMENT
,
75
FMI_CF_RCODE_XSP_PARAM_ENTITY_REF
,
76
FMI_CF_RCODE_XSP_UNDEFINED_ENTITY
,
77
FMI_CF_RCODE_XSP_RECURSIVE_ENTITY_REF
,
78
FMI_CF_RCODE_XSP_ASYNC_ENTITY
,
79
FMI_CF_RCODE_XSP_BAD_CHAR_REF
,
80
FMI_CF_RCODE_XSP_BINARY_ENTITY_REF
,
81
FMI_CF_RCODE_XSP_ATTRIBUTE_EXTERNAL_ENTITY_REF
,
82
FMI_CF_RCODE_XSP_MISPLACED_XML_PI
,
83
FMI_CF_RCODE_XSP_UNKNOWN_ENCODING
,
84
FMI_CF_RCODE_XSP_INCORRECT_ENCODING
,
85
FMI_CF_RCODE_XSP_UNCLOSED_CDATA_SECTION
,
86
FMI_CF_RCODE_XSP_EXTERNAL_ENTITY_HANDLING
,
87
FMI_CF_RCODE_XSP_NOT_STANDALONE
,
88
FMI_CF_RCODE_XSP_UNEXPECTED_STATE
,
89
FMI_CF_RCODE_XSP_ENTITY_DECLARED_IN_PE
,
90
FMI_CF_RCODE_XSP_FEATURE_REQUIRES_XML_DTD
,
91
FMI_CF_RCODE_XSP_CANT_CHANGE_FEATURE_ONCE_PARSING
,
92
FMI_CF_RCODE_XSP_UNBOUND_PREFIX
,
93
FMI_CF_RCODE_XSP_UNDECLARING_PREFIX
,
94
FMI_CF_RCODE_XSP_INCOMPLETE_PE
,
95
FMI_CF_RCODE_XSP_XML_DECL
,
96
FMI_CF_RCODE_XSP_TEXT_DECL
,
97
FMI_CF_RCODE_XSP_PUBLICID
,
98
FMI_CF_RCODE_XSP_SUSPENDED
,
99
FMI_CF_RCODE_XSP_NOT_SUSPENDED
,
100
FMI_CF_RCODE_XSP_ABORTED
,
101
FMI_CF_RCODE_XSP_FINISHED
,
102
FMI_CF_RCODE_XSP_RESERVED_PREFIX_XML
,
103
FMI_CF_RCODE_XSP_RESERVED_PREFIX_XMLNS
,
104
FMI_CF_RCODE_XSP_RESERVED_NAMESPACE_URI
105
};
106
108
const
char
*
getCustomFormErrorMsg
(
const
FMI_cf_rcode
code );
109
110
#endif
111
112
#endif
FMI_CF_RCODE_SCHEMA_TEXT_LEN_OUT_OF_RANGE
[58] Text length is out of range
Definition:
fmi_CustomForms.h:45
FMI_CF_RCODE_XSP_UNDEFINED_ENTITY
[211] 11 - Undefined entity
Definition:
fmi_CustomForms.h:76
FMI_CF_RCODE_SCHEMA_INVALID_DAYS_IN_MONTH
[70] Number of days in the month is not valid
Definition:
fmi_CustomForms.h:57
FMI_CF_RCODE_XSP_BASE
[200] Base value for XSP error result codes - USED FOR ENUM ALIGNMENT ONLY
Definition:
fmi_CustomForms.h:65
FMI_CF_RCODE_SCHEMA_OPT_ID_REUSE
[65] Option ID is used more than one time for a given item
Definition:
fmi_CustomForms.h:52
FMI_CF_RCODE_SCHEMA_MONTH_OUT_OF_RANGE
[67] Month value is out of range
Definition:
fmi_CustomForms.h:54
FMI_CF_RCODE_XSP_SUSPENDED
[233] 33 - Parser suspended
Definition:
fmi_CustomForms.h:98
FMI_CF_RCODE_XSP_EXTERNAL_ENTITY_HANDLING
[221] 21 - Error in processing external entity reference
Definition:
fmi_CustomForms.h:86
FMI_CF_RCODE_SCHEMA_ITEM_ELMT_INCOMPLETE
[52] Item element is incomplete - required values are missing
Definition:
fmi_CustomForms.h:39
FMI_CF_RCODE_XSP_BINARY_ENTITY_REF
[215] 15 - Reference to binary entity
Definition:
fmi_CustomForms.h:80
FMI_CF_RCODE_XSP_BAD_CHAR_REF
[214] 14 - Rreference to invalid character number
Definition:
fmi_CustomForms.h:79
FMI_CF_RCODE_SCHEMA_INT_MIN_GRT_THAN_MAX
[62] Minimum integer value is greater than the maximum integer value
Definition:
fmi_CustomForms.h:49
FMI_CF_RCODE_XSP_NOT_STANDALONE
[222] 22 - Document is not standalone
Definition:
fmi_CustomForms.h:87
FMI_CF_RCODE_XSP_NOT_SUSPENDED
[234] 34 - Parser not suspended
Definition:
fmi_CustomForms.h:99
FMI_CF_RCODE_XSP_SYNTAX
[202] 2 - Syntax error
Definition:
fmi_CustomForms.h:67
FMI_CF_RCODE_XSP_INCORRECT_ENCODING
[219] 19 - Encoding specified in XML declaration is incorrect
Definition:
fmi_CustomForms.h:84
FMI_CF_RCODE_XSP_TAG_MISMATCH
[207] 7 - Mismatched tag
Definition:
fmi_CustomForms.h:72
FMI_CF_RCODE_SCHEMA_OPT_CNT_OUT_OF_RANGE
[66] Option count is out of range for an item
Definition:
fmi_CustomForms.h:53
FMI_CF_RCODE_XSP_FEATURE_REQUIRES_XML_DTD
[225] 25 - Requested feature requires XML_DTD support in Expat
Definition:
fmi_CustomForms.h:90
FMI_CF_RCODE_OK
[0] OK result code
Definition:
fmi_CustomForms.h:19
FMI_CF_RCODE_XSP_INCOMPLETE_PE
[229] 29 - Incomplete markup in parameter entity
Definition:
fmi_CustomForms.h:94
FMI_CF_RCODE_GFS_ERROR
[1] GFS error result code
Definition:
fmi_CustomForms.h:20
FMI_CF_RCODE_SQL_EXEC_FAILED
[5] SQL step (query/execution) failed
Definition:
fmi_CustomForms.h:24
FMI_CF_RCODE_XSP_FINISHED
[236] 36 - Parsing finished
Definition:
fmi_CustomForms.h:101
FMI_CF_RCODE_XSP_ENTITY_DECLARED_IN_PE
[224] 24 - Entity declared in parameter entity
Definition:
fmi_CustomForms.h:89
FMI_CF_RCODE_SQL_ITEM_EXTRAS_NULL_TYPE
[10] SQL item extras data type is NULL and cannot be used for query
Definition:
fmi_CustomForms.h:29
FMI_CF_RCODE_XSP_UNBOUND_PREFIX
[227] 27 - Unbound prefix
Definition:
fmi_CustomForms.h:92
FMI_CF_RCODE_XSP_RESERVED_PREFIX_XML
[237] 37 - Reserved XML prefix
Definition:
fmi_CustomForms.h:102
FMI_CF_RCODE_SCHEMA_ITEM_CNT_OUT_OF_RANGE
[55] Item count is out of range for a form
Definition:
fmi_CustomForms.h:42
FMI_CF_RCODE_SCHEMA_HOUR_OUT_OF_RANGE
[72] Hour value is out of range
Definition:
fmi_CustomForms.h:59
FMI_CF_RCODE_XSP_JUNK_AFTER_DOC_ELEMENT
[209] 9 - Junk after document element
Definition:
fmi_CustomForms.h:74
FMI_CF_RCODE_SCHEMA_INT_MAX_OUT_OF_RANGE
[61] Maximum integer value is out of range
Definition:
fmi_CustomForms.h:48
FMI_CF_RCODE_SCHEMA_ITEM_ID_REUSE
[54] Item ID is used more than one time
Definition:
fmi_CustomForms.h:41
FMI_CF_RCODE_SCHEMA_OPT_PARENT_INVALID
[64] An option elements parent is not a single select or multiple select element
Definition:
fmi_CustomForms.h:51
FMI_CF_RCODE_SCHEMA_UNKNOWN_ITEM_TYPE
[76] Unknown form item type
Definition:
fmi_CustomForms.h:63
FMI_CF_RCODE_SCHEMA_NO_DATE_SET
[71] Use current is set to false and no date was specified
Definition:
fmi_CustomForms.h:58
FMI_CF_RCODE_SCHEMA_INT_LEN_OUT_OF_RANGE
[59] Integer length is out of range
Definition:
fmi_CustomForms.h:46
FMI_CF_RCODE_SQL_NUMBER_OF_FORMS_LIMIT_EXCEEDED
[7] SQL number of forms exceeded supported limit
Definition:
fmi_CustomForms.h:26
FMI_CF_RCODE_XSP_ASYNC_ENTITY
[213] 13 - Asynchronous entity
Definition:
fmi_CustomForms.h:78
FMI_CF_RCODE_SQL_POSITION_FREE_FAILED
[8] SQL free form position failed
Definition:
fmi_CustomForms.h:27
FMI_CF_RCODE_SQL_ERROR
[2] SQL error result code
Definition:
fmi_CustomForms.h:21
getCustomFormErrorMsg
const char * getCustomFormErrorMsg(const FMI_cf_rcode code)
Lookup for custom forms transmission error codes.
Definition:
fmi_CustomForms.cpp:16
FMI_CF_RCODE_SCHEMA_MINUTE_OUT_OF_RANGE
[73] Minute value is out of range
Definition:
fmi_CustomForms.h:60
FMI_CF_RCODE_SQL_FORM_TEMPLATE_NOT_FOUND
[16] SQL form template is not found in the database
Definition:
fmi_CustomForms.h:35
FMI_CF_RCODE_SCHEMA_NO_TIME_SET
[75] Use current is set to false and no time was specified
Definition:
fmi_CustomForms.h:62
FMI_CF_RCODE_XSP_MISPLACED_XML_PI
[217] 17 - XML declaration not at start of external entity
Definition:
fmi_CustomForms.h:82
FMI_CF_RCODE_SQL_POSITION_PACK_FAILED
[9] SQL pack form positions failed
Definition:
fmi_CustomForms.h:28
FMI_CF_RCODE_SQL_OLDEST_SAVED_DELETE_FAILED
[12] SQL oldest saved form deletion failed
Definition:
fmi_CustomForms.h:31
FMI_CF_RCODE_XSP_TEXT_DECL
[231] 31 - Text declaration not well-formed
Definition:
fmi_CustomForms.h:96
FMI_CF_XSP_ERR_BASE
#define FMI_CF_XSP_ERR_BASE
Definition:
fmi_CustomForms.h:16
FMI_CF_RCODE_SQL_PREPARE_FAILED
[3] SQL prepare statement failed
Definition:
fmi_CustomForms.h:22
FMI_CF_RCODE_XSP_PARAM_ENTITY_REF
[210] 10 - Illegal parameter entity reference
Definition:
fmi_CustomForms.h:75
FMI_CF_RCODE_XSP_DUPLICATE_ATTRIBUTE
[208] 8 - Duplicate attribute
Definition:
fmi_CustomForms.h:73
FMI_CF_RCODE_XSP_UNDECLARING_PREFIX
[228] 28 - Must not undeclare prefix
Definition:
fmi_CustomForms.h:93
FMI_CF_RCODE_XSP_PUBLICID
[232] 32 - Illegal character(s) in public id
Definition:
fmi_CustomForms.h:97
FMI_CF_RCODE_SCHEMA_ITEM_PARENT_INVALID
[53] An item elements parent is not a form element
Definition:
fmi_CustomForms.h:40
FMI_CF_RCODE_SCHEMA_TYPE_PARENT_INVALID
[56] A type elements parent is not an item element
Definition:
fmi_CustomForms.h:43
FMI_CF_RCODE_SCHEMA_DAY_OUT_OF_RANGE
[68] Day value is out of range
Definition:
fmi_CustomForms.h:55
FMI_CF_RCODE_SQL_SUBMITTED_STRING_POINTER_NULL
[14] SQL submitted string pointer is NULL and cannot be used for query
Definition:
fmi_CustomForms.h:33
FMI_CF_RCODE_XSP_ABORTED
[235] 35 - Parsing aborted
Definition:
fmi_CustomForms.h:100
FMI_CF_RCODE_XSP_UNKNOWN_ENCODING
[218] 18 - Unknown encoding
Definition:
fmi_CustomForms.h:83
FMI_CF_RCODE_SQL_NO_UNSENT_FORMS
[13] SQL no unsent forms are in the database
Definition:
fmi_CustomForms.h:32
FMI_CF_RCODE_XSP_NO_MEMORY
[201] 1 - Out of memory
Definition:
fmi_CustomForms.h:66
FMI_CF_RCODE_SCHEMA_SECOND_OUT_OF_RANGE
[74] Second value is out of range
Definition:
fmi_CustomForms.h:61
FMI_CF_RCODE_XSP_INVALID_TOKEN
[204] 4 - Not well-formed (invalid token)
Definition:
fmi_CustomForms.h:69
FMI_CF_RCODE_XSP_RESERVED_NAMESPACE_URI
[239] 39 - Reserved namespace URI prefix
Definition:
fmi_CustomForms.h:104
FMI_CF_RCODE_SQL_SUBMITTED_STRING_UNEXPECTED_SIZE
[15] SQL data blob and submitted string sizes are not the same
Definition:
fmi_CustomForms.h:34
FMI_CF_RCODE_XSP_UNEXPECTED_STATE
[223] 23 - Unexpected parser state - please send a bug report
Definition:
fmi_CustomForms.h:88
FMI_CF_RCODE_SCHEMA_BASE
[50] Base value for schema error result codes - USED FOR ENUM ALIGNMENT ONLY
Definition:
fmi_CustomForms.h:37
FMI_CF_RCODE_XSP_RESERVED_PREFIX_XMLNS
[238] 38 - Reserved XMLNS prefix
Definition:
fmi_CustomForms.h:103
FMI_CF_RCODE_SCHEMA_TYPE_CNT_OUT_OF_RANGE
[57] Type count is out of range for an item (> 1)
Definition:
fmi_CustomForms.h:44
FMI_CF_RCODE_XSP_ATTRIBUTE_EXTERNAL_ENTITY_REF
[216] 16 - Reference to external entity in attribute
Definition:
fmi_CustomForms.h:81
FMI_CF_RCODE_SCHEMA_INT_MIN_OUT_OF_RANGE
[60] Minimum integer value is out of range
Definition:
fmi_CustomForms.h:47
FMI_cf_rcode
FMI_cf_rcode
Definition:
fmi_CustomForms.h:18
FMI_CF_RCODE_SCHEMA_FORM_ELMT_INCOMPLETE
[51] Form element is incomplete - required values are missing
Definition:
fmi_CustomForms.h:38
FMI_CF_RCODE_SQL_ITEM_EXTRAS_UNEXPECTED_SIZE
[11] SQL item extras blob and type sizes are not the same
Definition:
fmi_CustomForms.h:30
FMI_CF_RCODE_SCHEMA_OPT_ELMT_INCOMPLETE
[63] Option element is incomplete - required values are missing
Definition:
fmi_CustomForms.h:50
FMI_CF_RCODE_SQL_TRANSACTION_ALREADY_STARTED
[6] SQL transaction has already been started
Definition:
fmi_CustomForms.h:25
FMI_CF_RCODE_XSP_UNCLOSED_TOKEN
[205] 5 - Unclosed token
Definition:
fmi_CustomForms.h:70
FMI_CF_RCODE_SCHEMA_YEAR_OUT_OF_RANGE
[69] Year value is out of range
Definition:
fmi_CustomForms.h:56
FMI_CF_RCODE_XSP_PARTIAL_CHAR
[206] 6 - Partial character
Definition:
fmi_CustomForms.h:71
FMI_CF_RCODE_SQL_BIND_FAILED
[4] SQL bind parameters failed
Definition:
fmi_CustomForms.h:23
FMI_CF_RCODE_XSP_CANT_CHANGE_FEATURE_ONCE_PARSING
[226] 26 - Cannot change setting once parsing has begun
Definition:
fmi_CustomForms.h:91
FMI_CF_RCODE_XSP_RECURSIVE_ENTITY_REF
[212] 12 - Recursive entity reference
Definition:
fmi_CustomForms.h:77
FMI_CF_RCODE_XSP_UNCLOSED_CDATA_SECTION
[220] 20 - Unclosed CDATA section
Definition:
fmi_CustomForms.h:85
FMI_CF_RCODE_XSP_XML_DECL
[230] 30 - XML declaration not well-formed
Definition:
fmi_CustomForms.h:95
FMI_CF_SCHEMA_ERR_BASE
#define FMI_CF_SCHEMA_ERR_BASE
Definition:
fmi_CustomForms.h:15
FMI_CF_RCODE_XSP_NO_ELEMENTS
[203] 3 - No element found
Definition:
fmi_CustomForms.h:68
fmi_CustomForms.h
Generated by
1.8.11