2017-07-19 15:25:50 +00:00
|
|
|
/* This file is part of Telegram Desktop, the official desktop version of
|
|
|
|
* Telegram messaging app, see https://desktop.telegram.org
|
|
|
|
*
|
|
|
|
* This code is in Public Domain, see license terms in .github/CONTRIBUTING.md
|
|
|
|
* Copyright (C) 2017, Nicholas Guriev <guriev-ns@ya.ru>
|
|
|
|
*/
|
|
|
|
#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. */
|
|
|
|
class MuteSettingsBox : public BoxContent {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-08-17 08:31:24 +00:00
|
|
|
MuteSettingsBox(QWidget *parent, not_null<PeerData*> peer)
|
2017-07-19 15:25:50 +00:00
|
|
|
: _peer(peer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
|
|
|
private:
|
2017-08-17 08:31:24 +00:00
|
|
|
not_null<PeerData*> _peer;
|
2017-07-19 15:25:50 +00:00
|
|
|
};
|
|
|
|
// vi: ts=4 tw=80
|