mirror of
https://github.com/vale981/tdesktop
synced 2025-03-09 04:26:42 -04:00
33 lines
606 B
C++
33 lines
606 B
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
#include <atomic>
|
|
|
|
namespace Export {
|
|
namespace Output {
|
|
|
|
class Stats {
|
|
public:
|
|
Stats() = default;
|
|
Stats(const Stats &other);
|
|
|
|
void incrementFiles();
|
|
void incrementBytes(int count);
|
|
|
|
int filesCount() const;
|
|
int64 bytesCount() const;
|
|
|
|
private:
|
|
std::atomic<int> _files;
|
|
std::atomic<int64> _bytes;
|
|
|
|
};
|
|
|
|
} // namespace Output
|
|
} // namespace Export
|