diff options
author | Rohan Garg <rohan16garg@gmail.com> | 2010-07-06 20:07:50 +0530 |
---|---|---|
committer | Rohan Garg <rohan16garg@gmail.com> | 2010-07-06 20:07:50 +0530 |
commit | ce341e88bbcc13909b964932c774257dae681b54 (patch) | |
tree | 71852c180014416b5e70c7bbfcb2cd5820c1a4b3 /src/protocolhandler.cpp | |
parent | Add comment="KDE::DoNotExtract" to TextLabel. (diff) | |
download | rekonq-ce341e88bbcc13909b964932c774257dae681b54.tar.xz |
apturl handling
modified: src/protocolhandler.cpp
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r-- | src/protocolhandler.cpp | 17 |
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")) { |