summaryrefslogtreecommitdiffstats
path: root/tdeioslave/trash/trash_constant.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2016-11-20 23:58:22 +0900
committerMichele Calgaro <[email protected]>2016-11-20 23:58:22 +0900
commitb6887381d7062e2150c5511d50ac03421bcc211d (patch)
tree7235f10c87eda8b99e976f6eebf8a35ae1fbe75a /tdeioslave/trash/trash_constant.h
parent6110a523f9acb34a704fda02b2aa9d5e555358f5 (diff)
downloadtdebase-b6887381d7062e2150c5511d50ac03421bcc211d.tar.gz
tdebase-b6887381d7062e2150c5511d50ac03421bcc211d.zip
Trash limit: add "fixed size" configuration option and code
improvements. This relates to bug 1923. Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/trash/trash_constant.h')
-rw-r--r--tdeioslave/trash/trash_constant.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/tdeioslave/trash/trash_constant.h b/tdeioslave/trash/trash_constant.h
new file mode 100644
index 000000000..aab42b3aa
--- /dev/null
+++ b/tdeioslave/trash/trash_constant.h
@@ -0,0 +1,41 @@
+/* This file is part of the TDE project
+ Copyright (C) 2016 Michele Calgaro <michele__DOT__calgaro__AT__yahoo__DOT__it
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef TRASH_CONSTANT_H
+#define TRASH_CONSTANT_H
+
+namespace TrashConstant
+{
+ enum
+ {
+ SIZE_LIMIT_PERCENT = 0,
+ SIZE_LIMIT_FIXED = 1,
+ };
+
+ enum
+ {
+ SIZE_ID_B = 0,
+ SIZE_ID_KB = 1,
+ SIZE_ID_MB = 2,
+ SIZE_ID_GB = 3,
+ SIZE_ID_TB = 4
+ };
+}
+
+#endif