23 #ifndef __SERVER_LIST_MODEL_H_
24 #define __SERVER_LIST_MODEL_H_
27 #include <QStandardItemModel>
30 class ServerListSortFilterProxyModel;
61 enum ServerListDataTypes
64 SLDT_POINTER_TO_SERVER_STRUCTURE = Qt::UserRole+1,
65 SLDT_SORT = Qt::UserRole+2
73 int addServer(ServerPtr server,
int response);
94 void removeCustomServers();
105 int updateServer(
int row, ServerPtr server,
int response);
107 ServerPtr serverFromList(
int rowIndex);
108 ServerPtr serverFromList(
const QModelIndex&);
110 void setRefreshing(ServerPtr server);
113 void allRowsContentChanged();
115 void rowContentChanged(
int row);
118 void prepareHeaders();
121 QVariant columnSortData(
int row,
int column);
A representation of a server for a given game.
int updateServer(int row, ServerPtr server, int response)
int addServer(ServerPtr server, int response)
int findServerOnTheList(const Server *server)
Finds index of the row where server is contained.
void updateFlag(int row, bool force=true)