![]() |
HTMLGUI
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 | |
| const char * | gui_GetSvcVersion (int display) |
| const char * | gui_GetVersion () |
| int | uiConfigLEDs (UILEDShape shape, int width, int height, unsigned off_rgba, unsigned on0_rgba, unsigned on1_rgba, unsigned on2_rgba, unsigned on3_rgba) |
| int | uiConfigLEDs (const char *filename) |
| int | uiConfirm (int display, int region_id, const std::string &templateName, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| int | uiConfirmAsync (int display, int region_id, const std::string &templateName, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| int | uiConfirmWait (int txn_id, int timeout_msec=-1) |
| std::string | uiCurrentRegionPath (int display) |
| int | uiDisplay (int display, int region_id, const std::string &templateName, const std::string &text) |
| int | uiDisplay (int display, int region_id, const std::string &text) |
| int | uiDisplayAsync (int display, int region_id, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| int | uiDisplayAsync (int display, int region_id, const std::string &templateName, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| int | uiDisplayCount () |
| int | uiDisplayWait (int txn_id, int timeout_msec=-1) |
| int | uiEnterRegion (int display, int region_id) |
| const std::vector< UIErrorEntry > & | uiErrorList () |
| int | uiGetBacklightConfig (int display, std::vector< UIBacklight > &levels) |
| int | uiGetBacklightLevel (int display, int &level) |
| std::string | uiGetCatalog (int display) |
| int | uiGetHtml (int display, const std::map< std::string, std::string > &value, const std::string &text, std::string &html) |
| int | uiGetHtmlURL (int display, const std::map< std::string, std::string > &value, const std::string &url, std::string &html) |
| int | uiGetIdleTime (int display=0) |
| int | uiGetLayout (int display, std::vector< UIRegion > ®ion) |
| bool | uiGetLocalProperties () |
| unsigned | uiGetLogMask (void) |
| int | uiGetPropertyInt (int display, enum UIPropertyInt property, int *value) |
| int | uiGetPropertyString (int display, enum UIPropertyString property, char *value, int len) |
| int | uiGetPropertyString (int display, enum UIPropertyString property, std::string &value) |
| std::string | uiGetTerminalResourceDir (int display, const std::string &www_path) |
| std::string | uiGetText (int display, const std::string &name, const std::string &deflt="") |
| std::string | uiGetURLPath (int display, const std::string &url) |
| int | uiHideLEDArea () |
| int | uiHTML2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &text) |
| int | uiHTML2PNGData (std::vector< unsigned char > &data, int width, int height, const std::map< std::string, std::string > &value, const std::string &text) |
| 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) |
| 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) |
| 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) |
| 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) |
| int | uiInputPINCheckWait (int txn_id, int timeout_msec=-1) |
| int | uiInputWait (int txn_id, std::vector< std::string > &value, int timeout_msec=-1) |
| int | uiInvoke (int display, int region_id, stringmap &value, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| int | uiInvokeAsync (int display, int region_id, const stringmap &value, const std::string &text, uiAsyncCallback cb=0, void *data=0) |
| int | uiInvokeCancel (int txn_id, std::map< std::string, std::string > &value) |
| int | uiInvokeCancel (int txn_id) |
| int | uiInvokeCancelAsync (int txn_id) |
| int | uiInvokeTemplate (int display, int region_id, stringmap &value, const std::string &template_name, const std::string &text, uiCallback cb=0, void *cbdata=0) |
| 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) |
| int | uiInvokeURL (int display, int region_id, stringmap &value, const char *url, uiCallback cb=0, void *cbdata=0) |
| int | uiInvokeURL (int display, int region_id, stringmap &value, const std::string &url, uiCallback cb=0, void *cbdata=0) |
| int | uiInvokeURLAsync (int display, int region_id, const stringmap &value, const char *url, uiAsyncCallback cb=0, void *data=0) |
| int | uiInvokeURLAsync (int display, int region_id, const stringmap &value, const std::string &url, uiAsyncCallback cb=0, void *data=0) |
| int | uiInvokeURLDetached (int display, int region_id, const char *url) |
| 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) |
| int | uiLayout (int display, const UIRegion *region, int regcnt, const UIRegion *oldreg, int oldregcnt) |
| int | uiLayout (int display, const UIRegion *region, int regcnt) |
| 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) |
| int | uiLayout (int display, const char *name) |
| int | uiLeaveRegion (int display) |
| const char * | uiLibVersion () |
| 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) |
| 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) |
| int | uiMenuWait (int txn_id, int timeout_msec=-1) |
| std::string | uiPrint (const char *format,...) |
| std::string | uiPrintV (const char *format, va_list va) |
| void | uiReadConfig (int display) |
| int | uiScreenshotPNG (int display, const char *filename) |
| int | uiScreenshotPNGData (int display, std::vector< unsigned char > &data) |
| std::string | uiScriptError () |
| int | uiSetBacklightConfig (int display, const std::vector< UIBacklight > &levels) |
| int | uiSetBacklightLevel (int display, int level) |
| int | uiSetCatalog (int display, const std::string &filename) |
| int | uiSetCurrentRegionPath (int display, const std::string &path) |
| int | uiSetLED (unsigned led, bool state) |
| void | uiSetLocalProperties (bool local) |
| void | uiSetLogMask (unsigned mask) |
| int | uiSetPropertyInt (int display, enum UIPropertyInt property, int value) |
| int | uiSetPropertyString (int display, enum UIPropertyString property, const char *value) |
| int | uiSetPropertyString (int display, enum UIPropertyString property, const std::string &value) |
| int | uiSetTransition (int display, int region_id, unsigned transtype, int duration_ms) |
| int | uiShowLEDArea (UIEdge edge, int width, int height, unsigned bg_rgba) |
| const UIStatistics & | uiStatistics () |
| int | uiURL2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &url) |
| 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
| 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 |
| 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"
| 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 |
| 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 |
| 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 |
| 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 |
| 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. |
| 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 |
| 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>). |
| 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>). |
| 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 |
| 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 |
| int uiDisplayCount | ( | ) |
determine the number of displays
| 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. |
| 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 |
| 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)
| int uiGetBacklightConfig | ( | int | display, |
| std::vector< UIBacklight > & | levels | ||
| ) |
read backlight parameters
| [in] | display | display |
| [out] | levels | backlight brightness levels and timeouts |
| int uiGetBacklightLevel | ( | int | display, |
| int & | level | ||
| ) |
get backlight level
| [in] | display | display |
| [out] | level | current level in the range 0..levels.size()-1 |
| std::string uiGetCatalog | ( | int | display | ) |
| [in] | display | display |
| 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 |
| 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 |
| int uiGetIdleTime | ( | int | display = 0 | ) |
Determine the amount of time passed since the last user interaction.
| int uiGetLayout | ( | int | display, |
| std::vector< UIRegion > & | region | ||
| ) |
read the current layout setting
| [in] | display | display |
| [out] | region | returned region layout |
| bool uiGetLocalProperties | ( | ) |
| unsigned uiGetLogMask | ( | void | ) |
Get log mask
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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. |
| int uiHideLEDArea | ( | ) |
Decrement the LED area reference counter and hide the LED area if the counter reaches 0.
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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. |
| 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. |
| 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 |
| 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 |
| 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
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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) |
| 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
| 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 |
| int uiLayout | ( | int | display, |
| const UIRegion * | region, | ||
| int | regcnt | ||
| ) |
shortcut for uiLayout(display, region,regcnt,0,0);
| 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. |
| 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 |
| int uiLeaveRegion | ( | int | display | ) |
Ascend one level in the tree of regions.
| const char* uiLibVersion | ( | ) |
read library version
| 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 |
| 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 |
| 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. |
| 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:
|
| 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
| void uiReadConfig | ( | int | display | ) |
re-read configuration from file gui.ini from within the resource directory associated with a display
| [in] | display | display |
| int uiScreenshotPNG | ( | int | display, |
| const char * | filename | ||
| ) |
take a screenshot and save as PNG file
| [in] | display | display |
| [in] | filename | file name |
| 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 |
| std::string uiScriptError | ( | ) |
Obtain script error message
| 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. |
| 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 |
| 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 |
| int uiSetCurrentRegionPath | ( | int | display, |
| const std::string & | path | ||
| ) |
set region path.
| [in] | display | display |
| [in] | path | absolute region path to be set |
| int uiSetLED | ( | unsigned | led, |
| bool | state | ||
| ) |
switch led on/off
| [in] | led | led number (0..3) |
| [in] | state | on (true) or off (false) |
| 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 |
| void uiSetLogMask | ( | unsigned | mask | ) |
Set log mask
| [in] | mask | logging mask (see GUI_LOGMASK) |
| 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 |
| 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 |
| 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. |
| 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) |
| 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)
| 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. |
| 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. |