


When creating a subclass, each functions (except GetName() and Changed()) must be implemented by the subclass! Subclasses (as described below) or implement your own to map the data type of your choice the one of the base data types using a subclass of ConfigItem. choice (which is a combination of an integer as index and a array with available choices).ĭon't use ConfigItem direktly (however, because of the pure virutal functions the compiler don't let you do so).Instead an empty string for that items will be send). Passwords can only be received from the JSON APIĪnd only in an encrypted way.
Idatabase base clas undefined password#
password (which is a string with a flag given on initialization to define it as password.64bit integers (singed and unsigned - but take care with 64bit integers because of the not-that-good support of them on JavaScript).

Types supported by the ConfigContext are: Handling that item on the JSON API side is undefined. If an app whants to create an own config item class, it needs to provide one of the default data types to ConfigContext anyway. Also, because of the internals, ConfigContext mustīe a friend class for the new config item as well (the other classes don't need to, that's only used internally for the ConfigItem base class). But if there is need, an own config item must be derived from ConfigItem. Generally there is no need to create an own config item, because the config library provides config itemsįor the most use cases. This is the base class for each config item. The JavaScript config library are handling all of the communication, so there is no need for an app to worry about that.Ĭlasses ConfigContext class ConfigContext : public UTask, public UJsonApiContext, public UConfigContextApi Now the appliction service and the JavaScript app only need to access the items or changed and save them (especially from the JavaScript side). Add ConfigItem members to your class and initialize them passing the ConfigContext instance (see the description of the ConfigItems classes.
Idatabase base clas undefined free#
