mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build with Xcode.
This commit is contained in:
parent
02e37ab2f2
commit
7b184e553b
1 changed files with 17 additions and 19 deletions
|
@ -16,25 +16,6 @@ enum class DefaultNotify;
|
||||||
|
|
||||||
namespace Settings {
|
namespace Settings {
|
||||||
|
|
||||||
class NotificationsType;
|
|
||||||
|
|
||||||
template <Data::DefaultNotify kType>
|
|
||||||
struct NotificationsTypeMetaImplementation : SectionMeta {
|
|
||||||
object_ptr<AbstractSection> create(
|
|
||||||
not_null<QWidget*> parent,
|
|
||||||
not_null<Window::SessionController*> controller
|
|
||||||
) const final override {
|
|
||||||
return object_ptr<NotificationsType>(parent, controller, kType);
|
|
||||||
}
|
|
||||||
|
|
||||||
[[nodiscard]] static not_null<SectionMeta*> Meta() {
|
|
||||||
static NotificationsTypeMetaImplementation result;
|
|
||||||
return &result;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
[[nodiscard]] Type NotificationsTypeId(Data::DefaultNotify type);
|
|
||||||
|
|
||||||
class NotificationsType : public AbstractSection {
|
class NotificationsType : public AbstractSection {
|
||||||
public:
|
public:
|
||||||
NotificationsType(
|
NotificationsType(
|
||||||
|
@ -53,6 +34,23 @@ private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <Data::DefaultNotify kType>
|
||||||
|
struct NotificationsTypeMetaImplementation : SectionMeta {
|
||||||
|
object_ptr<AbstractSection> create(
|
||||||
|
not_null<QWidget*> parent,
|
||||||
|
not_null<Window::SessionController*> controller
|
||||||
|
) const final override {
|
||||||
|
return object_ptr<NotificationsType>(parent, controller, kType);
|
||||||
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] static not_null<SectionMeta*> Meta() {
|
||||||
|
static NotificationsTypeMetaImplementation result;
|
||||||
|
return &result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
[[nodiscard]] Type NotificationsTypeId(Data::DefaultNotify type);
|
||||||
|
|
||||||
[[nodiscard]] bool NotificationsEnabledForType(
|
[[nodiscard]] bool NotificationsEnabledForType(
|
||||||
not_null<Main::Session*> session,
|
not_null<Main::Session*> session,
|
||||||
Data::DefaultNotify type);
|
Data::DefaultNotify type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue