Class sh::search::criteria::ExtendedAttributeSearchCriterion

class sh::search::criteria::ExtendedAttributeSearchCriterion : public sh::search::SearchCriterion

Search criterion filtering by extended attributes.

Public Types

enum Mode

Values:

enumerator None
enumerator Simple
enumerator RegExp
enumerator Fuzzy

Public Functions

ExtendedAttributeSearchCriterion(std::shared_ptr<sh::search::SearchCriterionFactory> factory)
bool match(sh::filesystem::Operation *op, std::shared_ptr<const sh::filesystem::Eurl> eurl)

Checks if a given file (by eurl) matches this criterion. .

QString valuedescription()

Returns a human readable text describing the current criterion shortly and precisely. .

QString serialize()

Serializes this criterion to a string. See also SearchCriterion::deserialize.

std::shared_ptr<sh::search::SearchCriterionFactory> factory()

Returns the factory this criterion has created (provides some more metadata).

Public Members

Mode keymode = Mode::None
Mode valuemode = Mode::Simple
QString key
QString value

Public Static Functions

void createEditor(std::shared_ptr<sh::search::SearchCriterion> cfg, sh::ui::SearchPanelConfiguration *panelcfg)
void editorUpdateConfiguration(sh::ui::SearchPanelConfiguration *panelcfg, std::shared_ptr<sh::search::SearchCriterion> c)
void doInitialize()
void doShutdown()
std::shared_ptr<sh::search::SearchCriterion> deserialize(QString s)

Deserializes this criterion from a string. See also SearchCriterion::serialize.

Public Static Attributes

const QStringList ModeCodes