Removed Main::Session forward declaration from data_types.

This commit is contained in:
23rd 2021-08-31 14:50:49 +03:00
parent e6f0c176f7
commit eadd7704ef
9 changed files with 28 additions and 6 deletions

View file

@ -12,6 +12,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
class UserData;
class ChannelData;
namespace Main {
class Session;
} // namespace Main
namespace Window {
class SessionController;
} // namespace Window

View file

@ -7,6 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Main {
class Session;
} // namespace Main
class History;
class PhotoData;
class DocumentData;

View file

@ -17,6 +17,10 @@ namespace Dialogs {
class Entry;
} // namespace Dialogs
namespace Main {
class Session;
} // namespace Main
namespace Data {
namespace details {

View file

@ -7,11 +7,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "data/data_types.h"
#include "data/data_session.h"
#include "ui/widgets/input_fields.h"
#include "storage/cache/storage_cache_types.h"
#include "base/openssl_help.h"
#include "main/main_session.h"
namespace Data {
namespace {

View file

@ -28,10 +28,6 @@ namespace Ui {
class InputField;
} // namespace Ui
namespace Main {
class Session;
} // namespace Main
namespace Images {
enum class Option;
using Options = base::flags<Option>;

View file

@ -14,6 +14,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
class History;
namespace Main {
class Session;
} // namespace Main
namespace Window {
class SessionController;
} // namespace Window

View file

@ -9,6 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/unique_qptr.h"
namespace Main {
class Session;
} // namespace Main
namespace Ui {
class PopupMenu;
enum class ReportReason;

View file

@ -12,6 +12,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_common.h"
#include "ui/chat/attach/attach_prepare.h"
namespace Main {
class Session;
} // namespace Main
constexpr auto kFileSizeLimit = 2000 * 1024 * 1024; // Load files up to 2000MB
enum class SendMediaType {

View file

@ -7,6 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Main {
class Session;
} // namespace Main
namespace Serialize {
int storageImageLocationSize(const StorageImageLocation &location);