mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 11:44:09 +02:00
28 lines
734 B
C++
28 lines
734 B
C++
//
|
|
// ResourceRequestObserver.cpp
|
|
// libraries/shared/src
|
|
//
|
|
// Created by Kerry Ivan Kurian on 9/27/18.
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#include "ResourceRequestObserver.h"
|
|
|
|
#include <QJsonArray>
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
|
|
void ResourceRequestObserver::update(const QUrl& requestUrl,
|
|
const qint64 callerId,
|
|
const QString& extra) {
|
|
QJsonArray array;
|
|
QJsonObject data { { "url", requestUrl.toString() },
|
|
{ "callerId", callerId },
|
|
{ "extra", extra }
|
|
};
|
|
emit resourceRequestEvent(data.toVariantMap());
|
|
}
|