Changeset View
Changeset View
Standalone View
Standalone View
autotests/jobtest.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | 134 | protected Q_SLOTS: | |||
---|---|---|---|---|---|
137 | void slotDataReq(KIO::Job *, QByteArray &); | 137 | void slotDataReq(KIO::Job *, QByteArray &); | ||
138 | void slotResult(KJob *); | 138 | void slotResult(KJob *); | ||
139 | void slotMimetype(KIO::Job *, const QString &); | 139 | void slotMimetype(KIO::Job *, const QString &); | ||
140 | 140 | | |||
141 | private: | 141 | private: | ||
142 | void enterLoop(); | 142 | void enterLoop(); | ||
143 | enum { AlreadyExists = 1 }; | 143 | enum { AlreadyExists = 1 }; | ||
144 | void copyLocalFile(const QString &src, const QString &dest); | 144 | void copyLocalFile(const QString &src, const QString &dest); | ||
145 | void checkXattrFsSupport(const QString &writeTest); | ||||
146 | void setXattr(const QString &src); | ||||
147 | QList<QByteArray> readXattr(const QString &src); | ||||
148 | void compareXattr(const QString &src, const QString &dest); | ||||
145 | void copyLocalDirectory(const QString &src, const QString &dest, int flags = 0); | 149 | void copyLocalDirectory(const QString &src, const QString &dest, int flags = 0); | ||
146 | void moveLocalFile(const QString &src, const QString &dest); | 150 | void moveLocalFile(const QString &src, const QString &dest); | ||
147 | void moveLocalDirectory(const QString &src, const QString &dest); | 151 | void moveLocalDirectory(const QString &src, const QString &dest); | ||
148 | //void copyFileToSystem( bool resolve_local_urls ); | 152 | //void copyFileToSystem( bool resolve_local_urls ); | ||
149 | void deleteSymlink(bool using_fast_path); | 153 | void deleteSymlink(bool using_fast_path); | ||
150 | void deleteManyDirs(bool using_fast_path); | 154 | void deleteManyDirs(bool using_fast_path); | ||
151 | void deleteManyFilesTogether(bool using_fast_path); | 155 | void deleteManyFilesTogether(bool using_fast_path); | ||
152 | void moveDestAlreadyExistsAutoRename(const QString &destDir, bool moveDirs); | 156 | void moveDestAlreadyExistsAutoRename(const QString &destDir, bool moveDirs); | ||
153 | 157 | | |||
154 | int m_result; | 158 | int m_result; | ||
155 | QByteArray m_data; | 159 | QByteArray m_data; | ||
156 | QStringList m_names; | 160 | QStringList m_names; | ||
157 | int m_dataReqCount; | 161 | int m_dataReqCount; | ||
158 | QString m_mimetype; | 162 | QString m_mimetype; | ||
163 | QString m_setXattrCmd; | ||||
164 | QString m_getXattrCmd; | ||||
165 | std::function<QStringList(const QString&, const QString&, const QString&)> m_setXattrFormatArgs; | ||||
166 | bool m_SkipXattr = false; | ||||
159 | }; | 167 | }; | ||
160 | 168 | | |||
161 | #endif | 169 | #endif |