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 KIO_REMOTE_H |
9 | #define KIO_REMOTE_H |
10 | |
11 | #include "remoteimpl.h" |
12 | #include <KIO/WorkerBase> |
13 | |
14 | class RemoteProtocol : public KIO::WorkerBase |
15 | { |
16 | public: |
17 | RemoteProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app); |
18 | ~RemoteProtocol() override; |
19 | |
20 | KIO::WorkerResult listDir(const QUrl &url) override; |
21 | KIO::WorkerResult stat(const QUrl &url) override; |
22 | KIO::WorkerResult del(const QUrl &url, bool isFile) override; |
23 | KIO::WorkerResult get(const QUrl &url) override; |
24 | KIO::WorkerResult rename(const QUrl &src, const QUrl &dest, KIO::JobFlags flags) override; |
25 | KIO::WorkerResult symlink(const QString &target, const QUrl &dest, KIO::JobFlags flags) override; |
26 | |
27 | private: |
28 | KIO::WorkerResult listRoot(); |
29 | |
30 | RemoteImpl m_impl; |
31 | }; |
32 | |
33 | #endif |
34 |