diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-18 20:28:43 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-18 20:28:43 +0100 |
commit | d09e7314a81210337b89bd3763c60ac3b2c2eefa (patch) | |
tree | c4a89c3fe2b0b645a93e738b12b4720c157b1940 /src/protocolhandler.h | |
parent | Ronny's patch about selecting previous tab if active one is closed (diff) | |
download | rekonq-d09e7314a81210337b89bd3763c60ac3b2c2eefa.tar.xz |
native ftp handling & file one ported to kde functions.
One step to be feature complete (at least for 0.4):
I need to know if an ftp url represent a file or a dir..
Diffstat (limited to 'src/protocolhandler.h')
-rw-r--r-- | src/protocolhandler.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/protocolhandler.h b/src/protocolhandler.h index 8628a4f7..81cda4b6 100644 --- a/src/protocolhandler.h +++ b/src/protocolhandler.h @@ -28,23 +28,34 @@ #define PROTOCOL_HANDLER_H +#include <KDirLister> +#include <QWebFrame> + class QNetworkRequest; class QWebFrame; class QString; class KUrl; -class ProtocolHandler +class ProtocolHandler : public QObject { - +Q_OBJECT + public: - ProtocolHandler(); - ~ProtocolHandler(); + ProtocolHandler(QObject *parent = 0); + ~ProtocolHandler(); + + bool handle(const QNetworkRequest &request, QWebFrame *frame); - bool handle(const QNetworkRequest &request, QWebFrame *frame); +private slots: + void showResults(const KFileItemList &); private: - QString dirHandling(const KUrl &url); + QString dirHandling(const KFileItemList &list); + + KDirLister *_lister; + QWebFrame *_frame; + KUrl _url; }; #endif // PROTOCOL_HANDLER_H |