ServerListRowHandler Class Reference
+ Inheritance diagram for ServerListRowHandler:

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 (int response)
 

Static Public Member Functions

static ServerPtr serverFromList (ServerListModel *parentModel, int rowIndex)
 

Detailed Description

Definition at line 37 of file serverlistrowhandler.h.

Member Enumeration Documentation

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.

WARNING: Exception: custom servers will always be on top of the list and will be sorted inside their own group independentedly.

Definition at line 52 of file serverlistrowhandler.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ServerListRowHandler::clearNonVitalFields ( )

Removes content from fields for which isColumnVital() returns false.

Definition at line 67 of file serverlistrowhandler.cpp.


The documentation for this class was generated from the following files: