summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRohan Garg <rohan16garg@gmail.com>2010-07-06 20:07:50 +0530
committerRohan Garg <rohan16garg@gmail.com>2010-07-06 20:07:50 +0530
commitce341e88bbcc13909b964932c774257dae681b54 (patch)
tree71852c180014416b5e70c7bbfcb2cd5820c1a4b3 /src
parentAdd comment="KDE::DoNotExtract" to TextLabel. (diff)
downloadrekonq-ce341e88bbcc13909b964932c774257dae681b54.tar.xz
apturl handling
modified: src/protocolhandler.cpp
Diffstat (limited to 'src')
-rw-r--r--src/protocolhandler.cpp17
1 files changed, 17 insertions, 0 deletions
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 <KJob>
#include <kio/udsentry.h>
#include <KMessageBox>
+#include <kprocess.h>
// Qt Includes
#include <QLatin1String>
@@ -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"))
{