| 1 | /* |
| 2 | This file is part of the KDE project |
| 3 | SPDX-FileCopyrightText: 2004 Kevin Ottens <ervin ipsquad net> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef REMOTEIMPL_H |
| 9 | #define REMOTEIMPL_H |
| 10 | |
| 11 | #include <KIO/UDSEntry> |
| 12 | #include <QUrl> |
| 13 | |
| 14 | class RemoteImpl |
| 15 | { |
| 16 | public: |
| 17 | RemoteImpl(); |
| 18 | |
| 19 | void createTopLevelEntry(KIO::UDSEntry &entry) const; |
| 20 | bool statNetworkFolder(KIO::UDSEntry &entry, const QString &filename) const; |
| 21 | |
| 22 | void listRoot(KIO::UDSEntryList &list) const; |
| 23 | |
| 24 | QUrl findBaseURL(const QString &filename) const; |
| 25 | QString findDesktopFile(const QString &filename) const; |
| 26 | |
| 27 | bool deleteNetworkFolder(const QString &filename) const; |
| 28 | bool renameFolders(const QString &src, const QString &dest, bool overwrite) const; |
| 29 | bool changeFolderTarget(const QString &src, const QString &target, bool overwrite) const; |
| 30 | |
| 31 | private: |
| 32 | bool findDirectory(const QString &filename, QString &directory) const; |
| 33 | bool createEntry(KIO::UDSEntry &entry, const QString &directory, const QString &file) const; |
| 34 | }; |
| 35 | |
| 36 | #endif |
| 37 | |