23 #ifndef __SERVER_LIST_MODEL_H_ 24 #define __SERVER_LIST_MODEL_H_ 27 #include <QStandardItemModel> 31 class ServerListSortFilterProxyModel;
62 enum ServerListDataTypes
65 SLDT_POINTER_TO_SERVER_STRUCTURE = Qt::UserRole+1,
66 SLDT_SORT = Qt::UserRole+2
75 QList<ServerPtr> customServers()
const;
90 ServerList* handler() {
return parentHandler; }
93 QList<ServerPtr> nonSpecialServers()
const;
94 QList<ServerPtr> servers()
const;
95 QList<ServerPtr> serversForPlugin(
const EnginePlugin *plugin)
const;
112 void removeServer(
const ServerPtr &server);
125 ServerPtr serverFromList(
int rowIndex)
const;
126 ServerPtr serverFromList(
const QModelIndex&)
const;
128 void setRefreshing(ServerPtr server);
131 void allRowsContentChanged();
132 void rowContentChanged(
int row);
135 void prepareHeaders();
138 QVariant columnSortData(
int row,
int column);
int addServer(ServerPtr server)
A representation of a server for a given game.
int updateServer(int row, ServerPtr server)
int findServerOnTheList(const Server *server)
Finds index of the row where server is contained.
void updateFlag(int row, bool force=true)
ServerPtr findSameServer(const Server *server)