tdesktop/Telegram/SourceFiles/boxes/filters/edit_filter_box.h

29 lines
682 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 "ui/layers/generic_box.h"
namespace Window {
class SessionController;
} // namespace Window
namespace Data {
class ChatFilter;
} // namespace Data
void EditFilterBox(
not_null<Ui::GenericBox*> box,
not_null<Window::SessionController*> window,
const Data::ChatFilter &filter,
Fn<void(const Data::ChatFilter &)> doneCallback);
void EditExistingFilter(
not_null<Window::SessionController*> window,
FilterId id);