2019-11-02 17:06:47 +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
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "base/integration.h"
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
2021-04-20 12:40:54 +00:00
|
|
|
class BaseIntegration final : public base::Integration {
|
2019-11-02 17:06:47 +00:00
|
|
|
public:
|
|
|
|
BaseIntegration(int argc, char *argv[]);
|
|
|
|
|
|
|
|
void enterFromEventLoop(FnMut<void()> &&method) override;
|
2021-04-20 12:40:54 +00:00
|
|
|
bool logSkipDebug() override;
|
|
|
|
void logMessageDebug(const QString &message) override;
|
2019-11-05 10:23:09 +00:00
|
|
|
void logMessage(const QString &message) override;
|
2019-11-02 17:06:47 +00:00
|
|
|
void logAssertionViolation(const QString &info) override;
|
2022-09-25 12:17:34 +00:00
|
|
|
void setCrashAnnotation(
|
|
|
|
const std::string &key,
|
|
|
|
const QString &value) override;
|
2019-11-02 17:06:47 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core
|