File indexing completed on 2024-05-05 03:56:07

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 2004 Kevin Ottens <ervin ipsquad net>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef REMOTEIMPL_H
0009 #define REMOTEIMPL_H
0010 
0011 #include <KIO/UDSEntry>
0012 #include <QUrl>
0013 
0014 class RemoteImpl
0015 {
0016 public:
0017     RemoteImpl();
0018 
0019     void createTopLevelEntry(KIO::UDSEntry &entry) const;
0020     bool statNetworkFolder(KIO::UDSEntry &entry, const QString &filename) const;
0021 
0022     void listRoot(KIO::UDSEntryList &list) const;
0023 
0024     QUrl findBaseURL(const QString &filename) const;
0025     QString findDesktopFile(const QString &filename) const;
0026 
0027     bool deleteNetworkFolder(const QString &filename) const;
0028     bool renameFolders(const QString &src, const QString &dest, bool overwrite) const;
0029     bool changeFolderTarget(const QString &src, const QString &target, bool overwrite) const;
0030 
0031 private:
0032     bool findDirectory(const QString &filename, QString &directory) const;
0033     bool createEntry(KIO::UDSEntry &entry, const QString &directory, const QString &file) const;
0034 };
0035 
0036 #endif