AgsLocalTaskController

AgsLocalTaskController — local task controller

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLocalTaskController

Includes

#include <ags/server/controller/ags_local_task_controller.h>

Description

The AgsLocalTaskController is a controller.

Functions

ags_local_task_controller_launch ()

gpointer
ags_local_task_controller_launch (AgsLocalTaskController *local_task_controller,
                                  AgsTask *task);

Launch task.

Parameters

local_task_controller

the AgsLocalTaskController

 

task

the AgsTask

 

Returns

the response

Since: 1.0.0


ags_local_task_controller_launch_timed ()

gpointer
ags_local_task_controller_launch_timed
                               (AgsLocalTaskController *local_task_controller,
                                AgsTask *task,
                                AgsTimestamp *timestamp);

Launch task.

Parameters

local_task_controller

the AgsLocalTaskController

 

task

the AgsTask

 

timestamp

the AgsTimestamp

 

Returns

the response

Since: 1.0.0


ags_local_task_controller_new ()

AgsLocalTaskController *
ags_local_task_controller_new ();

Instantiate new AgsLocalTaskController

Since: 1.0.0


AGS_IS_LOCAL_TASK_CONTROLLER()

#define AGS_IS_LOCAL_TASK_CONTROLLER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOCAL_TASK_CONTROLLER))

AGS_LOCAL_TASK_CONTROLLER()

#define AGS_LOCAL_TASK_CONTROLLER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOCAL_TASK_CONTROLLER, AgsLocalTaskController))

AGS_LOCAL_TASK_CONTROLLER_CLASS()

#define AGS_LOCAL_TASK_CONTROLLER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_LOCAL_TASK_CONTROLLER, AgsLocalTaskControllerClass))

AGS_LOCAL_TASK_CONTROLLER_GET_CLASS()

#define AGS_LOCAL_TASK_CONTROLLER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_LOCAL_TASK_CONTROLLER, AgsLocalTaskControllerClass))

ags_local_task_controller_get_type ()

GType
ags_local_task_controller_get_type ();

Types and Values

AGS_LOCAL_TASK_CONTROLLER_CONTEXT_PATH

#define AGS_LOCAL_TASK_CONTROLLER_CONTEXT_PATH "/task"

AGS_TYPE_LOCAL_TASK_CONTROLLER

#define AGS_TYPE_LOCAL_TASK_CONTROLLER                (ags_local_task_controller_get_type())

struct AgsLocalTaskController

struct AgsLocalTaskController;

struct AgsLocalTaskControllerClass

struct AgsLocalTaskControllerClass {
  AgsControllerClass controller;
  
  gpointer (*launch)(AgsLocalTaskController *local_task_controller,
		     AgsTask *task);
  gpointer (*launch_timed)(AgsLocalTaskController *local_task_controller,
			   AgsTask *task, AgsTimestamp *timestamp);
};

Signal Details

The “launch” signal

gpointer
user_function (AgsLocalTaskController *local_task_controller,
               GObject                *task,
               gpointer                user_data)

The ::launch-timed signal is used to launch a task delayed.

Parameters

local_task_controller

the AgsLocalTaskController

 

task

the AgsTask to launch

 

timestamp

the AgsTimestamp specify the start time

 

user_data

user data set when the signal handler was connected.

 

Returns

the response

Flags: Run Last

Since: 1.0.0


The “launch-timed” signal

gpointer
user_function (AgsLocalTaskController *agslocaltaskcontroller,
               GObject                *arg1,
               GObject                *arg2,
               gpointer                user_data)

Flags: Run Last