diff options
author | saturneric <[email protected]> | 2024-02-29 14:36:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-02-29 14:36:25 +0000 |
commit | 84b04d88723ef05f7873082c235ecfd56facf934 (patch) | |
tree | 286ffac004c265169931102fbc1f68a13da110fa /src/module/integrated/version_checking_module/SoftwareVersion.cpp | |
parent | feat: add module controller and continue to work on module system (diff) | |
download | GpgFrontend-84b04d88723ef05f7873082c235ecfd56facf934.tar.gz GpgFrontend-84b04d88723ef05f7873082c235ecfd56facf934.zip |
feat: add prefix GF to all sdk and module symbols
Diffstat (limited to 'src/module/integrated/version_checking_module/SoftwareVersion.cpp')
-rw-r--r-- | src/module/integrated/version_checking_module/SoftwareVersion.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/module/integrated/version_checking_module/SoftwareVersion.cpp b/src/module/integrated/version_checking_module/SoftwareVersion.cpp index 46b05a8a..4e1c2dfa 100644 --- a/src/module/integrated/version_checking_module/SoftwareVersion.cpp +++ b/src/module/integrated/version_checking_module/SoftwareVersion.cpp @@ -28,35 +28,35 @@ #include "SoftwareVersion.h" -#include "core/utils/CommonUtils.h" -#include "module/sdk/Log.h" +#include <GFSDKBasic.h> +#include <GFSDKExtra.h> +#include <GFSDKLog.h> -namespace GpgFrontend::Module::Integrated::VersionCheckingModule { - -auto VersionCheckingModule::SoftwareVersion::NeedUpgrade() const -> bool { - ModuleLogDebug( - fmt::format("compair version current {} latest {}, result {}", - current_version, latest_version, - CompareSoftwareVersion(current_version, latest_version)) +auto SoftwareVersion::NeedUpgrade() const -> bool { + GFModuleLogDebug( + fmt::format( + "compair version current {} latest {}, result {}", current_version, + latest_version, + GFCompareSoftwareVersion(GFModuleStrDup(current_version.toUtf8()), + GFModuleStrDup(latest_version.toUtf8()))) .c_str()); - ModuleLogDebug(fmt::format("load done: {}, pre-release: {}, draft: {}", - loading_done, - latest_prerelease_version_from_remote, - latest_draft_from_remote) - .c_str()); + GFModuleLogDebug(fmt::format("load done: {}, pre-release: {}, draft: {}", + loading_done, + latest_prerelease_version_from_remote, + latest_draft_from_remote) + .c_str()); return loading_done && !latest_prerelease_version_from_remote && !latest_draft_from_remote && - CompareSoftwareVersion(current_version, latest_version) < 0; + GFCompareSoftwareVersion(GFModuleStrDup(current_version.toUtf8()), + GFModuleStrDup(latest_version.toUtf8())) < 0; } -auto VersionCheckingModule::SoftwareVersion::VersionWithdrawn() const -> bool { +auto SoftwareVersion::VersionWithdrawn() const -> bool { return loading_done && !current_version_publish_in_remote && current_version_is_a_prerelease && !current_version_is_drafted; } -auto VersionCheckingModule::SoftwareVersion::CurrentVersionReleased() const - -> bool { +auto SoftwareVersion::CurrentVersionReleased() const -> bool { return loading_done && current_version_publish_in_remote; -} -} // namespace GpgFrontend::Module::Integrated::VersionCheckingModule
\ No newline at end of file +}
\ No newline at end of file |