Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxabstractnavigator.cpp
Go to the documentation of this file.
1// Copyright (C) 2012 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QDebug>
7#include <QUrl>
8
10
11Q_LOGGING_CATEGORY(lcQpaQnxNavigator, "qt.qpa.qnx.navigator");
12
13QQnxAbstractNavigator::QQnxAbstractNavigator(QObject *parent)
14 : QObject(parent)
15{
16}
17
21
22bool QQnxAbstractNavigator::invokeUrl(const QUrl &url)
23{
24 if (!url.isValid() || url.isRelative())
25 return false;
26
27 // not using QUrl::toEncoded() because for e.g. camera:// it creates camera:
28 // which is not recognized by the navigator anymore
29 const bool result = requestInvokeUrl(url.toString().toUtf8());
30
31 qCDebug(lcQpaQnxNavigator) << Q_FUNC_INFO << "url =" << url << "result =" << result;
32
33 return result;
34}
35
36QT_END_NAMESPACE
bool invokeUrl(const QUrl &url)