Wp.StateMetadata¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The file name where the state metadata will be stored |
||
r/w |
The timeout in milliseconds to save the state metadata |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Wp.StateMetadata(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Wp.StateMetadataclass saves and loads properties from a file and reflects the state in a metadata object.- classmethod new(core, name)¶
- Parameters:
- Returns:
the new
Wp.StateMetadata- Return type:
Constructs a new state metadata object.
- clear()¶
Clears the state metadata and removes its file.
If the state metadata has not been loaded, this won’t do anything.
- get(key)¶
- Parameters:
key (
str) – the key of the value- Returns:
the value from the state metadata, or
Noneif not found.- Return type:
Gets a value from the state metadata.
If the state metadata has not been loaded, this won’t do anything.
- get_location()¶
- Returns:
the location of this state metadata
- Return type:
Gets the location of a state metadata object.
- get_name()¶
- Returns:
the name of this state metadata
- Return type:
Gets the name of a state metadata object.
Property Details¶
- Wp.StateMetadata.props.name¶
- Name:
name- Type:
- Default Value:
- Flags:
The file name where the state metadata will be stored