Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 94 | bool createUDSEntry(const QString &filename, const QByteArray &path, KIO::UDSEntry &entry, | |||
---|---|---|---|---|---|
95 | short int details); | 95 | short int details); | ||
96 | int setACL(const char *path, mode_t perm, bool _directoryDefault); | 96 | int setACL(const char *path, mode_t perm, bool _directoryDefault); | ||
97 | QString getUserName(KUserId uid) const; | 97 | QString getUserName(KUserId uid) const; | ||
98 | QString getGroupName(KGroupId gid) const; | 98 | QString getGroupName(KGroupId gid) const; | ||
99 | bool deleteRecursive(const QString &path); | 99 | bool deleteRecursive(const QString &path); | ||
100 | 100 | | |||
101 | void fileSystemFreeSpace(const QUrl &url); // KF6 TODO: Turn into virtual method in SlaveBase | 101 | void fileSystemFreeSpace(const QUrl &url); // KF6 TODO: Turn into virtual method in SlaveBase | ||
102 | 102 | | |||
103 | enum ActionType { | ||||
104 | CHMOD = 1, | ||||
105 | CHOWN, | ||||
106 | DEL, | ||||
107 | MKDIR, | ||||
108 | OPEN, | ||||
109 | OPENDIR, | ||||
110 | RENAME, | ||||
111 | RMDIR, | ||||
112 | SYMLINK, | ||||
113 | UTIME, | ||||
114 | }; | ||||
115 | virtual bool execWithElevatedPrivilege(int error, ActionType action, const QVariant &arg1, | ||||
dfaure: Why virtual? Nothing inherits from this class, right? | |||||
116 | const QVariant &arg2 = QVariant(), | ||||
117 | const QVariant &arg3 = QVariant()); | ||||
103 | private: | 118 | private: | ||
104 | mutable QHash<KUserId, QString> mUsercache; | 119 | mutable QHash<KUserId, QString> mUsercache; | ||
105 | mutable QHash<KGroupId, QString> mGroupcache; | 120 | mutable QHash<KGroupId, QString> mGroupcache; | ||
106 | QFile *mFile; | 121 | QFile *mFile; | ||
107 | }; | 122 | }; | ||
108 | 123 | | |||
109 | #endif | 124 | #endif |
Why virtual? Nothing inherits from this class, right?