diff options
Diffstat (limited to 'Swift/Controllers/ContactSuggester.h')
| -rw-r--r-- | Swift/Controllers/ContactSuggester.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Swift/Controllers/ContactSuggester.h b/Swift/Controllers/ContactSuggester.h index 67b912c..1c796c9 100644 --- a/Swift/Controllers/ContactSuggester.h +++ b/Swift/Controllers/ContactSuggester.h @@ -18,4 +18,6 @@ #include <Swift/Controllers/Contact.h> +class ContactSuggesterTest; + namespace Swift { class ContactProvider; @@ -29,5 +31,5 @@ namespace Swift { std::vector<Contact::ref> getSuggestions(const std::string& search) const; - private: + public: static bool matchContact(const std::string& search, const Contact::ref& c); /** @@ -35,7 +37,4 @@ namespace Swift { */ static bool fuzzyMatch(std::string text, std::string match); - static bool contactLexicographicalSortPredicate(const Contact::ref& a, const Contact::ref& b); - static bool contactEqualityPredicate(const Contact::ref& a, const Contact::ref& b); - static bool contactSmartSortPredicate(const Contact::ref& a, const Contact::ref& b); private: |
Swift