diff options
author | Janne Anttila <janne.anttila@digia.com> | 2010-11-15 11:22:27 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2010-11-15 12:25:42 (GMT) |
commit | d92cbfc5d04d750dea1e49a377e62be564cac788 (patch) | |
tree | f23fb1b9b8e349fc8ccd0c3d3f4e3f216ae2f7b9 /src/gui/util/util.pri | |
parent | 012c865ab30ed45fc57ee5b49b625697cc065e82 (diff) | |
download | Qt-d92cbfc5d04d750dea1e49a377e62be564cac788.zip Qt-d92cbfc5d04d750dea1e49a377e62be564cac788.tar.gz Qt-d92cbfc5d04d750dea1e49a377e62be564cac788.tar.bz2 |
Switched qdesktopservices to use SchemeHandler for Symbian^3 and later.
SchemeHandler is plugin extensible component to handle several
different URI schemes. By default schemes such as http, https, rtsp,
mailto, file, wtai, tel and cti are supported.
In some devices/platforms also other schemes might be supported.
This commit only defines the USE_SCHEMEHANDLER macro and re-orders
the qdesktopservices_s60 source code to make it more readable and to
make it compile both with and without the flag. The actual
implementation was provided at the same time when qdesktopservices
for symbian was initially implemented.
Why support is enabled only for Symbian^3 and later? SchemeHandler
component does not exist in S60 3.1 - 5.0 public SDKs, actually it does
not exist also in Forum Nokia provided Symbian^3 SDK, but is available
in Symbian^3 PDK. Since building Qt for Symbian^3 anyway require PDK
and because the release builds for Symbian^3 are done separately
from older Symbian versions, PDK dependency should be Ok.
It might be that SchemeHandler headers will be relicensed as part of Qt,
then SchemeHandler support also for older S60/Symbian releases can be
enabled. If this happens it will be separate commit.
Task-number: QTBUG-15282
Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui/util/util.pri')
-rw-r--r-- | src/gui/util/util.pri | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/gui/util/util.pri b/src/gui/util/util.pri index bea520e..d1c4ff8 100644 --- a/src/gui/util/util.pri +++ b/src/gui/util/util.pri @@ -43,12 +43,17 @@ embedded { } symbian { - LIBS += -lsendas2 -letext -lapmime -lplatformenv - contains(QT_CONFIG, s60) { - contains(CONFIG, is_using_gnupoc) { - LIBS += -lcommonui - } else { - LIBS += -lCommonUI + LIBS += -letext -lplatformenv + contains(S60_VERSION, 3.1)|contains(S60_VERSION, 3.2)|contains(S60_VERSION, 5.0) { + LIBS += -lsendas2 -lapmime + contains(QT_CONFIG, s60) { + contains(CONFIG, is_using_gnupoc) { + LIBS += -lcommonui + } else { + LIBS += -lCommonUI + } } + } else { + DEFINES += USE_SCHEMEHANDLER } -} +}
\ No newline at end of file |