Add support for Browser statistics (#7197)

Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
Sami Vänttinen 2021-12-30 14:31:06 +02:00 committed by GitHub
parent 15d1b2f0ab
commit cd642e7fee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 784 additions and 6 deletions

View file

@ -355,6 +355,26 @@ QString Entry::url() const
return m_attributes->value(EntryAttributes::URLKey);
}
QStringList Entry::getAllUrls() const
{
QStringList urlList;
if (!url().isEmpty()) {
urlList << url();
}
for (const auto& key : m_attributes->keys()) {
if (key.startsWith("KP2A_URL")) {
auto additionalUrl = m_attributes->value(key);
if (!additionalUrl.isEmpty()) {
urlList << additionalUrl;
}
}
}
return urlList;
}
QString Entry::webUrl() const
{
QString url = resolveMultiplePlaceholders(m_attributes->value(EntryAttributes::URLKey));