KaimingTransactionOperation

KaimingTransactionOperation — Operation in a transaction

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── KaimingTransactionOperation

Description

KaimingTransactionOperation is an object that represents a single operation in a transaction. You receive a KaimingTransactionOperation object with the “new-operation” signal.

Functions

kaiming_transaction_operation_get_bundle_path ()

GFile *
kaiming_transaction_operation_get_bundle_path
                               (KaimingTransactionOperation *self);

Gets the path to the bundle.

Parameters

Returns

the bundle GFile or NULL.

[transfer none]


kaiming_transaction_operation_get_commit ()

const char *
kaiming_transaction_operation_get_commit
                               (KaimingTransactionOperation *self);

Gets the commit ID for the operation.

This information is available when the transaction is resolved, i.e. when “ready” is emitted.

Parameters

Returns

the commit ID.

[transfer none]


kaiming_transaction_operation_get_operation_type ()

KaimingTransactionOperationType
kaiming_transaction_operation_get_operation_type
                               (KaimingTransactionOperation *self);

Gets the type of the operation.

Parameters

Returns

the type of operation, as KaimingTransactionOperationType


kaiming_transaction_operation_get_ref ()

const char *
kaiming_transaction_operation_get_ref (KaimingTransactionOperation *self);

Gets the ref that the operation applies to.

Parameters

Returns

the ref.

[transfer none]


kaiming_transaction_operation_get_remote ()

const char *
kaiming_transaction_operation_get_remote
                               (KaimingTransactionOperation *self);

Gets the remote that the operation applies to.

Parameters

Returns

the remote.

[transfer none]


kaiming_transaction_operation_get_metadata ()

GKeyFile *
kaiming_transaction_operation_get_metadata
                               (KaimingTransactionOperation *self);

Gets the metadata that will be applicable when the operation is done.

This can be compared to the current metadata returned by kaiming_transaction_operation_get_old_metadata() to find new required permissions and similar changes.

This information is available when the transaction is resolved, i.e. when “ready” is emitted.

Parameters

Returns

the metadata GKeyFile.

[transfer none]


kaiming_transaction_operation_get_old_metadata ()

GKeyFile *
kaiming_transaction_operation_get_old_metadata
                               (KaimingTransactionOperation *self);

Gets the metadata current metadata for the ref that self works on. Also see kaiming_transaction_operation_get_metadata().

This information is available when the transaction is resolved, i.e. when “ready” is emitted.

Parameters

Returns

the old metadata GKeyFile.

[transfer none]


kaiming_transaction_operation_get_download_size ()

guint64
kaiming_transaction_operation_get_download_size
                               (KaimingTransactionOperation *self);

Gets the maximum download size for the operation.

Note that this does not include the size of dependencies, and the actual download may be smaller, if some of the data is already available locally.

For uninstall operations, this returns 0.

This information is available when the transaction is resolved, i.e. when “ready” is emitted.

Parameters

self

a kaimingTransactionOperation

 

Returns

the download size, in bytes

Since: 1.1.2


kaiming_transaction_operation_get_installed_size ()

guint64
kaiming_transaction_operation_get_installed_size
                               (KaimingTransactionOperation *self);

Gets the installed size for the operation.

Note that even for a new install, the extra space required on disk may be smaller than this number, if some of the data is already available locally.

For uninstall operations, this returns 0.

This information is available when the transaction is resolved, i.e. when “ready” is emitted.

Parameters

self

a kaimingTransactionOperation

 

Returns

the installed size, in bytes

Since: 1.1.2


kaiming_transaction_operation_type_to_string ()

const char *
kaiming_transaction_operation_type_to_string
                               (KaimingTransactionOperationType kind);

Converts the operation type to a string.

Parameters

Returns

a string representing kind .

[transfer none]

Types and Values

KaimingTransactionOperation

typedef struct _KaimingTransactionOperation KaimingTransactionOperation;