From ce341e88bbcc13909b964932c774257dae681b54 Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Tue, 6 Jul 2010 20:07:50 +0530 Subject: apturl handling modified: src/protocolhandler.cpp --- src/protocolhandler.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/protocolhandler.cpp') diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp index 568aa400..1f84b420 100644 --- a/src/protocolhandler.cpp +++ b/src/protocolhandler.cpp @@ -53,6 +53,7 @@ #include #include #include +#include // Qt Includes #include @@ -118,6 +119,22 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra return true; } + // "apturl" handling + if (_url.protocol() == QL1S ("apt")) + { + //Declare apturl as QString + QString apturl="apturl"; + //We need to convert the url to QStringList to pass as a argument to apturl + QStringList host; + host << _url.url(); + + if ( KProcess::execute (apturl,host)==0) + return true; + else + return false; + + } + // "abp" handling if (_url.protocol() == QL1S("abp")) { -- cgit v1.2.1