2018-06-20 17:10:38 +01:00
|
|
|
/*
|
|
|
|
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:
|
2018-06-23 21:27:41 +01:00
|
|
|
Stats() = default;
|
|
|
|
Stats(const Stats &other);
|
|
|
|
|
2018-06-20 17:10:38 +01:00
|
|
|
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
|