mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 07:22:12 +00:00
ac5b9a3e78
- Add BusinessState struct for shared state between setupContent and builder - Update setupContent() to call build() with custom method - Remove duplicate widget creation code - Use state->setPaused and state->sponsoredButton instead of class members - Remove extern SectionBuildMethod from header Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
730 B
C++
33 lines
730 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 "settings/settings_common.h"
|
|
#include "settings/settings_type.h"
|
|
|
|
enum class PremiumFeature;
|
|
|
|
namespace Main {
|
|
class Session;
|
|
} // namespace Main
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Settings {
|
|
|
|
[[nodiscard]] Type BusinessId();
|
|
|
|
void ShowBusiness(not_null<Window::SessionController*> controller);
|
|
|
|
[[nodiscard]] std::vector<PremiumFeature> BusinessFeaturesOrder(
|
|
not_null<::Main::Session*> session);
|
|
|
|
} // namespace Settings
|