Implemented search, fixed logout
This commit is contained in:
@@ -45,10 +45,11 @@ private:
|
||||
{";)", Smiley("1F609", "Twinkle")},
|
||||
{":p", Smiley("1F60B", "Tongue")},
|
||||
{";p", Smiley("1F61C", "Twinkle tongue")},
|
||||
{"O)", Smiley("1F607", "Angel")},
|
||||
{":'(", Smiley("1F622", "Cry")}
|
||||
};
|
||||
struct Search {
|
||||
Wt::WContainerWidget *outputContainer;
|
||||
Wt::WContainerWidget *outputContainer = nullptr;
|
||||
Wt::WString userName{""};
|
||||
int minAge{18};
|
||||
int maxAge{150};
|
||||
@@ -180,6 +181,8 @@ private:
|
||||
void addUserItemToLayout(Wt::WVBoxLayout *layout, Wt::Json::Object userObject);
|
||||
std::unordered_set<std::string> gendersListToShortGendersList(std::unordered_set<std::string> gendersList);
|
||||
std::string genderShortOfGender(const std::string incomingGender);
|
||||
void extendSearchResultIfNeeded(Wt::Json::Object broadcast);
|
||||
void removeUserFromSearch(Wt::Json::Object broadcast);
|
||||
};
|
||||
|
||||
#endif // APP_H
|
||||
|
||||
Reference in New Issue
Block a user