mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-22 15:54:12 +02:00
32 lines
778 B
C++
32 lines
778 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"
|
|
|
|
class PeerData;
|
|
|
|
namespace Api {
|
|
struct InviteLink;
|
|
} // namespace Api
|
|
|
|
namespace Ui {
|
|
class VerticalLayout;
|
|
} // namespace Ui
|
|
|
|
void AddPermanentLinkBlock(
|
|
not_null<Ui::VerticalLayout*> container,
|
|
not_null<PeerData*> peer);
|
|
|
|
void CopyInviteLink(const QString &link);
|
|
void ShareInviteLinkBox(not_null<PeerData*> peer, const QString &link);
|
|
void RevokeLink(not_null<PeerData*> peer, const QString &link);
|
|
|
|
void ShowInviteLinkBox(
|
|
not_null<PeerData*> peer,
|
|
const Api::InviteLink &link);
|