2018-07-26 20:36:28 +00: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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QtCore/QFile>
|
|
|
|
#include <QtCore/QFileInfo>
|
|
|
|
#include <QtCore/QDir>
|
|
|
|
#include <QtCore/QByteArray>
|
|
|
|
#include <QtCore/QString>
|
|
|
|
|
2018-08-30 13:29:19 +00:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
|
|
|
#define OS_MAC_OLD
|
|
|
|
#endif // QT_VERSION < 5.5.0
|
|
|
|
|
2018-07-26 20:36:28 +00:00
|
|
|
#include <crl/crl.h>
|
|
|
|
#include <rpl/rpl.h>
|
|
|
|
|
|
|
|
#include <vector>
|
2018-07-28 21:08:29 +00:00
|
|
|
#include <unordered_map>
|
2018-08-21 18:53:11 +00:00
|
|
|
#include <unordered_set>
|
2018-07-28 21:08:29 +00:00
|
|
|
#include <set>
|
2018-07-26 20:36:28 +00:00
|
|
|
|
|
|
|
#include <range/v3/all.hpp>
|
|
|
|
#ifdef Q_OS_WIN
|
|
|
|
#include "platform/win/windows_range_v3_helpers.h"
|
|
|
|
#endif // Q_OS_WIN
|
|
|
|
|
|
|
|
#include "base/flat_map.h"
|
|
|
|
#include "base/flat_set.h"
|
|
|
|
#include "base/optional.h"
|
|
|
|
#include "base/openssl_help.h"
|
|
|
|
|
|
|
|
#include "logs.h"
|