Public Types | |
enum | ServerGroup { SGNormal = 200, SGWait = 175, SGBanned = 150, SGTimeout = 125, SGBad = 100, SGFirstQuery = 50 } |
enum | ServerListDataTypes { DTPointerToServerStructure = Qt::UserRole + 1, DTSort = Qt::UserRole + 2 } |
Public Member Functions | |
ServerListRowHandler (ServerListModel *parentModel, int rowIndex, const ServerPtr &server) | |
ServerListRowHandler (ServerListModel *parentModel, int rowIndex) | |
void | clearNonVitalFields () |
QStandardItem * | item (int columnIndex) |
void | redraw () |
ServerPtr | server () |
void | setCountryFlag () |
void | setRefreshing () |
int | updateServer () |
Static Public Member Functions | |
static ServerPtr | serverFromList (const ServerListModel *parentModel, int rowIndex) |
Definition at line 37 of file serverlistrowhandler.h.
Servers from the same group will be always kept together and sorted only inside this group. Group order is always descending: SG_NORMAL servers will be always on the top of the list, after them will be SG_WAIT servers, etc.
Exception: custom servers will always be on top of the list and will be sorted inside their own group independentedly.
Definition at line 51 of file serverlistrowhandler.h.
ServerListRowHandler::ServerListRowHandler | ( | ServerListModel * | parentModel, |
int | rowIndex | ||
) |
In this constructor server will be obtained directly from the parentModel.
Definition at line 57 of file serverlistrowhandler.cpp.
void ServerListRowHandler::clearNonVitalFields | ( | ) |
Removes content from fields for which isColumnVital() returns false.
Definition at line 67 of file serverlistrowhandler.cpp.