UDisksBaseJob

## UDisksBaseJob UDisksBaseJob — Base class for jobs. |

## Synopsis

                        UDisksBaseJob;
    struct              UDisksBaseJobClass;
    void                udisks_base_job_add_object          (UDisksBaseJob *job,
                                                             UDisksObject *object);
    void                udisks_base_job_remove_object       (UDisksBaseJob *job,
                                                             UDisksObject *object);
    GCancellable *      udisks_base_job_get_cancellable     (UDisksBaseJob *job);

## Object Hierarchy

      GObject
       +----GDBusInterfaceSkeleton
             +----UDisksJobSkeleton
                   +----UDisksBaseJob
                         +----UDisksSpawnedJob
                         +----UDisksThreadedJob
                         +----UDisksSimpleJob

## Implemented Interfaces

UDisksBaseJob implements GDBusInterface and UDisksJob.

## Properties

      "cancellable"              GCancellable*         : Read / Write / Construct Only

## Description

This type provides common features needed by all job types.

## Details

### UDisksBaseJob

    typedef struct _UDisksBaseJob UDisksBaseJob;

The UDisksBaseJob structure contains only private data and should only be accessed using the provided API.

### struct UDisksBaseJobClass

    struct UDisksBaseJobClass {
      UDisksJobSkeletonClass parent_class;
    };

Class structure for UDisksBaseJob.

UDisksJobSkeletonClass `parent_class`; | Parent class.

### udisks_base_job_add_object ()

    void                udisks_base_job_add_object          (UDisksBaseJob *job,
                                                             UDisksObject *object);

Adds the object path for `object` to the Objects array. If the object path is already in the array, does nothing.

`job` : | A UDisksBaseJob.
`object` : | A UDisksObject.

### udisks_base_job_remove_object ()

    void                udisks_base_job_remove_object       (UDisksBaseJob *job,
                                                             UDisksObject *object);

Removes the object path for `object` to the Objects array. If the object path is not in the array, does nothing.

`job` : | A UDisksBaseJob.
`object` : | A UDisksObject.

### udisks_base_job_get_cancellable ()

    GCancellable *      udisks_base_job_get_cancellable     (UDisksBaseJob *job);

Gets the GCancellable for `job`.

`job` : | A UDisksBaseJob.
Returns : | A GCancellable. Do not free, the object belongs to `job`.

## Property Details

### The `"cancellable"` property

      "cancellable"              GCancellable*         : Read / Write / Construct Only

The GCancellable to use.