mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:56:52 +02:00
38 lines
876 B
C++
38 lines
876 B
C++
//
|
|
// SendAssetTask.h
|
|
// assignment-client/src/assets
|
|
//
|
|
// Created by Ryan Huffman on 2015/08/26
|
|
// 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
|
|
//
|
|
|
|
#ifndef hifi_SendAssetTask_h
|
|
#define hifi_SendAssetTask_h
|
|
|
|
#include <QtCore/QByteArray>
|
|
#include <QtCore/QSharedPointer>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QRunnable>
|
|
|
|
#include "AssetUtils.h"
|
|
#include "AssetServer.h"
|
|
#include "Node.h"
|
|
|
|
class NLPacket;
|
|
|
|
class SendAssetTask : public QRunnable {
|
|
public:
|
|
SendAssetTask(QSharedPointer<ReceivedMessage> message, const SharedNodePointer& sendToNode, const QDir& resourcesDir);
|
|
|
|
void run() override;
|
|
|
|
private:
|
|
QSharedPointer<ReceivedMessage> _message;
|
|
SharedNodePointer _senderNode;
|
|
QDir _resourcesDir;
|
|
};
|
|
|
|
#endif
|