feat: add property installedTime,X-flatpak,X-linglong

Signed-off-by: black-desk <me@black-desk.cn>
This commit is contained in:
black-desk
2023-08-31 16:40:29 +08:00
committed by Comix
parent c99a1b5d6a
commit d1bdab899d
8 changed files with 49 additions and 12 deletions

View File

@ -264,6 +264,23 @@ QString ApplicationService::id() const noexcept
return m_desktopSource.desktopId();
}
bool ApplicationService::x_Flatpak() const noexcept
{
auto val = findEntryValue(DesktopFileEntryKey, "X-flatpak", EntryValueType::String);
return val.isNull();
}
bool ApplicationService::x_linglong() const noexcept
{
auto val = findEntryValue(DesktopFileEntryKey, "X-linglong", EntryValueType::String);
return val.isNull();
}
qulonglong ApplicationService::installedTime() const noexcept
{
return m_desktopSource.createTime();
}
qulonglong ApplicationService::lastLaunchedTime() const noexcept
{
return m_lastLaunch;