Files
2026-02-19 16:37:30 +03:00

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