Changeset View
Changeset View
Standalone View
Standalone View
kioslave/remote/remoteimpl.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #ifndef REMOTEIMPL_H | 20 | #ifndef REMOTEIMPL_H | ||
21 | #define REMOTEIMPL_H | 21 | #define REMOTEIMPL_H | ||
22 | 22 | | |||
23 | #include <kio/global.h> | 23 | #include <kio/global.h> | ||
24 | #include <kio/job.h> | 24 | #include <kio/job.h> | ||
25 | #include <QUrl> | 25 | #include <QUrl> | ||
26 | 26 | | |||
27 | | ||||
28 | | ||||
29 | class RemoteImpl | 27 | class RemoteImpl | ||
30 | { | 28 | { | ||
31 | public: | 29 | public: | ||
32 | RemoteImpl(); | 30 | RemoteImpl(); | ||
33 | 31 | | |||
34 | void createTopLevelEntry(KIO::UDSEntry &entry) const; | 32 | void createTopLevelEntry(KIO::UDSEntry &entry) const; | ||
35 | bool createWizardEntry(KIO::UDSEntry &entry) const; | 33 | bool createWizardEntry(KIO::UDSEntry &entry) const; | ||
36 | bool isWizardURL(const QUrl &url) const; | 34 | bool isWizardURL(const QUrl &url) const; | ||
37 | bool statNetworkFolder(KIO::UDSEntry &entry, const QString &filename) const; | 35 | bool statNetworkFolder(KIO::UDSEntry &entry, const QString &filename) const; | ||
38 | 36 | | |||
39 | void listRoot(KIO::UDSEntryList& list) const; | 37 | void listRoot(KIO::UDSEntryList &list) const; | ||
40 | 38 | | |||
41 | QUrl findBaseURL(const QString &filename) const; | 39 | QUrl findBaseURL(const QString &filename) const; | ||
42 | QString findDesktopFile(const QString &filename) const; | 40 | QString findDesktopFile(const QString &filename) const; | ||
43 | 41 | | |||
44 | bool deleteNetworkFolder(const QString &filename) const; | 42 | bool deleteNetworkFolder(const QString &filename) const; | ||
45 | bool renameFolders(const QString &src, const QString &dest, | 43 | bool renameFolders(const QString &src, const QString &dest, bool overwrite) const; | ||
46 | bool overwrite) const; | 44 | bool changeFolderTarget(const QString &src, const QString &target, bool overwrite) const; | ||
47 | bool changeFolderTarget(const QString &src, const QString &target, | | |||
48 | bool overwrite) const; | | |||
49 | 45 | | |||
50 | private: | 46 | private: | ||
51 | bool findDirectory(const QString &filename, QString &directory) const; | 47 | bool findDirectory(const QString &filename, QString &directory) const; | ||
52 | void createEntry(KIO::UDSEntry& entry, const QString &directory, | 48 | void createEntry(KIO::UDSEntry &entry, const QString &directory, const QString &file) const; | ||
53 | const QString &file) const; | | |||
54 | }; | 49 | }; | ||
55 | 50 | | |||
56 | #endif | 51 | #endif |