1 #ifndef PARTIAL_MATCH_H
2 #define PARTIAL_MATCH_H
8 #include "AccessibleNode.h"
9 #include "UiSelector.h"
11 * @brief PartialMatch class
27 PartialMatch(const std::shared_ptr<UiSelector> selector, const int absDepth);
34 void update(const std::shared_ptr<AccessibleNode> node, int index, int depth,
35 std::list<std::shared_ptr<PartialMatch>> &partialMatches);
50 static std::shared_ptr<PartialMatch> accept(const std::shared_ptr<AccessibleNode> node,
51 const std::shared_ptr<UiSelector> selector,
52 int index, int depth);
58 static std::shared_ptr<PartialMatch> accept(const std::shared_ptr<AccessibleNode> node,
59 const std::shared_ptr<UiSelector> selector,
60 int index, int absoluteDepth,
68 static bool checkCriteria(const std::shared_ptr<UiSelector> selector,
69 const std::shared_ptr<AccessibleNode> node);
76 static bool checkCriteria(const std::string *textA, const std::string textB);
82 static bool checkCriteria(const bool *boolA, const bool boolB);
88 const std::shared_ptr<UiSelector> mSelector;
98 std::list<std::shared_ptr<PartialMatch>> mPartialMatches;