Data Structures | |
struct | _GTaskGenericTask |
struct | _GTaskGenericTaskClass |
struct | _GTaskGenericTaskPrivate |
Defines | |
#define | GTASK_GENERIC_TASK_TYPE (gtask_generic_task_get_type()) |
#define | GTASK_GENERIC_TASK(obj) |
#define | GTASK_GENERIC_TASK_CLASS(klass) |
#define | GTASK_IS_GENERIC_TASK(obj) |
#define | GTASK_IS_GENERIC_TASK_CLASS(klass) |
#define | GTASK_GENERIC_TASK_GET_CLASS(obj) |
#define | GTASK_TIME_LEFT_UNKNOWN -1 |
#define | GTASK_ACTIVITY_STATE_TYPE (gtask_activity_state_get_type()) |
Typedefs | |
typedef _GTaskGenericTask | GTaskGenericTask |
typedef _GTaskGenericTaskPrivate | GTaskGenericTaskPrivate |
typedef _GTaskGenericTaskClass | GTaskGenericTaskClass |
Enumerations | |
enum | { C_PROP_0, C_PROP_APP, C_PROP_ID, C_PROP_TITLE, C_PROP_PERCENT, C_PROP_ACTIVITY_STATE, C_PROP_STATUS, C_PROP_ERROR, C_PROP_CATEGORY, C_PROP_THUMBNAIL } |
enum | GTaskActivityState { GTASK_ACTIVITY_STATE_ACTIVE = 1 << 0, GTASK_ACTIVITY_STATE_INACTIVE = 1 << 1, GTASK_ACTIVITY_STATE_COMPLETED = 1 << 2 } |
Functions | |
void | gtask_generic_task_class_init (GTaskGenericTaskClass *klass) |
void | gtask_generic_task_init (GTaskGenericTask *gtask) |
gboolean | gtask_generic_task_fill_xml_doc (GTaskGenericTask *task, xmlDocPtr doc) |
fills the document with at least a root node (task) and any sub elements that need to be sent to | |
void | gtask_generic_task_dispose (GObject *obj) |
void | gtask_generic_task_finalize (GObject *obj) |
void | gtask_generic_task_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec) |
void | gtask_generic_task_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec) |
GType | gtask_activity_state_get_type () |
GType | gtask_generic_task_get_type () |
gboolean | gtask_generic_task_serialize_to (GTaskGenericTask *task, GTaskConnection *conn) |
outputs the task to the specified connection | |
gboolean | gtask_generic_task_serialize (GTaskGenericTask *task) |
outputs the task packet to the default connection | |
GTaskGenericTask * | gtask_generic_task_new () |
creates a new GTaskGenericTask | |
GTaskGenericTask * | gtask_generic_task_new_with_connection_group (GTaskConnectionGroup *conn_group) |
creates a new GTaskGenericTask bound to the passed in GTaskConnection | |
void | gtask_generic_task_set_application (GTaskGenericTask *task, const gchar *app) |
sets the name of the application that is performing the task | |
const gchar * | gtask_generic_task_get_application (GTaskGenericTask *task) |
returns the name of the application that is performing the task | |
void | gtask_generic_task_set_id (GTaskGenericTask *task, const gchar *id) |
sets the id associated with the passed in task | |
const gchar * | gtask_generic_task_get_id (GTaskGenericTask *task) |
returns the id associated with the passed in task | |
void | gtask_generic_task_set_title (GTaskGenericTask *task, const gchar *title) |
sets the title associated with the passed in task | |
const gchar * | gtask_generic_task_get_title (GTaskGenericTask *task) |
Returns the title associated with the passed in task. | |
void | gtask_generic_task_set_thumbnail_uri (GTaskGenericTask *task, const gchar *uri) |
Sets the thumbnail uri of the passed in GTaskGenericTask. | |
const gchar * | gtask_generic_task_get_thumbnail_uri (GTaskGenericTask *task) |
returns the uri of the thumbnail associated with the passed in task | |
void | gtask_generic_task_set_percent_done (GTaskGenericTask *task, gfloat percent) |
sets the percentage of the task that has been completed | |
gfloat | gtask_generic_task_get_percent_done (GTaskGenericTask *task) |
returns the percentage of the task that has been completed | |
void | gtask_generic_task_set_activity_state (GTaskGenericTask *task, GTaskActivityState state) |
sets the activity state of the passed in task | |
GTaskActivityState | gtask_generic_task_get_activity_state (GTaskGenericTask *task) |
returns the activity state of the task | |
const gchar * | gtask_generic_task_get_activity_state_as_string (GTaskGenericTask *task) |
returns the activity state of the task as a lowercase string | |
void | gtask_generic_task_set_activity_state_from_string (GTaskGenericTask *task, const char *state) |
attempts to set the activity state of the task from the passed in string. If the state is unparsable, then the task is marked as GTASK_ACTIVITY_STATE_INACTIVE | |
void | gtask_generic_task_set_status_message (GTaskGenericTask *task, const gchar *msg) |
sets the status message associate with the passed in task | |
const gchar * | gtask_generic_task_get_status_message (GTaskGenericTask *task) |
returns the status message associated with the passed in task | |
void | gtask_generic_task_set_error_message (GTaskGenericTask *task, const gchar *msg) |
sets the error message associated with the passed in task | |
const gchar * | gtask_generic_task_get_error_message (GTaskGenericTask *task) |
returns the error message associated with the passed in task | |
void | gtask_generic_task_set_category (GTaskGenericTask *task, const gchar *cat) |
sets the category of the passed in GTaskGenericTask | |
const gchar * | gtask_generic_task_get_category (GTaskGenericTask *task) |
returns the category of the passed in GTaskGenericTask | |
void | gtask_generic_task_dump (GTaskGenericTask *task) |
Prints out some information about the passed in GTaskGenericTask. | |
void | gtask_generic_task_set_time_left (GTaskGenericTask *task, glong time_left) |
Sets the amount of time left (in seconds) until the passed in GTaskGenericTask will be completed. | |
glong | gtask_generic_task_get_time_left (GTaskGenericTask *task) |
Returns the number of seconds until the passed in GTaskGenericTask will be completed. | |
void | gtask_generic_task_add_file (GTaskGenericTask *task, GTaskFile *file) |
Adds the passed in GTaskFile to the list of GTaskFile's associated with the passed in GTaskGenericTask. | |
void | gtask_generic_task_add_files (GTaskGenericTask *task, GList *files) |
Adds a the GList of GTaskFiles to the passed in GTaskGenericTask. | |
GList * | gtask_generic_task_get_files (GTaskGenericTask *task) |
Returns a GList of GTaskFiles. | |
void | gtask_generic_task_clear_files (GTaskGenericTask *task) |
Removes all GTaskFiles associated with the passed in GTaskGenericTask. | |
void | gtask_generic_task_set_activity_state_from_string (GTaskGenericTask *task, const gchar *state) |
Variables | |
gpointer | parent_class |
|
Definition at line 61 of file gtask-generic-task.h. |
|
Value: (G_TYPE_CHECK_INSTANCE_CAST( (obj), \ GTASK_GENERIC_TASK_TYPE, \ GTaskGenericTask)) Definition at line 24 of file gtask-generic-task.h. |
|
Value: (G_TYPE_CHECK_CLASS_CAST( (klass), \ GTASK_GENERIC_TASK_TYPE, \ GTaskGenericTaskClass )) Definition at line 29 of file gtask-generic-task.h. |
|
Value: (G_TYPE_INSTANCE_GET_CLASS( (obj), \ GTASK_GENERIC_TASK_TYPE, \ GTaskGenericClass )) Definition at line 47 of file gtask-generic-task.h. |
|
returns a GType of GTaskGenericTask Definition at line 21 of file gtask-generic-task.h. |
|
Value: (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \ GTASK_GENERIC_TASK_TYPE )) Definition at line 37 of file gtask-generic-task.h. |
|
Value: (G_TYPE_CHECK_CLASS_TYPE( (klass), \ GTASK_GENERIC_TASK_TYPE )) Definition at line 44 of file gtask-generic-task.h. |
|
Definition at line 59 of file gtask-generic-task.h. |
|
Definition at line 16 of file gtask-generic-task.h. |
|
Definition at line 18 of file gtask-generic-task.h. |
|
Definition at line 17 of file gtask-generic-task.h. |
|
Definition at line 9 of file gtask-generic-task.c. |
|
An enumeration of the possible activity states a task may have
Definition at line 53 of file gtask-generic-task.h. |
|
Definition at line 52 of file gtask-generic-task.c. |
|
Adds the passed in GTaskFile to the list of GTaskFile's associated with the passed in GTaskGenericTask.
Definition at line 1048 of file gtask-generic-task.c. |
|
Adds a the GList of GTaskFiles to the passed in GTaskGenericTask.
Definition at line 1067 of file gtask-generic-task.c. |
|
Definition at line 316 of file gtask-generic-task.c. |
|
Removes all GTaskFiles associated with the passed in GTaskGenericTask.
Definition at line 1106 of file gtask-generic-task.c. |
|
Definition at line 402 of file gtask-generic-task.c. |
|
Prints out some information about the passed in GTaskGenericTask.
Definition at line 989 of file gtask-generic-task.c. |
|
fills the document with at least a root node (task) and any sub elements that need to be sent to
Definition at line 179 of file gtask-generic-task.c. |
|
Definition at line 424 of file gtask-generic-task.c. |
|
returns the activity state of the task
Definition at line 807 of file gtask-generic-task.c. |
|
returns the activity state of the task as a lowercase string
Definition at line 824 of file gtask-generic-task.c. |
|
returns the name of the application that is performing the task
Definition at line 594 of file gtask-generic-task.c. |
|
returns the category of the passed in GTaskGenericTask
Definition at line 977 of file gtask-generic-task.c. |
|
returns the error message associated with the passed in task
Definition at line 941 of file gtask-generic-task.c. |
|
Returns a GList of GTaskFiles.
Definition at line 1094 of file gtask-generic-task.c. |
|
returns the id associated with the passed in task
Definition at line 630 of file gtask-generic-task.c. |
|
returns the percentage of the task that has been completed
Definition at line 753 of file gtask-generic-task.c. |
|
Definition at line 485 of file gtask-generic-task.c. |
|
returns the status message associated with the passed in task
Definition at line 903 of file gtask-generic-task.c. |
|
returns the uri of the thumbnail associated with the passed in task
Definition at line 702 of file gtask-generic-task.c. |
|
Returns the number of seconds until the passed in GTaskGenericTask will be completed.
Definition at line 1030 of file gtask-generic-task.c. |
|
Returns the title associated with the passed in task.
Definition at line 666 of file gtask-generic-task.c. |
|
Definition at line 69 of file gtask-generic-task.c. |
|
Definition at line 95 of file gtask-generic-task.c. |
|
creates a new GTaskGenericTask
Definition at line 532 of file gtask-generic-task.c. |
|
creates a new GTaskGenericTask bound to the passed in GTaskConnection
Definition at line 549 of file gtask-generic-task.c. |
|
outputs the task packet to the default connection
Definition at line 296 of file gtask-generic-task.c. |
|
outputs the task to the specified connection
Definition at line 130 of file gtask-generic-task.c. |
|
sets the activity state of the passed in task
Definition at line 772 of file gtask-generic-task.c. |
|
|
|
attempts to set the activity state of the task from the passed in string. If the state is unparsable, then the task is marked as GTASK_ACTIVITY_STATE_INACTIVE
Definition at line 852 of file gtask-generic-task.c. |
|
sets the name of the application that is performing the task
Definition at line 572 of file gtask-generic-task.c. |
|
sets the category of the passed in GTaskGenericTask
Definition at line 956 of file gtask-generic-task.c. |
|
sets the error message associated with the passed in task
Definition at line 918 of file gtask-generic-task.c. |
|
sets the id associated with the passed in task
Definition at line 609 of file gtask-generic-task.c. |
|
sets the percentage of the task that has been completed
Definition at line 723 of file gtask-generic-task.c. |
|
Definition at line 447 of file gtask-generic-task.c. |
|
sets the status message associate with the passed in task
Definition at line 881 of file gtask-generic-task.c. |
|
Sets the thumbnail uri of the passed in GTaskGenericTask.
Definition at line 679 of file gtask-generic-task.c. |
|
Sets the amount of time left (in seconds) until the passed in GTaskGenericTask will be completed.
Definition at line 1015 of file gtask-generic-task.c. |
|
sets the title associated with the passed in task
Definition at line 645 of file gtask-generic-task.c. |
|
Definition at line 22 of file gtask-generic-task.c. |