mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-14 06:47:02 +02:00
41 lines
927 B
C++
41 lines
927 B
C++
//
|
|
// ClosureEventSender.h
|
|
// interface/src/networking
|
|
//
|
|
// Created by Stephen Birarda on 5/31/17.
|
|
// Copyright 2017 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_ClosureEventSender_h
|
|
#define hifi_ClosureEventSender_h
|
|
|
|
#include <atomic>
|
|
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QUuid>
|
|
|
|
#include <DependencyManager.h>
|
|
|
|
class ClosureEventSender : public QObject, public Dependency {
|
|
Q_OBJECT
|
|
SINGLETON_DEPENDENCY
|
|
|
|
public:
|
|
bool hasTimedOutQuitEvent();
|
|
bool hasFinishedQuitEvent() { return _hasFinishedQuitEvent; }
|
|
|
|
public slots:
|
|
void sendQuitEventAsync();
|
|
|
|
private slots:
|
|
void handleQuitEventFinished();
|
|
|
|
private:
|
|
std::atomic<bool> _hasFinishedQuitEvent { false };
|
|
std::atomic<int64_t> _quitEventStartTimestamp;
|
|
};
|
|
|
|
#endif // hifi_ClosureEventSender_h
|