Changeset View
Changeset View
Standalone View
Standalone View
krusader/FileSystem/fileitem.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
64 | * @param size size of file | 64 | * @param size size of file | ||
65 | * @param mode mode of file (file type and permissions) | 65 | * @param mode mode of file (file type and permissions) | ||
66 | * @param mtime file modification time | 66 | * @param mtime file modification time | ||
67 | * @param ctime file changed time | 67 | * @param ctime file changed time | ||
68 | * @param atime file access time | 68 | * @param atime file access time | ||
69 | * @param uid Unix user id of file owner. Use -1 here and provide an owner name for non-local files. | 69 | * @param uid Unix user id of file owner. Use -1 here and provide an owner name for non-local files. | ||
70 | * @param gid Unix group id of file group. Use -1 here and provide a group name for non-local files. | 70 | * @param gid Unix group id of file group. Use -1 here and provide a group name for non-local files. | ||
71 | * @param owner user name of file owner. Can be empty for local files | 71 | * @param owner user name of file owner. Can be empty for local files | ||
72 | * @param group group name of file group. Cam be empty for local files. | 72 | * @param group group name of file group. Can be empty for local files. | ||
73 | * @param isLink true if file is a symbolic link. Else false. | 73 | * @param isLink true if file is a symbolic link. Else false. | ||
74 | * @param linkDest link destination path if file is a link. Relative or absolute. Empty by default. | 74 | * @param linkDest link destination path if file is a link. Relative or absolute. Empty by default. | ||
75 | * @param isBrokenLink true if file is a symbolic link and destination file does not exists. Else false. | 75 | * @param isBrokenLink true if file is a symbolic link and destination file does not exists. Else false. | ||
76 | * @param acl ACL string of file. Can be empty and is loaded on demand. | 76 | * @param acl ACL string of file. Can be empty and is loaded on demand. | ||
77 | * @param defaultAcl default ACL string of file (only for directories). Can be empty and is loaded on demand. | 77 | * @param defaultAcl default ACL string of file (only for directories). Can be empty and is loaded on demand. | ||
78 | */ | 78 | */ | ||
79 | FileItem(const QString &name, const QUrl &url, bool isDir, | 79 | FileItem(const QString &name, const QUrl &url, bool isDir, | ||
80 | KIO::filesize_t size, mode_t mode, | 80 | KIO::filesize_t size, mode_t mode, | ||
81 | time_t mtime, time_t ctime, time_t atime, | 81 | time_t mtime, time_t ctime, time_t atime, | ||
82 | uid_t uid = -1, gid_t gid = -1, | 82 | uid_t uid = -1, gid_t gid = -1, | ||
83 | const QString &owner = QString(), const QString &group = QString(), | 83 | const QString &owner = QString(), const QString &group = QString(), | ||
84 | bool isLink = false, const QString &linkDest = QString(), bool isBrokenLink = false, | 84 | bool isLink = false, const QString &linkDest = QString(), bool isBrokenLink = false, | ||
85 | const QString &acl = QString(), const QString &defaultAcl = QString()); | 85 | const QString &acl = QString(), const QString &defaultAcl = QString()); | ||
86 | 86 | | |||
87 | /** Create a new ".." dummy file item. */ | 87 | /** Create a new ".." dummy file item. */ | ||
88 | static FileItem *createDummy(); | 88 | static FileItem *createDummy(); | ||
89 | /** Create a file item for a broken file which metadata could not be read. */ | ||||
90 | static FileItem *createBroken(const QString &name, const QUrl &url); | ||||
89 | /** Create a new virtual directory. */ | 91 | /** Create a new virtual directory. */ | ||
90 | static FileItem *createVirtualDir(const QString &name, const QUrl &url); | 92 | static FileItem *createVirtualDir(const QString &name, const QUrl &url); | ||
91 | /** Create a new file item copy with a different name. */ | 93 | /** Create a new file item copy with a different name. */ | ||
92 | static FileItem *createCopy(const FileItem &file, const QString &newName); | 94 | static FileItem *createCopy(const FileItem &file, const QString &newName); | ||
93 | 95 | | |||
94 | // following functions give-out file details | 96 | // following functions give-out file details | ||
95 | inline const QString &getName() const { return m_name; } | 97 | inline const QString &getName() const { return m_name; } | ||
96 | /** Return the file size. Returns 0 for directories with unknown size. */ | 98 | /** Return the file size. Returns 0 for directories with unknown size. */ | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |