mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-21 15:30:08 +08:00
28 lines
527 B
C++
28 lines
527 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QList>
|
|
#include <QMutex>
|
|
|
|
#include "TrafficData.hpp"
|
|
|
|
namespace Stats {
|
|
class TrafficLooper {
|
|
public:
|
|
bool loop_enabled = false;
|
|
bool looping = false;
|
|
QMutex loop_mutex;
|
|
|
|
QList<std::shared_ptr<TrafficData>> items;
|
|
bool isChain;
|
|
std::shared_ptr<TrafficData> proxy;
|
|
std::shared_ptr<TrafficData> direct;
|
|
|
|
void UpdateAll();
|
|
|
|
void Loop();
|
|
};
|
|
|
|
extern TrafficLooper *trafficLooper;
|
|
} // namespace Stats
|