State Storage
The WpState class saves and loads properties from a file
WpState
GObject
╰──WpState
Class structure
WpStateClass
Fields
parent_class
(GObjectClass)
–
Constructors
Methods
wp_state_clear
wp_state_clear (WpState * self)
Clears the state removing its file
Parameters:
self
–
the state
wp_state_get_location
const gchar* wp_state_get_location (WpState * self)
Parameters:
self
–
the state
Returns
–
the location of this state
wp_state_get_name
const gchar* wp_state_get_name (WpState * self)
Parameters:
self
–
the state
Returns
–
the name of this state
wp_state_load
WpProperties * wp_state_load (WpState * self, const gchar* group)
Loads the state data into new properties.
Returns (transfer full): the new properties with the state data
Parameters:
self
–
the state
group
–
the group which the properties will be loaded from
Returns
–
No description available
wp_state_save
gboolean wp_state_save (WpState * self, const gchar* group, WpProperties * props)
Saves new properties in the state, overwriting all previous data.
Parameters:
self
–
the state
group
–
the group name where the properties will be save
props
(
[transfer: none])
–
the properties to save
Returns
–
TRUE if the properties could be saved, FALSE otherwise
Properties
name
“name” gchar*
The file name where the state will be stored.
Flags : Read / Write / Construct Only
Constants
The results of the search are