Grl.Config¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Grl.Config(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(plugin, source)¶
- Parameters:
- Returns:
a newly-allocated data config. The data config associated with the plugin should not be freed until the plugin has been unloaded.
- Return type:
Creates a new data config object that will be associated with a plugin (if source is
None
), or a specific source spawned from a plugin (if source is notNone
). The latter may be useful for plugins spawning various sources, each one needing a different configuration.New in version 0.1.4.
- get_api_key_blob(size)¶
- Parameters:
size (
int
) – pointer to size of data- Returns:
the binary API key, size will reflect the size of the buffer
- Return type:
New in version 0.1.9.
- get_api_token_secret()¶
- Returns:
the webservice API token secret (Needed by OAuth)
- Return type:
New in version 0.2.6.
- get_binary(param, size)¶
- Parameters:
- Returns:
param value
- Return type:
Gets the value of param encoded as base64. If size is not
None
, it puts there the size of the value.New in version 0.1.9.
- get_boolean(param)¶
-
New in version 0.1.8.
- get_float(param)¶
-
New in version 0.1.5.
- get_int(param)¶
-
New in version 0.1.5.
- get_string(param)¶
-
New in version 0.1.5.
- has_param(param)¶
- Parameters:
param (
str
) – the param- Returns:
True
if params has a defined value within self,False
otherwise.- Return type:
New in version 0.1.8.
- set(param, value)¶
- Parameters:
param (
str
) – a parametervalue (
GObject.Value
) – value
Set param value.
New in version 0.1.5.
- set_api_key(key)¶
- Parameters:
key (
str
) – the API key
Set the webservice API key in the configuration
New in version 0.1.4.
- set_api_key_blob(blob, size)¶
-
Set the binary API key in the configuration
New in version 0.1.9.
- set_api_secret(secret)¶
- Parameters:
secret (
str
) – the webservice passphrase
Set the webservice passphrase in the configuration
New in version 0.1.4.
- set_api_token(token)¶
- Parameters:
token (
str
) – the API token
Set the webservice API token in the configuration
New in version 0.1.4.
- set_api_token_secret(secret)¶
- Parameters:
secret (
str
) – the API token
Set the webservice API token secret in the configuration (Needed by OAuth)
New in version 0.2.6.
- set_binary(param, blob, size)¶
- Parameters:
Set param value.
New in version 0.1.9.
- set_boolean(param, value)¶
-
Set param value.
New in version 0.1.8.
- set_float(param, value)¶
-
Set param value.
New in version 0.1.5.
- set_int(param, value)¶
-
Set param value.
New in version 0.1.5.
- set_password(password)¶
- Parameters:
password (
str
) – the password
Set the password in the configuration
New in version 0.1.8.
- set_plugin(plugin)¶
- Parameters:
plugin (
str
) – the plugin id
Set the plugin key in the configuration
New in version 0.1.4.
- set_source(source)¶
- Parameters:
source (
str
) – the source id
Set the source key in the configuration
New in version 0.1.4.
- set_string(param, value)¶
-
Set param value.
New in version 0.1.5.