HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
config.c File Reference

Configuration object. More...

#include <string.h>
#include "techtype.h"
#include "hbbtv_js.h"
#include "hbbtv_sif_os.h"
#include "hbbtv_sif_conf.h"
#include "object.h"
#include "hbbtv_string.h"
#include "hbbtv_internal.h"
#include "debug.h"

Functions

void * HBBTV_JSConfig_getPreferredAudioLang (void *obj)
 String preferredAudioLanguage, Section 7.3.2.1. More...
 
void * HBBTV_JSConfig_getPreferredSubtitleLang (void *obj)
 String preferredSubtitleLanguage, Section 7.3.2.1. More...
 
void * HBBTV_JSConfig_getPreferredUILang (void *obj)
 String preferredUILanguage, Section 7.3.2.1. String data is valid only while the Configuration object is valid. More...
 
void * HBBTV_JSConfig_getCountryId (void *obj)
 String countryId, Section 7.3.2.1. String data is valid only while the Configuration object is valid. More...
 
void * HBBTV_JSConfig_getPostcode (void *obj)
 readonly String postcode, Freesat OPAL v1.0, section 8.4.1.1. More...
 
S8BIT HBBTV_JSConfig_getSpeechDescriptionEnabled (void *obj)
 readonly Boolean speechDescriptionEnabled, Freesat OPAL v1.0, section 8.4.1.2. More...
 
S8BIT HBBTV_JSConfig_getVoiceControlEnabled (void *obj)
 readonly Boolean voiceControlEnabled, Freesat OPAL v1.0, section 8.4.1.3. More...
 
U8BIT HBBTV_JSConfig_getTerminalMode (void *obj)
 readonly Integer terminalMode, Freesat OPAL v1.0, section 8.4.1.4 More...
 

Variables

void * JS_CONFIG_CLASS = &s_vtab
 

Detailed Description

Configuration object.

Date
01/01/2013
Author
Adam Sturtridge

Function Documentation

void* HBBTV_JSConfig_getCountryId ( void *  obj)

String countryId, Section 7.3.2.1. String data is valid only while the Configuration object is valid.

Returns
Handle to JSString object
Note
String countryId
Section 7.3.2.1
void* HBBTV_JSConfig_getPostcode ( void *  obj)

readonly String postcode, Freesat OPAL v1.0, section 8.4.1.1.

Parameters
objConfigure object
Returns
String object
void* HBBTV_JSConfig_getPreferredAudioLang ( void *  obj)

String preferredAudioLanguage, Section 7.3.2.1.

Returns
Handle to JSString object
Note
String preferredAudioLanguage
Section 7.3.2.1
void* HBBTV_JSConfig_getPreferredSubtitleLang ( void *  obj)

String preferredSubtitleLanguage, Section 7.3.2.1.

Returns
Handle to JSString object
Note
String preferredSubtitleLanguage
Section 7.3.2.1
void* HBBTV_JSConfig_getPreferredUILang ( void *  obj)

String preferredUILanguage, Section 7.3.2.1. String data is valid only while the Configuration object is valid.

Returns
Handle to JSString object
Note
String preferredUILanguage
Section 7.3.2.1
S8BIT HBBTV_JSConfig_getSpeechDescriptionEnabled ( void *  obj)

readonly Boolean speechDescriptionEnabled, Freesat OPAL v1.0, section 8.4.1.2.

Parameters
objConfigure object
Returns
-1 if the terminal does not support speech description, 0 if speech description is disabled, 1 if speech description is enabled
U8BIT HBBTV_JSConfig_getTerminalMode ( void *  obj)

readonly Integer terminalMode, Freesat OPAL v1.0, section 8.4.1.4

Parameters
objConfigure object
S8BIT HBBTV_JSConfig_getVoiceControlEnabled ( void *  obj)

readonly Boolean voiceControlEnabled, Freesat OPAL v1.0, section 8.4.1.3.

Parameters
objConfigure object
Returns
-1 if the terminal does not support voice control, 0 if voice control is disabled, 1 if voice control is enabled