Public Member Functions | |
| void | CleanEntry (string section, string key) |
| void | CleanSection (string section) |
| void | CleanSectionSuite (string section) |
| string | Dump () |
| string | DumpAsXml () |
| bool | GetBool (string section, string key, bool defaultValue) |
| float | GetDefaultFloat (string section, string key, float defaultValue) |
| int | GetDefaultInt (string section, string key, int defaultValue) |
| int | GetDefaultInt64 (string section, string key, int defaultValue) |
| string | GetDefaultString (string section, string key, string defaultValue) |
| float | GetFloat (string section, string key, float defaultValue) |
| int | GetInt (string section, string key, int defaultValue) |
| int | GetInt64 (string section, string key, int defaultValue) |
| IEnumerable< string > | GetKeysNamesList (string section) |
| bool | GetOverwriteFlagForEntry (string section, string key) |
| bool | GetOverwriteFlagForSection (string section) |
| bool | GetRange (string section, string key, int min, int max, int defaultMin, int defaultMax) |
| string | GetSectionParamString (string section, string key, string defaultValue) |
| bool | GetSkipFlagForEntry (string section, string key) |
| bool | GetSkipFlagForSection (string section) |
| string | GetString (string section, string key, string defaultString) |
| IEnumerable< string > | GetStringList (string section, string key, IEnumerable< string > defaultList) |
| int | HasEntry (string section, string key) |
| int | HasSection (string section) |
| string | LoadFromXmlFile (string filename) |
| void | LoadFromXmlString (string buffer) |
| void | ReadFile (string filename) |
| bool | RelativeFileExists (string filename) |
| void | Reload () |
| void | SetBool (string section, string key, bool val) |
| void | SetFloat (string section, string key, float val) |
| void | SetInt (string section, string key, int val) |
| void | SetInt64 (string section, string key, int val) |
| void | SetIntHex (string section, string key, int val) |
| void | SetOverwriteFlagForEntry (string section, string key, bool val) |
| void | SetOverwriteFlagForSection (string section, bool val) |
| void | SetRange (string section, string key, int minValue, int maxValue) |
| void | SetSkipFlagForEntry (string section, string key, bool val) |
| void | SetSkipFlagForSection (string section, bool val) |
| void | SetString (string section, string key, string val) |
| void | SetStringList (string section, string key, IEnumerable< string > val) |
| void | Sync () |
| void | WriteRelativeFile (string filename, string data) |
Static Public Member Functions | |
| static Linphone.Config | NewFromBuffer (string buffer) |
| static Linphone.Config | NewWithFactory (string configFilename, string factoryConfigFilename) |
Properties | |
| bool | IsReadonly [get] |
| IEnumerable< string > | SectionsNamesList [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Linphone.LinphoneObject | |
| static String | linphone_pointer_to_string (IntPtr ptr) |
| static IntPtr | linphone_string_to_pointer ([MarshalAs(LinphoneWrapper.ByteStringMarshalling)] String str) |
| IntPtr | StringArrayToBctbxList (IEnumerable< string > stringlist) |
| void | CleanStringArrayPtrs (IntPtr l) |
This object is used to manipulate a configuration file.
The format of the configuration file is a .ini like format: -sections are defined in [] -each section contains a sequence of key=value pairs -each line starting by a # is a comment Various types can be used: strings and lists of strings, integers, floats, booleans (written as 0 or 1) and range of integers. Usually a Linphone.Core is initialized using two Linphone.Config, one default (where configuration changes through API calls will be saved) and one named 'factory' which is read-only and overwrites any setting that may exists in the default one. It is also possible to use only one (either default or factory) or even none.
|
inline |
Removes entries for key,value in a section.
| section | the section for which to clean the key entry |
| key | the key to clean |
|
inline |
Removes every pair of key,value in a section and remove the section.
| section | the section to clean |
|
inline |
Removes a suite of sections whose name is derived from section argument, suffixed with _0, _1, _2 etc.
This is a common representation for configuration objects that can have multiple instances.
|
inline |
Dumps the Linphone.Config as INI into a buffer.
|
inline |
Dumps the Linphone.Config as XML into a buffer.
|
inline |
Retrieves a configuration item as a boolean, given its section, key, and default value.
The default boolean value is returned if the config item isn't found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a default configuration item as a float, given its section, key, and default value.
The default float value is returned if the config item isn't found.
| section | The section from which to retrieve the default value |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a default configuration item as an integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
| section | The section from which to retrieve the default value |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a default configuration item as a 64 bit integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
| section | The section from which to retrieve the default value |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a default configuration item as a string, given its section, key, and default value.
The default value string is returned if the config item isn't found.
| section | The section from which to retrieve the default value |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a configuration item as a float, given its section, key, and default value.
The default float value is returned if the config item isn't found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a configuration item as an integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Retrieves a configuration item as a 64 bit integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found |
|
inline |
Returns the list of keys' names for a section in the LinphoneConfig.
| section | The section name |
|
inline |
Retrieves the overwrite flag for a config item.
| section | The section from which to retrieve the overwrite flag |
| key | The name of the configuration item to retrieve the overwrite flag from. |
|
inline |
Retrieves the overwrite flag for a config section.
| section | The section from which to retrieve the overwrite flag |
|
inline |
Retrieves a configuration item as a range, given its section, key, and default min and max values.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| min | The min value found or default_min |
| max | The max value found or default_max |
| defaultMin | the default min value to return if not found |
| defaultMax | the default max value to return if not found. |
|
inline |
Retrieves a section parameter item as a string, given its section and key.
The default value string is returned if the config item isn't found.
| section | The section from which to retrieve the default value |
| key | The name of the configuration item to retrieve |
| defaultValue | The default value to return if not found. |
|
inline |
Retrieves the skip flag for a config item.
| section | The section from which to retrieve the skip flag |
| key | The name of the configuration item to retrieve the skip flag from |
|
inline |
Retrieves the skip flag for a config section.
| section | The section from which to retrieve the skip flag |
|
inline |
Retrieves a configuration item as a string, given its section, key, and default value.
The default value string is returned if the config item isn't found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultString | The default value to return if not found. |
|
inline |
Retrieves a configuration item as a list of strings, given its section, key, and default value.
The default value is returned if the config item is not found.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| defaultList | The list to return when the key doesn't exist. A list of const char * objects. |
|
inline |
Returns if a given section with a given key is present in the configuration.
| section | to check if the given entry exists |
| key | to check if it exists |
|
inline |
Returns if a given section is present in the configuration.
| section | the section to check if exists |
|
inline |
Reads a xml config file and fill the Linphone.Config with the read config dynamic values.
| filename | The filename of the config file to read to fill the Linphone.Config |
|
inline |
Reads a xml config string and fill the Linphone.Config with the read config dynamic values.
| buffer | The string of the config file to fill the Linphone.Config |
|
inlinestatic |
Instantiates a Linphone.Config object from a user provided buffer.
The caller of this constructor owns a reference. linphone_config_unref must be called when this object is no longer needed.
| buffer | the buffer from which the Linphone.Config will be retrieved. We expect the buffer to be null-terminated. |
See : Linphone.Config.NewWithFactory()
See : linphone_config_new
|
inlinestatic |
Instantiates a Linphone.Config object from a user config file and a factory config file.
The caller of this constructor owns a reference. linphone_config_unref must be called when this object is no longer needed.
| configFilename | the filename of the user config file to read to fill the instantiated Linphone.Config |
| factoryConfigFilename | the filename of the factory config file to read to fill the instantiated Linphone.Config |
See : linphone_config_new
The user config file is read first to fill the Linphone.Config and then the factory config file is read. Therefore the configuration parameters defined in the user config file will be overwritten by the parameters defined in the factory config file.
|
inline |
Reads a user config file and fill the Linphone.Config with the read config values.
| filename | The filename of the config file to read to fill the Linphone.Config |
|
inline |
Check if given file name exists relatively to the current location.
| filename | The file name to check if exists |
|
inline |
Reload the config from the file.
|
inline |
Sets a boolean config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | the value to set |
|
inline |
Sets a float config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | the value to set |
|
inline |
Sets an integer config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | the value to set |
|
inline |
Sets a 64 bits integer config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | the value to set |
|
inline |
Sets an integer config item, but store it as hexadecimal.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | the value to set |
|
inline |
Sets the overwrite flag for a config item (used when dumping config as xml)
| section | The section from which to set the overwrite flag |
| key | The name of the configuration item to set the overwrite flag from |
| val | The overwrite flag value to set |
|
inline |
Sets the overwrite flag for a config section (used when dumping config as xml)
| section | The section from which to set the overwrite flag |
| val | The overwrite flag value to set |
|
inline |
Sets a range config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| minValue | the min value to set |
| maxValue | the max value to set |
|
inline |
Sets the skip flag for a config item (used when dumping config as xml)
| section | The section from which to set the skip flag |
| key | The name of the configuration item to set the skip flag from |
| val | The skip flag value to set |
|
inline |
Sets the skip flag for a config section (used when dumping config as xml)
| section | The section from which to set the skip flag |
| val | The skip flag value to set |
|
inline |
Sets a string config item.
| section | The section from which to retrieve a configuration item |
| key | The name of the configuration item to retrieve |
| val | The value to set |
|
inline |
Sets a string list config item.
| section | The name of the section to put the configuration item into |
| key | The name of the configuration item to set |
| val | The value to set. A list of const char * objects. |
|
inline |
Writes the config file to disk.
|
inline |
Write a string in a file placed relatively with the Linphone configuration file.
| filename | Name of the file where to write data. The name is relative to the place of the config file |
| data | String to write |
|
get |
Indicates whether the LinphoneConfig object is readonly, in other words it has no file backend or file is opened without write permission.
|
get |
Returns the list of sections' names in the LinphoneConfig.