mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-27 07:52:09 +00:00
38 lines
706 B
C++
38 lines
706 B
C++
// This is the source code of AyuGram for Desktop.
|
|
//
|
|
// We do not and cannot prevent the use of our code,
|
|
// but be respectful and credit the original author.
|
|
//
|
|
// Copyright @Radolyn, 2026
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
}
|
|
|
|
namespace Ui {
|
|
|
|
class GenericBox;
|
|
|
|
struct PluginMetadata {
|
|
QString id;
|
|
QString name;
|
|
QString description;
|
|
QString author;
|
|
QString version;
|
|
QString icon;
|
|
QString minVersion;
|
|
QStringList requirements;
|
|
};
|
|
|
|
[[nodiscard]] PluginMetadata ParsePluginMetadata(const QByteArray &data);
|
|
|
|
void ShowPluginInfoBox(
|
|
not_null<Window::SessionController*> controller,
|
|
const QString& pluginPath,
|
|
PluginMetadata metadata);
|
|
|
|
} // namespace Ui
|