GtexProjects

GtexProjects — The set of all projects

Functions

Signals

void changed Run First

Types and Values

struct GtexProjects

Object Hierarchy

    GObject
    ╰── GtexProjects

Includes

#include <gtex.h>

Description

The set of all projects.

Functions

gtex_projects_get_singleton ()

GtexProjects *
gtex_projects_get_singleton (void);

Returns

the GtexProjects singleton instance.

[transfer none]


gtex_projects_changed ()

void
gtex_projects_changed (GtexProjects *projects);

Emits the “changed” signal.

Parameters

projects

the GtexProjects instance.

 

gtex_projects_get_project ()

GtexProject *
gtex_projects_get_project (GtexProjects *projects,
                           gint project_num);

Parameters

projects

the GtexProjects instance.

 

project_num

a project number.

 

Returns

the GtexProject at project_num .

[nullable][transfer none]


gtex_projects_get_all ()

GList *
gtex_projects_get_all (GtexProjects *projects);

Parameters

projects

the GtexProjects instance.

 

Returns

all the GtexProject's part of projects .

[transfer full][element-type GtexProject]


gtex_projects_add_project ()

gboolean
gtex_projects_add_project (GtexProjects *projects,
                           GtexProject *project_to_add,
                           GtexProject **conflict_project);

Tries to add project_to_add to projects .

If project_to_add is in conflict with a project already present in projects , FALSE is returned and conflict_project is set.

Parameters

projects

the GtexProjects instance.

 

project_to_add

a new GtexProject.

 

conflict_project

returns the GtexProject already part of projects which is in conflict with project_to_add .

[out][transfer full][nullable][optional]

Returns

TRUE if and only if the project_to_add has been successfully added.


gtex_projects_remove_project ()

void
gtex_projects_remove_project (GtexProjects *projects,
                              GtexProject *project);

Removes project from projects .

Parameters

projects

the GtexProjects instance.

 

project

a GtexProject.

 

gtex_projects_remove_all ()

void
gtex_projects_remove_all (GtexProjects *projects);

Removes all projects from projects .

Parameters

projects

the GtexProjects instance.

 

gtex_projects_to_xml ()

gchar *
gtex_projects_to_xml (GtexProjects *projects);

Parameters

projects

the GtexProjects instance.

 

Returns

projects serialized to XML.

[transfer full]


gtex_projects_save ()

void
gtex_projects_save (GtexProjects *projects);

Saves synchronously the projects .

Parameters

projects

the GtexProjects instance.

 

Types and Values

struct GtexProjects

struct GtexProjects;

Signal Details

The “changed” signal

void
user_function (GtexProjects *projects,
               gpointer      user_data)

The ::changed signal is emitted when the data of projects have changed.

Parameters

projects

the GtexProjects object emitting the signal.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run First