mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
24 lines
536 B
C++
24 lines
536 B
C++
//
|
|
// ResourceRequest.cpp
|
|
// libraries/networking/src
|
|
//
|
|
// Created by Ryan Huffman on 2015/07/23
|
|
// Copyright 2015 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 "ResourceRequest.h"
|
|
|
|
ResourceRequest::ResourceRequest(QObject* parent, const QUrl& url) :
|
|
QObject(parent),
|
|
_url(url) {
|
|
}
|
|
|
|
void ResourceRequest::send() {
|
|
Q_ASSERT(_state == UNSENT);
|
|
|
|
_state = IN_PROGRESS;
|
|
doSend();
|
|
}
|