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;
96 QList<ServerPtr> nonSpecialServers()
const;
97 QList<ServerPtr> servers()
const;
98 QList<ServerPtr> serversForPlugin(
const EnginePlugin *plugin)
const;
115 void removeServer(
const ServerPtr &server);
128 ServerPtr serverFromList(
int rowIndex)
const;
129 ServerPtr serverFromList(
const QModelIndex &)
const;
131 void setRefreshing(ServerPtr server);
134 void allRowsContentChanged();
135 void rowContentChanged(
int row);
138 void prepareHeaders();
141 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)