GaminggearProfileData.
More...
|
| GType | gaminggear_profile_data_get_type (void) |
| |
| gchar const * | gaminggear_profile_data_get_name (GaminggearProfileData *self) |
| | Get profile name. More...
|
| |
| void | gaminggear_profile_data_set_name (GaminggearProfileData *self, gchar const *new_name) |
| | Set profile name. More...
|
| |
| gchar const * | gaminggear_profile_data_get_gamefile (GaminggearProfileData *self, guint index) |
| | Get gamefile. More...
|
| |
| void | gaminggear_profile_data_set_gamefile (GaminggearProfileData *self, guint index, gchar const *new_gamefile) |
| | Set gamefile. More...
|
| |
| gint | gaminggear_profile_data_get_hardware_index (GaminggearProfileData *self) |
| | Get profile index in hardware. More...
|
| |
| void | gaminggear_profile_data_set_hardware_index (GaminggearProfileData *self, gint new_index) |
| | Set profile index in hardware. More...
|
| |
| gboolean | gaminggear_profile_data_store (GaminggearProfileData *self, GaminggearDevice *device, GError **error) |
| | Save filesystem and hardware data. More...
|
| |
| gboolean | gaminggear_profile_data_load (GaminggearProfileData *self, gchar const *path, GError **error) |
| | Load filesystem data. More...
|
| |
| gboolean | gaminggear_profile_data_remove (GaminggearProfileData *self, GError **error) |
| | Remove filesystem data. More...
|
| |
| gboolean | gaminggear_profile_data_read (GaminggearProfileData *self, GaminggearDevice *device, GError **error) |
| | Read hardware data. More...
|
| |
| gboolean | gaminggear_profile_data_get_modified (GaminggearProfileData *self) |
| | Get modified state. More...
|
| |
| void | gaminggear_profile_data_reset (GaminggearProfileData *self) |
| | Reset data. More...
|
| |
| gboolean | gaminggear_profile_data_get_valid (GaminggearProfileData *self) |
| | Get if instance is valid. More...
|
| |
| GaminggearProfileData * | gaminggear_profile_data_dup (GaminggearProfileData *other) |
| | Duplicates profile data. More...
|
| |
| gboolean | gaminggear_profile_data_equal (GaminggearProfileData *self, GaminggearProfileData *other) |
| | Checks equality of two profile datas. More...
|
| |
| void | gaminggear_profile_data_discriminate (GaminggearProfileData *self) |
| | Makes profile data unique. More...
|
| |
◆ GAMINGGEAR_PROFILE_DATA
◆ GAMINGGEAR_PROFILE_DATA_CLASS
◆ GAMINGGEAR_PROFILE_DATA_GET_CLASS
◆ GAMINGGEAR_PROFILE_DATA_TYPE
◆ IS_GAMINGGEAR_PROFILE_DATA
◆ IS_GAMINGGEAR_PROFILE_DATA_CLASS
◆ GaminggearProfileData
◆ GaminggearProfileDataClass
◆ GaminggearProfileDataPrivate
◆ anonymous enum
| Enumerator |
|---|
| GAMINGGEAR_PROFILE_DATA_GAMEFILE_NUM | |
| GAMINGGEAR_PROFILE_DATA_GAMEFILE_PROFILE_INVALID | |
◆ gaminggear_profile_data_discriminate()
Makes profile data unique.
Changes profile data so that a new file is created.
- Parameters
-
- Since
- 1.0
◆ gaminggear_profile_data_dup()
Duplicates profile data.
Creates unmodified deep copy of other.
- Parameters
-
| other | The object to duplicate. |
- Return values
-
- Since
- 1.0
◆ gaminggear_profile_data_equal()
Checks equality of two profile datas.
Only checks the data, not where it would be saved.
- Parameters
-
| self | One object. |
| other | Other object to compare against self. |
- Return values
-
| bool | TRUE if equal, else FALSE. |
- Since
- 1.0
◆ gaminggear_profile_data_get_gamefile()
Get gamefile.
Pointer is only valid at the moment, make a copy if needed.
- Parameters
-
| self | Instance. |
| index | Index in range of [0, GAMINGGEAR_PROFILE_DATA_GAMEFILE_NUM[. |
- Return values
-
- Since
- 1.0
◆ gaminggear_profile_data_get_hardware_index()
Get profile index in hardware.
- Parameters
-
- Return values
-
| index | of profile in hardware or GAMINGGEAR_PROFILE_DATA_GAMEFILE_PROFILE_INVALID. |
- Since
- 1.0
◆ gaminggear_profile_data_get_modified()
Get modified state.
- Parameters
-
- Return values
-
| bool | TRUE if data should be saved/written, else FALSE. |
- Since
- 1.0
◆ gaminggear_profile_data_get_name()
Get profile name.
Pointer is only valid at the moment, make a copy if needed.
- Parameters
-
- Return values
-
| string | that should not be freed. |
- Since
- 1.0
◆ gaminggear_profile_data_get_type()
| GType gaminggear_profile_data_get_type |
( |
void |
| ) |
|
◆ gaminggear_profile_data_get_valid()
Get if instance is valid.
- Parameters
-
- Since
- 1.0
◆ gaminggear_profile_data_load()
| gboolean gaminggear_profile_data_load |
( |
GaminggearProfileData * |
self, |
|
|
gchar const * |
path, |
|
|
GError ** |
error |
|
) |
| |
Load filesystem data.
- Parameters
-
| self | Instance. |
| path | Filesystem path of file to load. |
| error | Location to return an error. |
- Return values
-
| bool | TRUE if successful, else FALSE. |
- Since
- 1.0
◆ gaminggear_profile_data_read()
Read hardware data.
Data is only read if device and hardware index are valid.
- Parameters
-
| self | Instance. |
| device | Device to read from or NULL. |
| error | Location to return an error. |
- Return values
-
| bool | TRUE if successful, else FALSE. |
- Since
- 1.0
◆ gaminggear_profile_data_remove()
Remove filesystem data.
Instance should not be used after calling this function.
- Parameters
-
| self | Instance. |
| error | Location to return an error. |
- Return values
-
| bool | TRUE if successful, else FALSE. |
- Since
- 1.0
◆ gaminggear_profile_data_reset()
Reset data.
Resets the actual data with the last stored values.
- Parameters
-
- Since
- 1.0
◆ gaminggear_profile_data_set_gamefile()
| void gaminggear_profile_data_set_gamefile |
( |
GaminggearProfileData * |
self, |
|
|
guint |
index, |
|
|
gchar const * |
new_gamefile |
|
) |
| |
Set gamefile.
- Parameters
-
| self | Instance. |
| index | Index in range of [0, GAMINGGEAR_PROFILE_DATA_GAMEFILE_NUM[. |
| new_gamefile | |
- Since
- 1.0
◆ gaminggear_profile_data_set_hardware_index()
Set profile index in hardware.
- Parameters
-
| self | Instance. |
| new_index | Profile index in hardware or GAMINGGEAR_PROFILE_DATA_GAMEFILE_PROFILE_INVALID. |
- Since
- 1.0
◆ gaminggear_profile_data_set_name()
Set profile name.
- Parameters
-
| self | Instance. |
| new_name | New name. |
- Since
- 1.0
◆ gaminggear_profile_data_store()
Save filesystem and hardware data.
Filesystem data is either saved to file it has been loaded from or a unique Filename is created. Hardware data is only stored if device and hardware index is valid.
- Parameters
-
| self | Instance. |
| device | Device to write to or NULL. |
| error | Location to return an error. |
- Return values
-
| bool | TRUE if successful, else FALSE. |
- Since
- 1.0