diff options
author | saturneric <[email protected]> | 2023-10-17 14:57:03 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-17 14:57:03 +0000 |
commit | e5694e9f6d2a84954eaf508557caa795f5282b07 (patch) | |
tree | 40dd946005f7d5b7cdab7db608367add5bbdb38b /src/plugin/module/version_checking_plugin/VersionCheckingPlugin.cpp | |
parent | refactor: flatpak yml file can not host here (diff) | |
download | GpgFrontend-e5694e9f6d2a84954eaf508557caa795f5282b07.tar.gz GpgFrontend-e5694e9f6d2a84954eaf508557caa795f5282b07.zip |
refactor: change plugin system to module system
Diffstat (limited to '')
-rw-r--r-- | src/module/integrated/version_checking_module/VersionCheckingModule.cpp (renamed from src/plugin/module/version_checking_plugin/VersionCheckingPlugin.cpp) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugin/module/version_checking_plugin/VersionCheckingPlugin.cpp b/src/module/integrated/version_checking_module/VersionCheckingModule.cpp index 4d18b01c..3901a562 100644 --- a/src/plugin/module/version_checking_plugin/VersionCheckingPlugin.cpp +++ b/src/module/integrated/version_checking_module/VersionCheckingModule.cpp @@ -26,35 +26,35 @@ * */ -#include "VersionCheckingPlugin.h" +#include "VersionCheckingModule.h" #include "VersionCheckTask.h" -namespace GpgFrontend::Plugin::Module::VersionCheckingPlugin { +namespace GpgFrontend::Module::Integrated::VersionCheckingModule { -VersionCheckingPlugin::VersionCheckingPlugin() - : Plugin("com.bktus.gpgfrontend.plugin.integrated.versionchecking", "1.0.0", - PluginMetaData{{"description", "try to check gpgfrontend version"}, +VersionCheckingModule::VersionCheckingModule() + : Module("com.bktus.gpgfrontend.plugin.integrated.versionchecking", "1.0.0", + ModuleMetaData{{"description", "try to check gpgfrontend version"}, {"author", "saturneric"}}) {} -bool VersionCheckingPlugin::Register() { +bool VersionCheckingModule::Register() { SPDLOG_INFO("version checking plugin registering"); return true; } -bool VersionCheckingPlugin::Active() { +bool VersionCheckingModule::Active() { SPDLOG_INFO("version checking plugin activating"); listenEvent("APPLICATION_STARTED"); return true; } -int VersionCheckingPlugin::Exec(EventRefrernce event) { +int VersionCheckingModule::Exec(EventRefrernce event) { SPDLOG_INFO("version checking plugin ececuting"); getTaskRunner()->PostTask(new VersionCheckTask()); return 0; } -bool VersionCheckingPlugin::Deactive() { return true; } -} // namespace GpgFrontend::Plugin::Module::VersionCheckingPlugin +bool VersionCheckingModule::Deactive() { return true; } +} // namespace GpgFrontend::Module::Integrated::VersionCheckingModule |