LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
PluginManager.cpp File Reference

Implementation of plugin management system. More...

#include "PluginManager.hpp"
#include "Config.hpp"
#include "FieldConversionPluginRegistry.hpp"
#include "Logger.hpp"
#include "../../plugin_api/PluginLoggerC.h"
#include "../../plugin_api/PluginKeyEncryptionC.h"
#include "../../plugin_api/PluginC.h"
#include "../../plugin_api/PluginHostUiC.h"
#include "../util/KeyEncryption.hpp"
#include <nlohmann/json.hpp>
#include <fstream>
#include <algorithm>
#include <archive.h>
#include <archive_entry.h>
#include <string_view>
#include <cstdio>
#include <QStandardPaths>
#include <QCoreApplication>
#include <QEvent>
#include <dlfcn.h>
Include dependency graph for PluginManager.cpp:

Classes

struct  plugin::anonymous_namespace{PluginManager.cpp}::VersionParts
 

Namespaces

namespace  plugin
 
namespace  plugin::anonymous_namespace{PluginManager.cpp}
 

Functions

void AppPluginLog (int level, const char *message)
 
char * AppPluginKeyEncode (const char *input)
 
char * AppPluginKeyDecode (const char *input)
 
VersionParts plugin::anonymous_namespace{PluginManager.cpp}::ParseVersion (std::string_view v)
 
bool plugin::anonymous_namespace{PluginManager.cpp}::IsApiVersionCompatible (std::string_view version)
 
bool plugin::anonymous_namespace{PluginManager.cpp}::ExtractZipPlugin (const std::filesystem::path &zipPath, const std::filesystem::path &extractDir)
 
void * plugin::anonymous_namespace{PluginManager.cpp}::LoadLibraryHelper (const std::filesystem::path &path)
 
static util::Result< std::filesystem::path, error::Error > plugin::ResolvePluginExtractDir (const std::filesystem::path &pluginPath)
 
static std::vector< void * > plugin::LoadDependencyHandles (const std::filesystem::path &libFolder)
 
static void plugin::ProbeOptionalPluginExports (void *libHandle, PluginLoadInfo &info)
 
std::optional< nlohmann::json > plugin::anonymous_namespace{PluginManager.cpp}::ParseManifest (const std::filesystem::path &manifestPath)
 

Variables

static constexpr int plugin::kSupportedApiMajor = 1
 
static constexpr int plugin::kSupportedApiMinMinor = 0
 
static constexpr int plugin::kSupportedApiMaxMinor = 1
 

Detailed Description

Implementation of plugin management system.

Author
LogViewer Development Team
Date
2025

Function Documentation

◆ AppPluginKeyDecode()

char * AppPluginKeyDecode ( const char *  input)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppPluginKeyEncode()

char * AppPluginKeyEncode ( const char *  input)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AppPluginLog()

void AppPluginLog ( int  level,
const char *  message 
)
Here is the call graph for this function:
Here is the caller graph for this function: