Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 88 | #if HAVE_POSIX_ACL | |||
---|---|---|---|---|---|
89 | static bool isExtendedACL(acl_t acl); | 89 | static bool isExtendedACL(acl_t acl); | ||
90 | #endif | 90 | #endif | ||
91 | 91 | | |||
92 | protected: | 92 | protected: | ||
93 | void virtual_hook(int id, void *data) override; | 93 | void virtual_hook(int id, void *data) override; | ||
94 | 94 | | |||
95 | private: | 95 | private: | ||
96 | bool createUDSEntry(const QString &filename, const QByteArray &path, KIO::UDSEntry &entry, | 96 | bool createUDSEntry(const QString &filename, const QByteArray &path, KIO::UDSEntry &entry, | ||
97 | short int details); | 97 | KIO::StatDetails details); | ||
98 | int setACL(const char *path, mode_t perm, bool _directoryDefault); | 98 | int setACL(const char *path, mode_t perm, bool _directoryDefault); | ||
99 | QString getUserName(KUserId uid) const; | 99 | QString getUserName(KUserId uid) const; | ||
100 | QString getGroupName(KGroupId gid) const; | 100 | QString getGroupName(KGroupId gid) const; | ||
101 | bool deleteRecursive(const QString &path); | 101 | bool deleteRecursive(const QString &path); | ||
102 | 102 | | |||
103 | void fileSystemFreeSpace(const QUrl &url); // KF6 TODO: Turn into virtual method in SlaveBase | 103 | void fileSystemFreeSpace(const QUrl &url); // KF6 TODO: Turn into virtual method in SlaveBase | ||
104 | 104 | | |||
105 | bool privilegeOperationUnitTestMode(); | 105 | bool privilegeOperationUnitTestMode(); | ||
Show All 9 Lines | |||||
115 | 115 | | |||
116 | // Close without calling finish(). Use this to close after error. | 116 | // Close without calling finish(). Use this to close after error. | ||
117 | void closeWithoutFinish(); | 117 | void closeWithoutFinish(); | ||
118 | 118 | | |||
119 | private: | 119 | private: | ||
120 | mutable QHash<KUserId, QString> mUsercache; | 120 | mutable QHash<KUserId, QString> mUsercache; | ||
121 | mutable QHash<KGroupId, QString> mGroupcache; | 121 | mutable QHash<KGroupId, QString> mGroupcache; | ||
122 | QFile *mFile; | 122 | QFile *mFile; | ||
123 | KIO::StatDetails getStatDetails(); | ||||
dfaure: Please move it up with the other private methods. This last section is member variables only. | |||||
123 | }; | 124 | }; | ||
124 | 125 | | |||
125 | #endif | 126 | #endif |
Please move it up with the other private methods. This last section is member variables only.
Also, it could be marked as const.