Changeset View
Changeset View
Standalone View
Standalone View
krArc/krarc.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class QTextCodec; | 42 | class QTextCodec; | ||
43 | 43 | | |||
44 | class kio_krarcProtocol : public QObject, public KIO::SlaveBase, public KrArcBaseManager | 44 | class kio_krarcProtocol : public QObject, public KIO::SlaveBase, public KrArcBaseManager | ||
45 | { | 45 | { | ||
46 | Q_OBJECT | 46 | Q_OBJECT | ||
47 | public: | 47 | public: | ||
48 | kio_krarcProtocol(const QByteArray &pool_socket, const QByteArray &app_socket); | 48 | kio_krarcProtocol(const QByteArray &pool_socket, const QByteArray &app_socket); | ||
49 | ~kio_krarcProtocol() override; | 49 | ~kio_krarcProtocol() override; | ||
50 | void stat(const QUrl &url) Q_DECL_OVERRIDE; | 50 | void stat(const QUrl &url) override; | ||
51 | void get(const QUrl &url) Q_DECL_OVERRIDE; | 51 | void get(const QUrl &url) override; | ||
52 | void put(const QUrl &url, int permissions, KIO::JobFlags flags) Q_DECL_OVERRIDE; | 52 | void put(const QUrl &url, int permissions, KIO::JobFlags flags) override; | ||
53 | void mkdir(const QUrl &url, int permissions) Q_DECL_OVERRIDE; | 53 | void mkdir(const QUrl &url, int permissions) override; | ||
54 | void listDir(const QUrl &url) Q_DECL_OVERRIDE; | 54 | void listDir(const QUrl &url) override; | ||
55 | void del(QUrl const & url, bool isFile) Q_DECL_OVERRIDE; | 55 | void del(QUrl const & url, bool isFile) override; | ||
56 | void copy(const QUrl &src, const QUrl &dest, int permissions, KIO::JobFlags flags) Q_DECL_OVERRIDE; | 56 | void copy(const QUrl &src, const QUrl &dest, int permissions, KIO::JobFlags flags) override; | ||
57 | void rename(const QUrl &src, const QUrl & dest, KIO::JobFlags flags) Q_DECL_OVERRIDE; | 57 | void rename(const QUrl &src, const QUrl & dest, KIO::JobFlags flags) override; | ||
58 | 58 | | |||
59 | public slots: | 59 | public slots: | ||
60 | void receivedData(KProcess *, QByteArray &); | 60 | void receivedData(KProcess *, QByteArray &); | ||
61 | void checkOutputForPassword(KProcess *, QByteArray &); | 61 | void checkOutputForPassword(KProcess *, QByteArray &); | ||
62 | 62 | | |||
63 | protected: | 63 | protected: | ||
64 | virtual bool initDirDict(const QUrl &url, bool forced = false); | 64 | virtual bool initDirDict(const QUrl &url, bool forced = false); | ||
65 | virtual bool initArcParameters(); | 65 | virtual bool initArcParameters(); | ||
66 | void checkIf7zIsEncrypted(bool &, QString) Q_DECL_OVERRIDE; | 66 | void checkIf7zIsEncrypted(bool &, QString) override; | ||
67 | virtual void parseLine(int lineNo, QString line); | 67 | virtual void parseLine(int lineNo, QString line); | ||
68 | virtual bool setArcFile(const QUrl &url); | 68 | virtual bool setArcFile(const QUrl &url); | ||
69 | virtual QString getPassword(); | 69 | virtual QString getPassword(); | ||
70 | virtual void invalidatePassword(); | 70 | virtual void invalidatePassword(); | ||
71 | QString getPath(const QUrl &url, QUrl::FormattingOptions options = nullptr); | 71 | QString getPath(const QUrl &url, QUrl::FormattingOptions options = nullptr); | ||
72 | 72 | | |||
73 | QString localeEncodedString(QString str); | 73 | QString localeEncodedString(QString str); | ||
74 | QByteArray encodeString(const QString&); | 74 | QByteArray encodeString(const QString&); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |