mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-22 22:29:09 +02:00
36 lines
970 B
C++
36 lines
970 B
C++
//
|
|
// AssignmentClient.h
|
|
// assignment-client/src
|
|
//
|
|
// Created by Stephen Birarda on 11/25/2013.
|
|
// Copyright 2013 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_AssignmentClient_h
|
|
#define hifi_AssignmentClient_h
|
|
|
|
#include <QtCore/QCoreApplication>
|
|
|
|
#include "ThreadedAssignment.h"
|
|
|
|
class AssignmentClient : public QCoreApplication {
|
|
Q_OBJECT
|
|
public:
|
|
AssignmentClient(int &argc, char **argv);
|
|
static const SharedAssignmentPointer& getCurrentAssignment() { return _currentAssignment; }
|
|
private slots:
|
|
void sendAssignmentRequest();
|
|
void readPendingDatagrams();
|
|
void assignmentCompleted();
|
|
void handleAuthenticationRequest();
|
|
|
|
private:
|
|
Assignment _requestAssignment;
|
|
static SharedAssignmentPointer _currentAssignment;
|
|
QString _assignmentServerHostname;
|
|
};
|
|
|
|
#endif // hifi_AssignmentClient_h
|