diff options
author | Michele Calgaro <[email protected]> | 2019-04-14 15:07:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-04-14 15:07:33 +0900 |
commit | c53dbf95cb42a7bb22e8690bf699fda32e657845 (patch) | |
tree | 896452138f10e9106e1533720efd0bb3923eb45c /tdeioslave/trash/trash_constant.h | |
parent | 691c9204a1a6dcbce52d41e62a988044e48270d4 (diff) | |
download | tdebase-c53dbf95cb42a7bb22e8690bf699fda32e657845.tar.gz tdebase-c53dbf95cb42a7bb22e8690bf699fda32e657845.zip |
Improved code for trash bin management.
1. When size limit is used, a file bigger than the trash size can't be
trashed anymore (a warning message is shown).
2. When size limit is used and warning policy selected, files can't be
trashed anymore if the total size of the trash will exceed the set size
(a warning message is shown).
3. When the trash size settings are modified, the content of the trash
is adjusted based on the new settings.
4. Fixed load/saving of trash options when more than one trash folder exists.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/trash/trash_constant.h')
-rw-r--r-- | tdeioslave/trash/trash_constant.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tdeioslave/trash/trash_constant.h b/tdeioslave/trash/trash_constant.h index a20dbcc24..1dfad9273 100644 --- a/tdeioslave/trash/trash_constant.h +++ b/tdeioslave/trash/trash_constant.h @@ -36,6 +36,13 @@ namespace TrashConstant SIZE_ID_GB = 3, SIZE_ID_TB = 4 }; + + enum + { + ACTION_WARNING = 0, + ACTION_DELETE_OLDEST = 1, + ACTION_DELETE_BIGGEST = 2 + }; } #endif |