base_integration.h 778 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "base/integration.h"
  9. namespace Core {
  10. class BaseIntegration final : public base::Integration {
  11. public:
  12. BaseIntegration(int argc, char *argv[]);
  13. void enterFromEventLoop(FnMut<void()> &&method) override;
  14. bool logSkipDebug() override;
  15. void logMessageDebug(const QString &message) override;
  16. void logMessage(const QString &message) override;
  17. void logAssertionViolation(const QString &info) override;
  18. void setCrashAnnotation(
  19. const std::string &key,
  20. const QString &value) override;
  21. };
  22. } // namespace Core