diff options
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 |