fosKeyMan
Loading...
Searching...
No Matches
src.frontend.trashmanager.TrashManager Class Reference

Class to manage deleted keyfiles in the trash directory. More...

Inheritance diagram for src.frontend.trashmanager.TrashManager:

Public Member Functions

 __init__ (self, key_handler, parent=None)
 Initialize the trash manager dialog.
 
 clear_all_trash (self)
 Permanently delete all keyfiles in the trash directory after confirmation.
 
 delete_keyfile (self, key)
 Permanently delete a keyfile from the trash and remove its row from the table.
 
 restore_keyfile (self, key)
 Restore a keyfile from the trash to the deactivated directory and remove its row from the table.
 
 setup_trash_table (self)
 Set up the trash table displaying all deleted keyfiles.
 

Public Attributes

 clear_all_trash
 
 key_handler = key_handler
 
 reject
 
 ui = Ui_Trash()
 

Detailed Description

Class to manage deleted keyfiles in the trash directory.

Definition at line 8 of file trashmanager.py.

Constructor & Destructor Documentation

◆ __init__()

src.frontend.trashmanager.TrashManager.__init__ ( self,
key_handler,
parent = None )

Initialize the trash manager dialog.

Parameters
key_handler(KeyHandler): An instance of KeyHandler used for keyfile operations.
parent(QWidget, optional): Parent widget for this dialog.

Definition at line 12 of file trashmanager.py.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ clear_all_trash()

src.frontend.trashmanager.TrashManager.clear_all_trash ( self)

Permanently delete all keyfiles in the trash directory after confirmation.

Clear the table UI after deletion.

Definition at line 74 of file trashmanager.py.

◆ delete_keyfile()

src.frontend.trashmanager.TrashManager.delete_keyfile ( self,
key )

Permanently delete a keyfile from the trash and remove its row from the table.

Parameters
key(str): Serial number of the keyfile to delete.

Definition at line 95 of file trashmanager.py.

Here is the caller graph for this function:

◆ restore_keyfile()

src.frontend.trashmanager.TrashManager.restore_keyfile ( self,
key )

Restore a keyfile from the trash to the deactivated directory and remove its row from the table.

Parameters
key(str): Serial number of the keyfile to restore.

Definition at line 118 of file trashmanager.py.

Here is the caller graph for this function:

◆ setup_trash_table()

src.frontend.trashmanager.TrashManager.setup_trash_table ( self)

Set up the trash table displaying all deleted keyfiles.

Definition at line 31 of file trashmanager.py.

Here is the call graph for this function:

Member Data Documentation

◆ clear_all_trash

src.frontend.trashmanager.TrashManager.clear_all_trash

Definition at line 27 of file trashmanager.py.

◆ key_handler

src.frontend.trashmanager.TrashManager.key_handler = key_handler

Definition at line 24 of file trashmanager.py.

◆ reject

src.frontend.trashmanager.TrashManager.reject

Definition at line 26 of file trashmanager.py.

◆ ui

src.frontend.trashmanager.TrashManager.ui = Ui_Trash()

Definition at line 21 of file trashmanager.py.


The documentation for this class was generated from the following file: