fosKeyMan
|
Class to manage deleted keyfiles in the trash directory. More...
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() | |
Class to manage deleted keyfiles in the trash directory.
Definition at line 8 of file trashmanager.py.
src.frontend.trashmanager.TrashManager.__init__ | ( | self, | |
key_handler, | |||
parent = None ) |
Initialize the trash manager dialog.
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.
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.
src.frontend.trashmanager.TrashManager.delete_keyfile | ( | self, | |
key ) |
Permanently delete a keyfile from the trash and remove its row from the table.
key | (str): Serial number of the keyfile to delete. |
Definition at line 95 of file trashmanager.py.
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.
key | (str): Serial number of the keyfile to restore. |
Definition at line 118 of file trashmanager.py.
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.
src.frontend.trashmanager.TrashManager.clear_all_trash |
Definition at line 27 of file trashmanager.py.
src.frontend.trashmanager.TrashManager.key_handler = key_handler |
Definition at line 24 of file trashmanager.py.
src.frontend.trashmanager.TrashManager.reject |
Definition at line 26 of file trashmanager.py.
src.frontend.trashmanager.TrashManager.ui = Ui_Trash() |
Definition at line 21 of file trashmanager.py.