Changeset View
Changeset View
Standalone View
Standalone View
smb/kio_smb.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 95 | private: | |||
---|---|---|---|---|---|
123 | */ | 123 | */ | ||
124 | // bool m_showHiddenShares; //currently unused, Alex <neundorf@kde.org> | 124 | // bool m_showHiddenShares; //currently unused, Alex <neundorf@kde.org> | ||
125 | 125 | | |||
126 | /** | 126 | /** | ||
127 | * libsmbclient need global variables to store in, | 127 | * libsmbclient need global variables to store in, | ||
128 | * else it crashes on exit next method after use cache_stat, | 128 | * else it crashes on exit next method after use cache_stat, | ||
129 | * looks like gcc (C/C++) failure | 129 | * looks like gcc (C/C++) failure | ||
130 | */ | 130 | */ | ||
131 | struct stat st; | 131 | struct stat st{}; | ||
132 | 132 | | |||
133 | protected: | 133 | protected: | ||
134 | //--------------------------------------------- | 134 | //--------------------------------------------- | ||
135 | // Authentication functions (kio_smb_auth.cpp) | 135 | // Authentication functions (kio_smb_auth.cpp) | ||
136 | //--------------------------------------------- | 136 | //--------------------------------------------- | ||
137 | // (please prefix functions with auth) | 137 | // (please prefix functions with auth) | ||
138 | 138 | | |||
139 | 139 | | |||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 222 | public: | |||
243 | // Functions overwritten in kio_smb_browse.cpp | 243 | // Functions overwritten in kio_smb_browse.cpp | ||
244 | void listDir( const QUrl& url ) override; | 244 | void listDir( const QUrl& url ) override; | ||
245 | void stat( const QUrl& url ) override; | 245 | void stat( const QUrl& url ) override; | ||
246 | 246 | | |||
247 | // Functions overwritten in kio_smb_config.cpp | 247 | // Functions overwritten in kio_smb_config.cpp | ||
248 | void reparseConfiguration() override; | 248 | void reparseConfiguration() override; | ||
249 | 249 | | |||
250 | // Functions overwritten in kio_smb_dir.cpp | 250 | // Functions overwritten in kio_smb_dir.cpp | ||
251 | void copy( const QUrl& src, const QUrl &dest, int permissions, KIO::JobFlags flags ) override; | 251 | void copy( const QUrl& src, const QUrl &dst, int permissions, KIO::JobFlags flags ) override; | ||
252 | void del( const QUrl& kurl, bool isfile) override; | 252 | void del( const QUrl& kurl, bool isfile) override; | ||
253 | void mkdir( const QUrl& kurl, int permissions ) override; | 253 | void mkdir( const QUrl& kurl, int permissions ) override; | ||
254 | void rename( const QUrl& src, const QUrl& dest, KIO::JobFlags flags ) override; | 254 | void rename( const QUrl& src, const QUrl& dest, KIO::JobFlags flags ) override; | ||
255 | 255 | | |||
256 | // Functions overwritten in kio_smb_file.cpp | 256 | // Functions overwritten in kio_smb_file.cpp | ||
257 | void get( const QUrl& kurl ) override; | 257 | void get( const QUrl& kurl ) override; | ||
258 | void put( const QUrl& kurl, int permissions, KIO::JobFlags flags ) override; | 258 | void put( const QUrl& kurl, int permissions, KIO::JobFlags flags ) override; | ||
259 | void open( const QUrl& kurl, QIODevice::OpenMode mode ) override; | 259 | void open( const QUrl& kurl, QIODevice::OpenMode mode ) override; | ||
Show All 10 Lines | |||||
270 | //virtual void slave_status(); | 270 | //virtual void slave_status(); | ||
271 | void special( const QByteArray & ) override; | 271 | void special( const QByteArray & ) override; | ||
272 | 272 | | |||
273 | protected: | 273 | protected: | ||
274 | void virtual_hook(int id, void *data) override; | 274 | void virtual_hook(int id, void *data) override; | ||
275 | 275 | | |||
276 | private: | 276 | private: | ||
277 | SMBError errnumToKioError(const SMBUrl& url, const int errNum); | 277 | SMBError errnumToKioError(const SMBUrl& url, const int errNum); | ||
278 | void smbCopy(const QUrl& src, const QUrl &dest, int permissions, KIO::JobFlags flags); | 278 | void smbCopy(const QUrl& src, const QUrl &dst, int permissions, KIO::JobFlags flags); | ||
279 | void smbCopyGet(const QUrl& src, const QUrl& dest, int permissions, KIO::JobFlags flags); | 279 | void smbCopyGet(const QUrl& ksrc, const QUrl& kdst, int permissions, KIO::JobFlags flags); | ||
280 | void smbCopyPut(const QUrl& src, const QUrl& dest, int permissions, KIO::JobFlags flags); | 280 | void smbCopyPut(const QUrl& ksrc, const QUrl& kdst, int permissions, KIO::JobFlags flags); | ||
281 | bool workaroundEEXIST(const int errNum) const; | 281 | bool workaroundEEXIST(const int errNum) const; | ||
282 | 282 | | |||
283 | void fileSystemFreeSpace(const QUrl &url); | 283 | void fileSystemFreeSpace(const QUrl &url); | ||
284 | 284 | | |||
285 | /** | 285 | /** | ||
286 | * Used in open(), read(), write(), and close() | 286 | * Used in open(), read(), write(), and close() | ||
287 | * FIXME Placing these in the private section above causes m_openUrl = kurl | 287 | * FIXME Placing these in the private section above causes m_openUrl = kurl | ||
288 | * to fail in SMBSlave::open. Need to find out why this is. | 288 | * to fail in SMBSlave::open. Need to find out why this is. | ||
Show All 34 Lines |