summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GDirectoryModel.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-31 07:09:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-31 07:09:35 +0200
commit993ab84a0d07591352f7a02ba0c2b3269b44ca1e (patch)
treeb8009d3e4220fdc5594c31c95a465c581f841af6 /Libraries/LibGUI/GDirectoryModel.h
parent10b4c92e214bbe17bca0e7e7c2c6893555e65ba4 (diff)
downloadserenity-993ab84a0d07591352f7a02ba0c2b3269b44ca1e.zip
GDirectoryModel: Add "modification time" column.
Fixes #373.
Diffstat (limited to 'Libraries/LibGUI/GDirectoryModel.h')
-rw-r--r--Libraries/LibGUI/GDirectoryModel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GDirectoryModel.h b/Libraries/LibGUI/GDirectoryModel.h
index 8787a56d17..e031c9aa69 100644
--- a/Libraries/LibGUI/GDirectoryModel.h
+++ b/Libraries/LibGUI/GDirectoryModel.h
@@ -19,6 +19,7 @@ public:
Owner,
Group,
Permissions,
+ ModificationTime,
Inode,
__Count,
};
@@ -43,6 +44,7 @@ public:
uid_t uid { 0 };
uid_t gid { 0 };
ino_t inode { 0 };
+ time_t mtime { 0 };
mutable RefPtr<GraphicsBitmap> thumbnail;
bool is_directory() const { return S_ISDIR(mode); }
bool is_executable() const { return mode & S_IXUSR; }