mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Implement search for reference placeholder based on fields other than ID
This commit is contained in:
@@ -36,6 +36,17 @@
|
||||
class Database;
|
||||
class Group;
|
||||
|
||||
enum class EntryReferenceType {
|
||||
Unknown,
|
||||
Title,
|
||||
UserName,
|
||||
Password,
|
||||
Url,
|
||||
Notes,
|
||||
Uuid,
|
||||
CustomAttributes
|
||||
};
|
||||
|
||||
struct EntryData
|
||||
{
|
||||
int iconNumber;
|
||||
@@ -203,6 +214,10 @@ private slots:
|
||||
private:
|
||||
QString resolveMultiplePlaceholdersRecursive(const QString& str, int maxDepth) const;
|
||||
QString resolvePlaceholderRecursive(const QString& placeholder, int maxDepth) const;
|
||||
QString resolveReferencePlaceholderRecursive(const QString& placeholder, int maxDepth) const;
|
||||
QString referenceFieldValue(EntryReferenceType referenceType) const;
|
||||
|
||||
static EntryReferenceType referenceType(const QString& referenceStr);
|
||||
|
||||
const Database* database() const;
|
||||
template <class T> bool set(T& property, const T& value);
|
||||
|
||||
Reference in New Issue
Block a user