![]() |
HTMLPRINTER
2.13.5-1
|
Data Structures | |
| struct | UIBacklight |
| class | UICBData |
| struct | UIErrorEntry |
| struct | UIMenuEntry |
| struct | UIRegion |
| struct | UIStatistics |
Typedefs | |
| typedef void(* | uiAsyncCallback) (void *data, UICBType type, UICBData &uidata) |
| typedef bool(* | uiCallback) (void *data) |
Functions | |
| DllSpec const char * | gui_GetSvcVersion (int display) |
| DllSpec const char * | gui_GetVersion () |
| DllSpec int | uiConfigLEDs (UILEDShape shape, int width, int height, unsigned off_rgba, unsigned on0_rgba, unsigned on1_rgba, unsigned on2_rgba, unsigned on3_rgba) |
| DllSpec int | uiConfigLEDs (const char *filename) |
| DllSpec int | uiConfirm (int display, int region_id, const std::string &templateName, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiConfirmAsync (int display, int region_id, const std::string &templateName, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiConfirmWait (int txn_id, int timeout_msec=-1) |
| DllSpec std::string | uiCurrentRegionPath (int display) |
| DllSpec int | uiDisplay (int display, int region_id, const std::string &templateName, const std::string &text) |
| DllSpec int | uiDisplay (int display, int region_id, const std::string &text) |
| DllSpec int | uiDisplayAsync (int display, int region_id, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiDisplayAsync (int display, int region_id, const std::string &templateName, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiDisplayCount () |
| DllSpec int | uiDisplayWait (int txn_id, int timeout_msec=-1) |
| DllSpec int | uiEnterRegion (int display, int region_id) |
| DllSpec const std::vector< UIErrorEntry > & | uiErrorList () |
| DllSpec int | uiGetBacklightConfig (int display, std::vector< UIBacklight > &levels) |
| DllSpec int | uiGetBacklightLevel (int display, int &level) |
| DllSpec std::string | uiGetCatalog (int display) |
| DllSpec int | uiGetHtml (int display, const std::map< std::string, std::string > &value, const std::string &text, std::string &html) |
| DllSpec int | uiGetHtmlURL (int display, const std::map< std::string, std::string > &value, const std::string &url, std::string &html) |
| DllSpec int | uiGetIdleTime (int display=0) |
| DllSpec int | uiGetLayout (int display, std::vector< UIRegion > ®ion) |
| DllSpec bool | uiGetLocalProperties () |
| DllSpec unsigned | uiGetLogMask (void) |
| DllSpec int | uiGetPropertyInt (int display, enum UIPropertyInt property, int *value) |
| DllSpec int | uiGetPropertyString (int display, enum UIPropertyString property, char *value, int len) |
| DllSpec int | uiGetPropertyString (int display, enum UIPropertyString property, std::string &value) |
| DllSpec std::string | uiGetTerminalResourceDir (int display, const std::string &www_path) |
| DllSpec std::string | uiGetText (int display, const std::string &name, const std::string &deflt="") |
| DllSpec std::string | uiGetURLPath (int display, const std::string &url) |
| DllSpec int | uiHideLEDArea () |
| DllSpec int | uiHTML2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &text) |
| DllSpec int | uiHTML2PNGData (std::vector< unsigned char > &data, int width, int height, const std::map< std::string, std::string > &value, const std::string &text) |
| DllSpec int | uiInput (int display, int region_id, const std::string &templateName, std::vector< std::string > &value, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInputAsync (int display, int region_id, const std::string &templateName, const std::vector< std::string > &value, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInputPINCheck (int display, int region_id, const std::string &templateName, const std::string &referencePIN, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInputPINCheckAsync (int display, int region_id, const std::string &templateName, const std::string &referencePIN, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInputPINCheckWait (int txn_id, int timeout_msec=-1) |
| DllSpec int | uiInputWait (int txn_id, std::vector< std::string > &value, int timeout_msec=-1) |
| DllSpec int | uiInvoke (int display, int region_id, stringmap &value, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInvokeAsync (int display, int region_id, const stringmap &value, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInvokeCancel (int txn_id, std::map< std::string, std::string > &value) |
| int | uiInvokeCancel (int txn_id) |
| DllSpec int | uiInvokeCancelAsync (int txn_id) |
| DllSpec int | uiInvokeTemplate (int display, int region_id, stringmap &value, const std::string &template_name, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInvokeTemplateAsync (int display, int region_id, const stringmap &value, const std::string &template_name, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInvokeURL (int display, int region_id, stringmap &value, const char *url, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInvokeURL (int display, int region_id, stringmap &value, const std::string &url, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiInvokeURLAsync (int display, int region_id, const stringmap &value, const char *url, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInvokeURLAsync (int display, int region_id, const stringmap &value, const std::string &url, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiInvokeURLDetached (int display, int region_id, const char *url) |
| DllSpec int | uiInvokeWait (int txn_id, std::map< std::string, std::string > &value, int timeout_msec=-1) |
| int | uiInvokeWait (int txn_id, int timeout_msec=-1) |
| DllSpec int | uiLayout (int display, const UIRegion *region, int regcnt, const UIRegion *oldreg, int oldregcnt) |
| DllSpec int | uiLayout (int display, const UIRegion *region, int regcnt) |
| DllSpec int | uiLayout (const UIRegion *region, int regcnt) |
| int | uiLayout (int display, const std::vector< UIRegion > ®) |
| int | uiLayout (int display, const std::vector< UIRegion > ®, const std::vector< UIRegion > &oldreg) |
| DllSpec int | uiLayout (int display, const char *name) |
| DllSpec int | uiLeaveRegion (int display) |
| DllSpec const char * | uiLibVersion () |
| DllSpec int | uiMenu (int display, int region_id, const std::string &templateName, const std::string &text, const struct UIMenuEntry menu[], int menusize, int preselect, uiCallback cb=0, void *cbdata=0) |
| DllSpec int | uiMenuAsync (int display, int region_id, const std::string &templateName, const std::string &text, const struct UIMenuEntry menu[], int menusize, int preselect, uiAsyncCallback cb=0, void *data=0) |
| DllSpec int | uiMenuWait (int txn_id, int timeout_msec=-1) |
| DllSpec std::string | uiPrint (const char *format,...) |
| DllSpec std::string | uiPrintV (const char *format, va_list va) |
| DllSpec void | uiReadConfig (int display) |
| DllSpec int | uiScreenshotPNG (int display, const char *filename) |
| DllSpec int | uiScreenshotPNGData (int display, std::vector< unsigned char > &data) |
| DllSpec std::string | uiScriptError () |
| DllSpec int | uiSetBacklightConfig (int display, const std::vector< UIBacklight > &levels) |
| DllSpec int | uiSetBacklightLevel (int display, int level) |
| DllSpec int | uiSetCatalog (int display, const std::string &filename) |
| DllSpec int | uiSetCurrentRegionPath (int display, const std::string &path) |
| DllSpec int | uiSetLED (unsigned led, bool state) |
| DllSpec void | uiSetLocalProperties (bool local) |
| DllSpec void | uiSetLogMask (unsigned mask) |
| DllSpec int | uiSetPropertyInt (int display, enum UIPropertyInt property, int value) |
| DllSpec int | uiSetPropertyString (int display, enum UIPropertyString property, const char *value) |
| int | uiSetPropertyString (int display, enum UIPropertyString property, const std::string &value) |
| DllSpec int | uiSetTransition (int display, int region_id, unsigned transtype, int duration_ms) |
| DllSpec int | uiShowLEDArea (UIEdge edge, int width, int height, unsigned bg_rgba) |
| DllSpec const UIStatistics & | uiStatistics () |
| DllSpec int | uiURL2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &url) |
| DllSpec int | uiURL2PNGData (std::vector< unsigned char > &data, int width, int height, const std::map< std::string, std::string > &value, const std::string &url) |
| struct UIBacklight |
| struct UIMenuEntry |
| struct UIRegion |
structure describing the position and size of an output region
| struct UIStatistics |
callback function that is called when a dialog has returned some data. In case of dialog sequences (e.g. a dialog uses the load-URL action) the callback is invoked after each step of the sequence.
| [in] | data | data pointer provided by the application |
| [in] | type | type / reason why the callback was invoked |
| [in] | uidata | object to access data of the current transaction |
| typedef bool(* uiCallback) (void *data) |
Most functions take a display and region_id parameter. For convenience these functions are overloaded so that these parameters may be omitted when using the default display and region:
display may be omitteddisplay and region_id may be omitted.If the key-value map is not required for a specific purpose, an overloaded version is provided so that the key-value map can be omitted. callback function that is called at regular intervals while the dialog is displayed. If the callback returns false, the dialog is cancelled;
| [in] | data | data pointer provided by the application |
| anonymous enum |
| anonymous enum |
bit mask constants for describing the transition
| enum UICBType |
Reason why the callback was invoked
| enum UIEdge |
| enum UIError |
Verifone GUI namespace error codes returned by the functions
| Enumerator | |
|---|---|
| UI_ERR_OK | no error |
| UI_ERR_ABORT | abort by user |
| UI_ERR_BACK | user selected back button |
| UI_ERR_TIMEOUT | dialog timeout |
| UI_ERR_PROPERTY | the property does not exist |
| UI_ERR_WRONG_PIN | wrong PIN was entered |
| UI_ERR_PARAMETER | parameter error |
| UI_ERR_PERMISSION | insufficient permissions |
| UI_ERR_CANCELLED | the dialog has been cancelled by callback or by displaying another dialog |
| UI_ERR_REGION | the region is not known |
| UI_ERR_FAIL | generic error |
| UI_ERR_UNSUPPORTED | the function requested is not supported on the current platform/device/... |
| UI_ERR_INVALID | an invalid transaction ID was provided |
| UI_ERR_WAIT_TIMEOUT | timeout while waiting for the result of an async function |
| UI_ERR_CONNECTION_LOST | lost connection to browser |
| UI_ERR_PROTOCOL | data received violated the protocol |
| UI_ERR_SCRIPT | error occurred during script processing, check uiScriptError() for more information about the error |
| UI_ERR_FILE_READ | the file was not found or could not be read |
| UI_ERR_RESTRICTED | the dialog was not shown due to security restrictions, e.g. using more than 3 buttons |
| UI_ERR_MODIFIED | the old layout does not match |
| UI_ERR_ACTION | invalid action provided |
| UI_ERR_DISPLAY | invalid display |
| UI_ERR_PIN_ENTRY_DENIED | requesting too many PIN sessions in a short period of time. |
| enum UILEDShape |
| enum UIMenuOptions |
| enum UIPropertyInt |
Int properties for configuring global GUI options
| enum UIPropertyString |
String properties for configuring global GUI options
| DllSpec const char* gui_GetSvcVersion | ( | int | display | ) |
returns a zero-terminated string with version and build information of guiserver/guiprtserver in ADK version string format: <major>.<minor>.<patch>-<build>, e.g. "1.2.3-4"
| [in] | display | display |
| DllSpec const char* gui_GetVersion | ( | ) |
returns a zero-terminated string with version and build information of libvfiguiprt in ADK version string format: <major>.<minor>.<patch>-<build>, e.g. "1.2.3-4"
| DllSpec int uiConfigLEDs | ( | UILEDShape | shape, |
| int | width, | ||
| int | height, | ||
| unsigned | off_rgba, | ||
| unsigned | on0_rgba, | ||
| unsigned | on1_rgba, | ||
| unsigned | on2_rgba, | ||
| unsigned | on3_rgba | ||
| ) |
set LED configuration. If present the LED area is cleared with the background color and the LEDs are drawn in off-state.
| [in] | shape | LED shape |
| [in] | width | width of a single LED |
| [in] | height | height of a single LED |
| [in] | off_rgba | color of the LED when switched off |
| [in] | on0_rgba | color of LED 0 when switched on |
| [in] | on1_rgba | color of LED 1 when switched on |
| [in] | on2_rgba | color of LED 2 when switched on |
| [in] | on3_rgba | color of LED 3 when switched on |
| DllSpec int uiConfigLEDs | ( | const char * | filename | ) |
set LED configuration from PNG file. The PNG file has to contain 5 LEDs next to each other. The first LED shows the off state, the remaining 4 LEDs show the on state of the 4 LEDs on screen. The alpha channel is supported to display non-rectangular LEDs. If present the LED area is cleared with the background color and the LEDs are drawn in off-state.
| [in] | filename | file name of the PNG image |
| DllSpec int uiConfirm | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Display an HTML confirmation dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiConfirmAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display an HTML confirmation dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiConfirmWait | ( | int | txn_id, |
| int | timeout_msec = -1 |
||
| ) |
Wait for the confirm dialog to finish
| [in] | txn_id | transaction id as returned by uiConfirmAsync() |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
| DllSpec std::string uiCurrentRegionPath | ( | int | display | ) |
Return the current region path that was constructed using uiEnterRegion(). The region path contains the regions passed on to successive calls of uiEnterRegion() separated by '/', e.g calling the sequence uiEnterRegion(1); uiEnterRegion(2); uiEnterRegion(3); the region path would be "1/2/3". If no region path is used, the empty string is returned.
| [in] | display | display |
| DllSpec int uiDisplay | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text | ||
| ) |
Display an HTML document on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| DllSpec int uiDisplay | ( | int | display, |
| int | region_id, | ||
| const std::string & | text | ||
| ) |
Display an HTML document on screen
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| DllSpec int uiDisplayAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display an HTML document on screen
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiDisplayAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display an HTML document on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiDisplayCount | ( | ) |
determine the number of displays
| DllSpec int uiDisplayWait | ( | int | txn_id, |
| int | timeout_msec = -1 |
||
| ) |
Wait for the result of the display
| [in] | txn_id | transaction id as returned by uiDisplayAsync() |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
| DllSpec int uiEnterRegion | ( | int | display, |
| int | region_id | ||
| ) |
Enter region region_id making it the parent region for all successive uiLayout() and uiGetLayout() commands. This is used to create a tree of regions.
| [in] | display | display |
| [in] | region_id | region ID |
| DllSpec const std::vector<UIErrorEntry>& uiErrorList | ( | ) |
obtain list of non-fatal errors that happened while displaying a dialog. In case of synchronous dialogs the error list is reset as part of displaying the dialog. In case of asynchronous dialogs this list is reset when displaying the dialog using one of the ui*Async functions and when calling uiInvokeWait (or one of the other ui*Wait functions)
| DllSpec int uiGetBacklightConfig | ( | int | display, |
| std::vector< UIBacklight > & | levels | ||
| ) |
read backlight parameters
| [in] | display | display |
| [out] | levels | backlight brightness levels and timeouts |
| DllSpec int uiGetBacklightLevel | ( | int | display, |
| int & | level | ||
| ) |
get backlight level
| [in] | display | display |
| [out] | level | current level in the range 0..levels.size()-1 |
| DllSpec std::string uiGetCatalog | ( | int | display | ) |
| [in] | display | display |
| DllSpec int uiGetHtml | ( | int | display, |
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | text, | ||
| std::string & | html | ||
| ) |
preprocess HTML code and return the resulting string
| [in] | display | display whose settings should be used (e.g. text catalog, css file, etc.) |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [out] | html | resulting HTML code |
| DllSpec int uiGetHtmlURL | ( | int | display, |
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | url, | ||
| std::string & | html | ||
| ) |
preprocess HTML code and return the resulting string
| [in] | display | display whose settings should be used (e.g. text catalog, css file, etc.) |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) unless an absolute path was provided. |
| [out] | html | resulting HTML code |
| DllSpec int uiGetIdleTime | ( | int | display = 0 | ) |
Determine the amount of time passed since the last user interaction.
| DllSpec int uiGetLayout | ( | int | display, |
| std::vector< UIRegion > & | region | ||
| ) |
read the current layout setting
| [in] | display | display |
| [out] | region | returned region layout |
| DllSpec bool uiGetLocalProperties | ( | ) |
| DllSpec unsigned uiGetLogMask | ( | void | ) |
Get log mask
| DllSpec int uiGetPropertyInt | ( | int | display, |
| enum UIPropertyInt | property, | ||
| int * | value | ||
| ) |
get int property
| [in] | display | display |
| [in] | property | property to be set |
| [out] | value | current value |
| DllSpec int uiGetPropertyString | ( | int | display, |
| enum UIPropertyString | property, | ||
| char * | value, | ||
| int | len | ||
| ) |
get string property
| [in] | display | display |
| [in] | property | property to be set |
| [out] | value | current value |
| [in] | len | size ouf output buffer value in bytes |
| DllSpec int uiGetPropertyString | ( | int | display, |
| enum UIPropertyString | property, | ||
| std::string & | value | ||
| ) |
get string property
| [in] | display | display |
| [in] | property | property to be set |
| [out] | value | current value |
| DllSpec std::string uiGetTerminalResourceDir | ( | int | display, |
| const std::string & | www_path | ||
| ) |
determine the HW dependent terminal specific subdirectory inside the 'www' directory
| [in] | display | display |
| [in] | www_path | path of the www directory containing the resource files |
| DllSpec std::string uiGetText | ( | int | display, |
| const std::string & | name, | ||
| const std::string & | deflt = "" |
||
| ) |
lookup a text from current loaded catalog by key name. If text is not found in catalog or no catalog is loaded the function returns value in in parameter default.
| [in] | display | display |
| [in] | name | of key used to lookup the text in calalog |
| [in] | deflt | text that is returned, if text is not found in calalog |
| DllSpec std::string uiGetURLPath | ( | int | display, |
| const std::string & | url | ||
| ) |
determine the full path of an url taking into account all settings and rules for looking up files
| [in] | display | display whose settings should be used (e.g. text catalog, css file, etc.) |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) unless an absolute path was provided. |
| DllSpec int uiHideLEDArea | ( | ) |
Decrement the LED area reference counter and hide the LED area if the counter reaches 0.
| DllSpec int uiHTML2PNG | ( | const char * | filename, |
| int | width, | ||
| int | height, | ||
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | text | ||
| ) |
convert a dialog to a PNG image
| [in] | filename | file name of the PNG file |
| [in] | width | width of the image |
| [in] | height | height of the image |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | text | HTML code |
| DllSpec int uiHTML2PNGData | ( | std::vector< unsigned char > & | data, |
| int | width, | ||
| int | height, | ||
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | text | ||
| ) |
convert a dialog to a PNG image
| [out] | data | data of PNG file |
| [in] | width | width of the image |
| [in] | height | height of the image |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | text | HTML code |
| DllSpec int uiInput | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| std::vector< std::string > & | value, | ||
| const std::string & | text, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Display an HTML input dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in,out] | value | initial value and returned value of the input fields. The first value refers to the first input field, the second to the second, etc. |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). The input fields have to be specified as HTML input fields (e.g. <input type='text' ...>). The following input types are supported:
|
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInputAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::vector< std::string > & | value, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display an HTML input dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | value | initial value of the input fields. The first value refers to the first input field, the second to the second, etc. |
| [in] | text | string containing an HTML fragment |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInputPINCheck | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | referencePIN, | ||
| const std::string & | text, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Display a PIN check dialog: The entered PIN is checkec against a known PIN
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | referencePIN | reference PIN |
| [in] | text | string containing an HTML fragment |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInputPINCheckAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | referencePIN, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display a PIN check dialog: The entered PIN is checkec against a known PIN
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment |
| [in] | referencePIN | reference PIN |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInputPINCheckWait | ( | int | txn_id, |
| int | timeout_msec = -1 |
||
| ) |
Wait for the PIN check dialog to finish
| [in] | txn_id | transaction id as returned by uiInputPINCheckAsync() |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
| DllSpec int uiInputWait | ( | int | txn_id, |
| std::vector< std::string > & | value, | ||
| int | timeout_msec = -1 |
||
| ) |
Wait for the input dialog to finish
| [in] | txn_id | transaction id as returned by uiInputAsync() |
| [in] | value | returned value of the input fields. The first value refers to the first input field, the second to the second, etc. |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
| DllSpec int uiInvoke | ( | int | display, |
| int | region_id, | ||
| stringmap & | value, | ||
| const std::string & | text, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Invoke an HTML dialog.
| [in] | display | display |
| [in] | region_id | region ID |
| [in,out] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. On return value contains the updated input values. |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInvokeAsync | ( | int | display, |
| int | region_id, | ||
| const stringmap & | value, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously invoke an HTML dialog.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInvokeCancel | ( | int | txn_id, |
| std::map< std::string, std::string > & | value | ||
| ) |
Cancel dialog. This may be called whenever uiInvokeWait() can be called and cancels the dialog.
| [in] | txn_id | Request ID of the dialog |
| [out] | value | entered values are added to this map |
|
inline |
the same as uiInvokeCancel(int txn_id, std::map<std::string,std::string> &value) but discards returned input values
| DllSpec int uiInvokeCancelAsync | ( | int | txn_id | ) |
Cancel dialog without reading the result, i.e. uiInvokeWait() will have to be called afterwards.
| [in] | txn_id | Request ID of the dialog |
| DllSpec int uiInvokeTemplate | ( | int | display, |
| int | region_id, | ||
| stringmap & | value, | ||
| const std::string & | template_name, | ||
| const std::string & | text, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Invoke an HTML dialog with template: The provided text is inserted into the template file and then displayed.
| [in] | display | display |
| [in] | region_id | region ID |
| [in,out] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. On return value contains the updated input values. |
| [in] | template_name | file name of template into which text is inserted |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInvokeTemplateAsync | ( | int | display, |
| int | region_id, | ||
| const stringmap & | value, | ||
| const std::string & | template_name, | ||
| const std::string & | text, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously invoke an HTML dialog. The provided text is inserted into the template file and then the dialog is displayed
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | template_name | template file |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInvokeURL | ( | int | display, |
| int | region_id, | ||
| stringmap & | value, | ||
| const char * | url, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
display a dialog
| [in] | display | display |
| [in] | region_id | region ID |
| [in,out] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. On return value contains the updated input values. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInvokeURL | ( | int | display, |
| int | region_id, | ||
| stringmap & | value, | ||
| const std::string & | url, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
display a dialog
| [in] | display | display |
| [in] | region_id | region ID |
| [in,out] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. On return value contains the updated input values. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiInvokeURLAsync | ( | int | display, |
| int | region_id, | ||
| const stringmap & | value, | ||
| const char * | url, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously invoke an HTML dialog
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInvokeURLAsync | ( | int | display, |
| int | region_id, | ||
| const stringmap & | value, | ||
| const std::string & | url, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously invoke an HTML dialog
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiInvokeURLDetached | ( | int | display, |
| int | region_id, | ||
| const char * | url | ||
| ) |
Create a new thread and display a dialog from within this thread. The thread terminates when the dialog terminates. Dialog return values are discarded.
| [in] | display | display |
| [in] | region_id | region id |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) |
| DllSpec int uiInvokeWait | ( | int | txn_id, |
| std::map< std::string, std::string > & | value, | ||
| int | timeout_msec = -1 |
||
| ) |
Wait for a dialog to finish
| [in] | txn_id | Request ID of the dialog |
| [out] | value | entered values are added to this map |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
|
inline |
the same as uiInvokeWait(int txn_id, std::map<std::string,std::string> &value, int timeout_msec=-1) but discards returned input values
| DllSpec int uiLayout | ( | int | display, |
| const UIRegion * | region, | ||
| int | regcnt, | ||
| const UIRegion * | oldreg, | ||
| int | oldregcnt | ||
| ) |
define output regions on the display. Region with id==0 is the default region. For incremental layout updates the previous layout may be provided to be checked before applying the new layout. If the previous layout does not match the current layout in guiserver, UI_ERR_MODIFIED is returned. This feature can be used to detect and prevent race conditions if several processes concurrently try to update a layout.
| [in] | display | display |
| [in] | region | array containing the regions, at least one region must be provided |
| [in] | regcnt | number of entries in region |
| [in] | oldreg | optional: if not NULL array containing the previous set of regions |
| [in] | oldregcnt | optional: number of entries in oldreg |
| DllSpec int uiLayout | ( | int | display, |
| const UIRegion * | region, | ||
| int | regcnt | ||
| ) |
shortcut for uiLayout(display, region,regcnt,0,0);
| DllSpec int uiLayout | ( | const UIRegion * | region, |
| int | regcnt | ||
| ) |
shortcut for uiLayout(0,region,regcnt,0,0);
|
inline |
define output regions on the display. Region with id==0 is the default region.
| [in] | display | display |
| [in] | reg | vector containing the regions, at least one region must be provided |
|
inline |
define output regions on the display. Region with id==0 is the default region. The old layout provided in oldreg must match the current layout in guiserver or the layout will not be updated and UI_ERR_MODIFIED will be returned.
| [in] | display | display |
| [in] | reg | vector containing the regions, at least one region must be provided |
| [in] | oldreg | vector containing the previous set of regions. |
| DllSpec int uiLayout | ( | int | display, |
| const char * | name | ||
| ) |
define output regions of the display. The layout definition is read from section name of gui.ini
| [in] | display | display |
| [in] | name | name of the layout section in gui.ini |
| DllSpec int uiLeaveRegion | ( | int | display | ) |
Ascend one level in the tree of regions.
| DllSpec const char* uiLibVersion | ( | ) |
read library version
| DllSpec int uiMenu | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text, | ||
| const struct UIMenuEntry | menu[], | ||
| int | menusize, | ||
| int | preselect, | ||
| uiCallback | cb = 0, |
||
| void * | cbdata = 0 |
||
| ) |
Display an HTML menu dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and lt;/body>). |
| [in] | menu | array containing menu entries |
| [in] | menusize | number of entries in the array |
| [in] | preselect | value of the menu entry to be preselected. |
| [in] | cb | optional callback function |
| [in] | cbdata | data pointer passed on to the callback function |
| DllSpec int uiMenuAsync | ( | int | display, |
| int | region_id, | ||
| const std::string & | templateName, | ||
| const std::string & | text, | ||
| const struct UIMenuEntry | menu[], | ||
| int | menusize, | ||
| int | preselect, | ||
| uiAsyncCallback | cb = 0, |
||
| void * | data = 0 |
||
| ) |
Asynchronously display an HTML menu dialog on screen using a template file.
| [in] | display | display |
| [in] | region_id | region ID |
| [in] | templateName | name of a template file. The HTML code found in text is inserted into the template |
| [in] | text | string containing an HTML fragment (i.e. the part between <body> and </body>). |
| [in] | menu | array containing menu entries |
| [in] | menusize | number of entries in the array |
| [in] | preselect | value of the menu entry to be preselected. |
| [in] | cb | optional callback function that is called when the dialog has returned |
| [in] | data | data pointer that is passed on to the callback function |
| DllSpec int uiMenuWait | ( | int | txn_id, |
| int | timeout_msec = -1 |
||
| ) |
Wait for the menu dialog to finish
| [in] | txn_id | transaction id as returned by uiMenuAsync() |
| [in] | timeout_msec | timeout in milliseconds. In case of a negative timeout wait forever. |
| DllSpec std::string uiPrint | ( | const char * | format, |
| ... | |||
| ) |
perform printf-like formatting.
| [in] | format | printf-like format string. It supports the commonly known format specifiers 's', 'i', 'd', 'u', 'o', 'x', 'X', 'p', 'c', 'f', 'e', 'g'. In addition the following format specifiers are supported:
|
| DllSpec std::string uiPrintV | ( | const char * | format, |
| va_list | va | ||
| ) |
perfom printf-like formatting. This is the same as uiPrint() just taking a va_list instead of a variable number of arguments
| DllSpec void uiReadConfig | ( | int | display | ) |
re-read configuration from file gui.ini from within the resource directory associated with a display
| [in] | display | display |
| DllSpec int uiScreenshotPNG | ( | int | display, |
| const char * | filename | ||
| ) |
take a screenshot and save as PNG file
| [in] | display | display |
| [in] | filename | file name |
| DllSpec int uiScreenshotPNGData | ( | int | display, |
| std::vector< unsigned char > & | data | ||
| ) |
take a screenshot and return PNG data in vector
| [in] | display | display |
| [out] | data | data of PNG file |
| DllSpec std::string uiScriptError | ( | ) |
Obtain script error message
| DllSpec int uiSetBacklightConfig | ( | int | display, |
| const std::vector< UIBacklight > & | levels | ||
| ) |
set up backlight parameters
| [in] | display | display |
| [in] | levels | backlight brightness levels and timeouts. The entries in the vectore are considered to represent decreasing brightness, i.e. levels[0] represents maximum brighness and levels[levels.size()-1] represents minimum brightness. |
| DllSpec int uiSetBacklightLevel | ( | int | display, |
| int | level | ||
| ) |
set backlight level to one of the levels defined using uiSetBacklightParam
| [in] | display | display |
| [in] | level | new level in the range 0..levels.size()-1 |
| DllSpec int uiSetCatalog | ( | int | display, |
| const std::string & | filename | ||
| ) |
load and set a catalog file containing name-value text pairs to be inserted with HTML placeholder <?text name?>. The current catalog is unloaded with filename=="" or by loading another catalog file.
| [in] | display | display |
| [in] | filename | of the catalog, empty string to unload the current dialog |
| DllSpec int uiSetCurrentRegionPath | ( | int | display, |
| const std::string & | path | ||
| ) |
set region path.
| [in] | display | display |
| [in] | path | absolute region path to be set |
| DllSpec int uiSetLED | ( | unsigned | led, |
| bool | state | ||
| ) |
switch led on/off
| [in] | led | led number (0..3) |
| [in] | state | on (true) or off (false) |
| DllSpec void uiSetLocalProperties | ( | bool | local | ) |
de-/activate thread local properties for the current thread. Activating thread local properties initially copies the global properties to the current thread.
| [in] | local | if true activate thread local properties, if false discard them |
| DllSpec void uiSetLogMask | ( | unsigned | mask | ) |
Set log mask
| [in] | mask | logging mask (see GUI_LOGMASK) |
| DllSpec int uiSetPropertyInt | ( | int | display, |
| enum UIPropertyInt | property, | ||
| int | value | ||
| ) |
set int property
| [in] | display | display |
| [in] | property | property to be set |
| [in] | value | new value |
| DllSpec int uiSetPropertyString | ( | int | display, |
| enum UIPropertyString | property, | ||
| const char * | value | ||
| ) |
set string property
| [in] | display | display |
| [in] | property | property to be set |
| [in] | value | new value |
|
inline |
set string property
| [in] | display | display |
| [in] | property | property to be set |
| [in] | value | new value |
| DllSpec int uiSetTransition | ( | int | display, |
| int | region_id, | ||
| unsigned | transtype, | ||
| int | duration_ms | ||
| ) |
set the transition type for a region
| [in] | display | display |
| [in] | region_id | region id; |
| [in] | transtype | transition type |
| [in] | duration_ms | duration for the transition in milliseconds, ignored for UI_TRANS_NONE which is the default transition type. |
| DllSpec int uiShowLEDArea | ( | UIEdge | edge, |
| int | width, | ||
| int | height, | ||
| unsigned | bg_rgba | ||
| ) |
show virtual LEDs on the display and/or increment the LED area reference counter. The LED area is cleared with the background color and the LEDs are drawn in off-state.
| [in] | edge | selects edge of the display at which to reserve some room. UI_EDGE_OFF removes the LED area |
| [in] | width | width of the area |
| [in] | height | height of the area |
| [in] | bg_rgba | background color in RGBA format (alpha channel is ignored) |
| DllSpec const UIStatistics& uiStatistics | ( | ) |
obtain statistics information for the last completed dialog. In case of synchronous dialogs the statistics information is reset as part of displaying the dialog. In case of asynchronous dialogs this information is reset as part of calling uiInvokeWait (or one of the other ui*Wait functions)
| DllSpec int uiURL2PNG | ( | const char * | filename, |
| int | width, | ||
| int | height, | ||
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | url | ||
| ) |
convert a dialog to a PNG image
| [in] | filename | file name of the PNG file |
| [in] | width | width of the image |
| [in] | height | height of the image |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) unless an absolute path was provided. |
| DllSpec int uiURL2PNGData | ( | std::vector< unsigned char > & | data, |
| int | width, | ||
| int | height, | ||
| const std::map< std::string, std::string > & | value, | ||
| const std::string & | url | ||
| ) |
convert a dialog to a PNG image
| [out] | data | data of PNG file |
| [in] | width | width of the image |
| [in] | height | height of the image |
| [in] | value | name value pairs that are used as initial value of input fields, checkboxes, etc. and that are used during script processing. |
| [in] | url | location of the dialog file. The location is prefixed by the resource path and by the optional prefix (see also UI_PROP_RESOURCE_PATH, UI_PROP_FILE_PREFIX) unless an absolute path was provided. |