Qt 6.x
The Qt SDK
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
9#if defined(QQNXNAVIGATOR_DEBUG)
10#define qNavigatorDebug qDebug
11#else
12#define qNavigatorDebug QT_NO_QDEBUG_MACRO
13#endif
14
16
19{
20}
21
23{
24}
25
27{
28 if (!url.isValid() || url.isRelative())
29 return false;
30
31 // not using QUrl::toEncoded() because for e.g. camera:// it creates camera:
32 // which is not recognized by the navigator anymore
33 const bool result = requestInvokeUrl(url.toString().toUtf8());
34
35 qNavigatorDebug() << "url=" << url << "result=" << result;
36
37 return result;
38}
39
\inmodule QtCore
Definition qobject.h:90
bool invokeUrl(const QUrl &url)
QQnxAbstractNavigator(QObject *parent=nullptr)
virtual bool requestInvokeUrl(const QByteArray &encodedUrl)=0
QByteArray toUtf8() const &
Definition qstring.h:563
\inmodule QtCore
Definition qurl.h:94
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
Definition qurl.cpp:2797
bool isValid() const
Returns true if the URL is non-empty and valid; otherwise returns false.
Definition qurl.cpp:1874
QString toString(FormattingOptions options=FormattingOptions(PrettyDecoded)) const
Returns a string representation of the URL.
Definition qurl.cpp:2828
Combined button and popup list for selecting options.
GLuint64EXT * result
[6]
#define qNavigatorDebug
QUrl url("example.com")
[constructor-url-reference]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent