Constructor

PurpleScheduledTasknew

unstable since: 3.0

Declaration [src]

PurpleScheduledTask*
purple_scheduled_task_new (
  const char* task_type,
  const char* title,
  gboolean cancellable
)

Description [src]

Creates a new scheduled task.

Available since: 3.0

Parameters

task_type

Type: const char*

A well-known type name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
title

Type: const char*

A title that can be displayed to users.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cancellable

Type: gboolean

True if the task can be cancelled by the user; false otherwise.

Return value

Type: PurpleScheduledTask

The new scheduled task.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.