2017-11-10 15:45:10 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-11-10 15:45:10 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-11-10 15:45:10 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <rpl/event_stream.h>
|
|
|
|
#include "boxes/peers/manage_peer_box.h"
|
|
|
|
|
|
|
|
class EditPeerInfoBox : public BoxContent {
|
|
|
|
public:
|
2017-12-02 12:04:22 +00:00
|
|
|
EditPeerInfoBox(QWidget*, not_null<PeerData*> peer);
|
2017-11-10 15:45:10 +00:00
|
|
|
|
|
|
|
void setInnerFocus() override {
|
|
|
|
_focusRequests.fire({});
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void prepare() override;
|
|
|
|
|
|
|
|
private:
|
2017-12-02 12:04:22 +00:00
|
|
|
not_null<PeerData*> _peer;
|
2017-11-10 15:45:10 +00:00
|
|
|
rpl::event_stream<> _focusRequests;
|
|
|
|
|
|
|
|
};
|