summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxservices.cpp
blob: 379bb635076ec2b460269ec618c5dc1b97a392be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (C) 2011 - 2012 Research In Motion
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qqnxservices.h"

#include "qqnxabstractnavigator.h"

QT_BEGIN_NAMESPACE

QQnxServices::QQnxServices(QQnxAbstractNavigator *navigator)
    : m_navigator(navigator)
{
}

QQnxServices::~QQnxServices()
{
}

bool QQnxServices::openUrl(const QUrl &url)
{
    return navigatorInvoke(url);
}

bool QQnxServices::openDocument(const QUrl &url)
{
    return navigatorInvoke(url);
}

bool QQnxServices::navigatorInvoke(const QUrl &url)
{
    return m_navigator->invokeUrl(url);
}

QT_END_NAMESPACE