18#ifndef HEADER_ONLINE_USER_SEARCH_HPP
19#define HEADER_ONLINE_USER_SEARCH_HPP
21#include "guiengine/screen.hpp"
22#include "guiengine/widgets.hpp"
23#include "online/online_profile.hpp"
24#include "utils/ptr_vector.hpp"
28namespace Online {
class XMLRequest; }
75 const
int playerID) OVERRIDE;
80 virtual
void init() OVERRIDE;
85 virtual
void onUpdate(
float dt) OVERRIDE;
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
A text field widget.
Definition: text_box_widget.hpp:53
Definition: online_user_search.hpp:36
void search()
Called when a search is triggered.
Definition: online_user_search.cpp:168
GUIEngine::TextBoxWidget * m_search_box_widget
Pointer to the search box.
Definition: online_user_search.hpp:48
void showList()
Takes the list of user ids from a query and shows it in the list gui.
Definition: online_user_search.cpp:142
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_user_search.cpp:68
void parseResult(const XMLNode *input)
Adds the results of the query to the ProfileManager cache.
Definition: online_user_search.cpp:104
Online::OnlineProfile::IDList m_users
The list of all IDs found.
Definition: online_user_search.hpp:58
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_user_search.cpp:190
virtual void init() OVERRIDE
Called when entering this menu (before widgets are added).
Definition: online_user_search.cpp:76
virtual void tearDown() OVERRIDE
Callback before the screen is removed.
Definition: online_user_search.cpp:86
GUIEngine::IconButtonWidget * m_back_widget
Pointer to the back widget.
Definition: online_user_search.hpp:44
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_user_search.cpp:53
GUIEngine::ButtonWidget * m_search_button_widget
Pointer to the search button.
Definition: online_user_search.hpp:46
irr::core::stringw m_last_search_string
Last search string, used to avoid doing the same search again.
Definition: online_user_search.hpp:55
std::shared_ptr< Online::XMLRequest > m_search_request
The online request to search for users.
Definition: online_user_search.hpp:61
GUIEngine::ListWidget * m_user_list_widget
Pointer to the result list.
Definition: online_user_search.hpp:50
void setSearchString(const irr::core::stringw &search_string)
Sets the search string to an initial value.
Definition: online_user_search.hpp:88
virtual void onUpdate(float dt) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_user_search.cpp:217
irr::core::stringw m_search_string
Seach string entered in the search widget.
Definition: online_user_search.hpp:53
utility class used to parse XML files
Definition: xml_node.hpp:48
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33