GsdSecureDeleteOperation

GsdSecureDeleteOperation — An AsyncOperation subclass to implement SecureDelete operations.

Functions

Properties

gboolean fast Read / Write
GsdSecureDeleteOperationMode mode Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GsdSecureDeleteOperationMode
    GObject
    ╰── GsdAsyncOperation
        ╰── GsdSecureDeleteOperation
            ├── GsdZeroableOperation
            ╰── GsdMemOperation

Description

This class implements everything that is shared by all SecureDelete operators.

Functions

gsd_secure_delete_operation_run ()

gboolean
gsd_secure_delete_operation_run (GsdSecureDeleteOperation *self,
                                 GError **error);

Runs a SecureDelete operator asynchronously.

Parameters

self

the GsdSecureDeleteOperation instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains GSpawnError GsdAsyncOperationError]

Returns

whether operation started successfully.


gsd_secure_delete_operation_run_sync ()

gboolean
gsd_secure_delete_operation_run_sync (GsdSecureDeleteOperation *self,
                                      GError **error);

Runs a SecureDelete operator synchronously.

Parameters

self

the GsdSecureDeleteOperation instance

 

error

location to store the error occuring, or NULL to ignore.

[error-domains GSpawnError GsdAsyncOperationError]

Returns

whether operation was successful.


gsd_secure_delete_operation_get_fast ()

gboolean
gsd_secure_delete_operation_get_fast (GsdSecureDeleteOperation *self);

Get and return the current value of the "fast" property.

Whether to use fast (and insecure) work mode (-f option).

Parameters

self

the GsdSecureDeleteOperation instance to query

 

Returns

the value of the "fast" property


gsd_secure_delete_operation_set_fast ()

void
gsd_secure_delete_operation_set_fast (GsdSecureDeleteOperation *self,
                                      gboolean value);

Set the value of the "fast" property to value .

Whether to use fast (and insecure) work mode (-f option).

Parameters

self

the GsdSecureDeleteOperation instance to modify

 

value

the new value of the "fast" property

 

gsd_secure_delete_operation_get_mode ()

GsdSecureDeleteOperationMode
gsd_secure_delete_operation_get_mode (GsdSecureDeleteOperation *self);

Get and return the current value of the "mode" property.

The security mode

Parameters

self

the GsdSecureDeleteOperation instance to query

 

Returns

the value of the "mode" property


gsd_secure_delete_operation_set_mode ()

void
gsd_secure_delete_operation_set_mode (GsdSecureDeleteOperation *self,
                                      GsdSecureDeleteOperationMode value);

Set the value of the "mode" property to value .

The security mode

Parameters

self

the GsdSecureDeleteOperation instance to modify

 

value

the new value of the "mode" property

 

Types and Values

GSD_TYPE_SECURE_DELETE_OPERATION

#define GSD_TYPE_SECURE_DELETE_OPERATION (gsd_secure_delete_operation_get_type ())

The type for GsdSecureDeleteOperation.


enum GsdSecureDeleteOperationMode

Security mode

Members

GSD_SECURE_DELETE_OPERATION_MODE_NORMAL

normal mode (default) (38 passes)

 

GSD_SECURE_DELETE_OPERATION_MODE_INSECURE

less security (-l option) (2 passes)

 

GSD_SECURE_DELETE_OPERATION_MODE_VERY_INSECURE

even less security (-ll option) (1 pass)

 

struct GsdSecureDeleteOperation

struct GsdSecureDeleteOperation;

An AsyncOperation subclass to implement SecureDelete operations.

This class implements everything that is shared by all SecureDelete operators.


struct GsdSecureDeleteOperationClass

struct GsdSecureDeleteOperationClass {
	GsdAsyncOperationClass parent_class;
};

The class structure for GSD_TYPE_SECURE_DELETE_OPERATION. All the fields in this structure are private and should never be accessed directly.

Members

Property Details

The “fast” property

  “fast”                     gboolean

Whether to use fast (and insecure) work mode (-f option).

Flags: Read / Write

Default value: FALSE


The “mode” property

  “mode”                     GsdSecureDeleteOperationMode

The security mode

Flags: Read / Write

Default value: GSD_SECURE_DELETE_OPERATION_MODE_NORMAL