Top |
FlatpakTransactionOperation is an object that represents a single operation in a transaction. You receive a FlatpakTransactionOperation object with the “new-operation” signal.
GFile *
flatpak_transaction_operation_get_bundle_path
(FlatpakTransactionOperation *self
);
Gets the path to the bundle.
const char *
flatpak_transaction_operation_get_commit
(FlatpakTransactionOperation *self
);
Gets the commit ID for the operation.
This information is available when the transaction is resolved, i.e. when “ready” is emitted.
FlatpakTransactionOperationType
flatpak_transaction_operation_get_operation_type
(FlatpakTransactionOperation *self
);
Gets the type of the operation.
const char *
flatpak_transaction_operation_get_ref (FlatpakTransactionOperation *self
);
Gets the ref that the operation applies to.
const char *
flatpak_transaction_operation_get_remote
(FlatpakTransactionOperation *self
);
Gets the remote that the operation applies to.
GKeyFile *
flatpak_transaction_operation_get_metadata
(FlatpakTransactionOperation *self
);
Gets the metadata that will be applicable when the operation is done.
This can be compared to the current metadata returned
by flatpak_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.
GKeyFile *
flatpak_transaction_operation_get_old_metadata
(FlatpakTransactionOperation *self
);
Gets the metadata current metadata for the ref that self
works on.
Also see flatpak_transaction_operation_get_metadata()
.
This information is available when the transaction is resolved, i.e. when “ready” is emitted.
guint64
flatpak_transaction_operation_get_download_size
(FlatpakTransactionOperation *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.
Since: 1.1.2
guint64
flatpak_transaction_operation_get_installed_size
(FlatpakTransactionOperation *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.
Since: 1.1.2
const char *
flatpak_transaction_operation_type_to_string
(FlatpakTransactionOperationType kind
);
Converts the operation type to a string.