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,
67 SLDT_SERVER_GROUP = Qt::UserRole + 3
76 QList<ServerPtr> customServers()
const;
97 QList<ServerPtr> nonSpecialServers()
const;
98 QList<ServerPtr> servers()
const;
99 QList<ServerPtr> serversForPlugin(
const EnginePlugin *plugin)
const;
116 void removeServer(
const ServerPtr &server);
129 ServerPtr serverFromList(
int rowIndex)
const;
130 ServerPtr serverFromList(
const QModelIndex &)
const;
132 void setRefreshing(ServerPtr server);
135 void allRowsContentChanged();
136 void rowContentChanged(
int row);
139 void prepareHeaders();
142 QVariant columnSortData(
int row,
int column);