2021-01-19 07:14:50 +00:00
|
|
|
/*
|
|
|
|
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 Ui {
|
|
|
|
|
|
|
|
struct InviteLinkFields {
|
|
|
|
QString link;
|
2021-10-28 12:18:49 +00:00
|
|
|
QString label;
|
2021-01-19 07:14:50 +00:00
|
|
|
TimeId expireDate = 0;
|
|
|
|
int usageLimit = 0;
|
2021-10-12 08:39:07 +00:00
|
|
|
bool requestApproval = false;
|
|
|
|
bool isGroup = false;
|
2021-11-03 12:01:25 +00:00
|
|
|
bool isPublic = false;
|
2021-01-19 07:14:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void EditInviteLinkBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
|
|
|
const InviteLinkFields &data,
|
|
|
|
Fn<void(InviteLinkFields)> done);
|
|
|
|
|
|
|
|
void CreateInviteLinkBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2021-10-12 08:39:07 +00:00
|
|
|
bool isGroup,
|
2021-11-03 12:01:25 +00:00
|
|
|
bool isPublic,
|
2021-01-19 07:14:50 +00:00
|
|
|
Fn<void(InviteLinkFields)> done);
|
|
|
|
|
|
|
|
} // namespace Ui
|