GaminggearProfileTable.
More...
|
GType | gaminggear_profile_table_get_type (void) |
|
GtkWidget * | gaminggear_profile_table_new (GType type, gchar const *path, guint profile_num) |
| Create new profile table. More...
|
|
void | gaminggear_profile_table_add_profile (GaminggearProfileTable *table) |
| Add profile. More...
|
|
gboolean | gaminggear_profile_table_load (GaminggearProfileTable *table, GError **error) |
| Load filesystem profile_data. More...
|
|
gboolean | gaminggear_profile_table_fill (GaminggearProfileTable *table, GaminggearDevice *device, guint count, GError **error) |
| Fill profile data list with missing hardware profiles. More...
|
|
gboolean | gaminggear_profile_table_read (GaminggearProfileTable *table, GaminggearDevice *device, GError **error) |
| Read hardware profile_data. More...
|
|
gboolean | gaminggear_profile_table_store (GaminggearProfileTable *table, GaminggearDevice *device, GError **error) |
| Saves and writes all profile datas. More...
|
|
gboolean | gaminggear_profile_table_get_modified (GaminggearProfileTable *table) |
| Get modified state. More...
|
|
const gchar * | gaminggear_profile_table_get_default_profile_name (GaminggearProfileTable *table) |
| Get name of default profile. More...
|
|
void | gaminggear_profile_table_set_default_profile_name (GaminggearProfileTable *table, gchar const *name) |
| Set default profile. More...
|
|
◆ GAMINGGEAR_PROFILE_TABLE
◆ GAMINGGEAR_PROFILE_TABLE_TYPE
◆ IS_GAMINGGEAR_PROFILE_TABLE
◆ GaminggearProfileTable
◆ GaminggearProfileTablePrivate
◆ gaminggear_profile_table_add_profile()
Add profile.
Adds new profile_data with default values.
- Parameters
-
- Since
- 1.0
◆ gaminggear_profile_table_fill()
Fill profile data list with missing hardware profiles.
Filesystem data has to be read before hardware data since it contains the hardware profile index.
Only reads the missing profiles from hardware.
- Parameters
-
table | Instance. |
device | Device to read from or NULL . |
count | Number of profiles to fill. |
error | Location to return an error. |
- Return values
-
bool | TRUE if successful, else FALSE . |
- Since
- 1.0
◆ gaminggear_profile_table_get_default_profile_name()
Get name of default profile.
- Parameters
-
- Return values
-
string | which shouldn't be freed or NULL if no default profile is selected. |
- Since
- 1.0
◆ gaminggear_profile_table_get_modified()
Get modified state.
Returns TRUE
if any profile data has been modified.
- Parameters
-
- Return values
-
bool | TRUE if modified, else FALSE . |
- Since
- 1.0
◆ gaminggear_profile_table_get_type()
GType gaminggear_profile_table_get_type |
( |
void |
| ) |
|
◆ gaminggear_profile_table_load()
Load filesystem profile_data.
Filesystem data has to be read before hardware data since it contains the hardware profile index.
- Parameters
-
table | Instance. |
error | Location to return an error. |
- Return values
-
bool | TRUE if successful, else FALSE . |
- Since
- 1.0
◆ gaminggear_profile_table_new()
GtkWidget* gaminggear_profile_table_new |
( |
GType |
type, |
|
|
gchar const * |
path, |
|
|
guint |
profile_num |
|
) |
| |
Create new profile table.
- Parameters
-
type | Type of profile_data to handle. |
path | Path to load files from. |
profile_num | Maximum count of profiles the device can handle. |
- Return values
-
- Since
- 1.0
◆ gaminggear_profile_table_read()
Read hardware profile_data.
Filesystem data has to be read before hardware data since it contains the hardware profile index.
- Parameters
-
table | 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_table_set_default_profile_name()
Set default profile.
If no profile with the given name exists, no profile is selected as default profile. If more than one profile with the same name exists, one is randomly selected.
- Parameters
-
table | Instance. |
name | of the profile to select. |
- Since
- 1.0
◆ gaminggear_profile_table_store()
Saves and writes all profile datas.
- Parameters
-
table | 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