2018-01-03 10:23:14 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
This code is in Public Domain, see license terms in .github/CONTRIBUTING.md
|
|
|
|
Copyright (C) 2017, Nicholas Guriev <guriev-ns@ya.ru>
|
|
|
|
*/
|
2017-07-19 15:25:50 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "boxes/abstract_box.h"
|
|
|
|
|
|
|
|
/* This class implements a dialog-box with radio-buttons for pick duration of
|
|
|
|
* turning off notifications from a chat. The widget is opened by a context menu
|
|
|
|
* in the left list of dialogues. */
|
2019-09-18 11:19:05 +00:00
|
|
|
class MuteSettingsBox : public Ui::BoxContent {
|
2018-06-08 19:26:23 +00:00
|
|
|
public:
|
|
|
|
MuteSettingsBox(QWidget *parent, not_null<PeerData*> peer);
|
2017-07-19 15:25:50 +00:00
|
|
|
|
2018-06-08 19:26:23 +00:00
|
|
|
protected:
|
2017-07-19 15:25:50 +00:00
|
|
|
void prepare() override;
|
|
|
|
|
2018-06-08 19:26:23 +00:00
|
|
|
void keyPressEvent(QKeyEvent *e) override;
|
|
|
|
|
|
|
|
private:
|
2017-08-17 08:31:24 +00:00
|
|
|
not_null<PeerData*> _peer;
|
2018-06-08 19:26:23 +00:00
|
|
|
Fn<void()> _save;
|
|
|
|
|
2017-07-19 15:25:50 +00:00
|
|
|
};
|
|
|
|
// vi: ts=4 tw=80
|