tdesktop/Telegram/SourceFiles/export/output/export_output_stats.h
2018-06-24 15:44:53 +01:00

34 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