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/trashimpl.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/trashimpl.h')
-rw-r--r-- | tdeioslave/trash/trashimpl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeioslave/trash/trashimpl.h b/tdeioslave/trash/trashimpl.h index 6e7af2bad..571bbd353 100644 --- a/tdeioslave/trash/trashimpl.h +++ b/tdeioslave/trash/trashimpl.h @@ -95,6 +95,9 @@ public: /// Move data from the old trash system to the new one void migrateOldTrash(); + /// Resize the trash based on the current settings if necessary + void resizeTrash(int trashId); + /// TDEIO error code int lastErrorCode() const { return m_lastErrorCode; } TQString lastErrorMessage() const { return m_lastErrorMessage; } |