24 #ifndef __SERVERLIST_H_ 25 #define __SERVERLIST_H_ 45 class QSortFilterProxyModel;
57 QWidget* getMainWindow() {
return mainWindow; }
58 bool hasAtLeastOneServer()
const;
60 bool isAnyColumnSortedAdditionally()
const;
61 bool isSortingAdditionallyByColumn(
int column)
const;
62 bool isSortingByColumn(
int columnIndex);
64 void removeCustomServers();
65 void removeNonSpecialServers();
66 QList<ServerPtr> selectedServers()
const;
67 QList<ServerPtr> servers()
const;
68 QList<ServerPtr> serversForPlugin(
const EnginePlugin *plugin)
const;
70 ServerPtr serverFromIndex(
const QModelIndex&);
80 void refreshSelected();
81 void registerServer(ServerPtr server);
82 void removeServer(
const ServerPtr &server);
88 void setGroupServersWithPlayersAtTop(
bool b);
90 void tableMiddleClicked(
const QModelIndex& index,
const QPoint& cursorPosition);
91 void tableRightClicked(
const QModelIndex& index,
const QPoint& cursorPosition);
92 void updateCountryFlags();
93 void updateSearch(
const QString& search);
107 void serverDeregistered(ServerPtr);
114 void serverRegistered(ServerPtr);
115 void serverDoubleClicked(
const ServerPtr&);
116 void serversSelected(QList<ServerPtr>&);
124 Qt::SortOrder sortOrder;
128 bool areColumnsWidthsSettingsChanged();
130 void connectTableModelProxySlots();
131 void clearAdditionalSorting();
136 Qt::SortOrder getColumnDefaultSortOrder(
int columnId);
138 void initCleanerTimer();
140 void prepareServerTable();
142 void removeAdditionalSortingForColumn(
const QModelIndex &modelIndex);
143 void saveColumnsWidthsSettings();
145 void setupTableColumnWidths();
146 void setupTableProperties(QSortFilterProxyModel* tableModel);
148 void sortAdditionally(
const QModelIndex &modelIndex, Qt::SortOrder order);
150 Qt::SortOrder swappedCurrentSortOrder();
152 void updateCountryFlags(
bool force);
155 void columnHeaderClicked(
int);
156 void contextMenuAboutToHide();
157 void contextMenuTriggered(QAction* action);
158 void doubleClicked(
const QModelIndex&);
159 void itemSelected(
const QItemSelection&);
160 void mouseEntered(
const QModelIndex&);
161 void saveAdditionalSortingConfig();
162 void onServerBegunRefreshing(
const ServerPtr &server);
163 void onServerUpdated(
const ServerPtr &server);
164 void updateHeaderTitles();
void displayServerJoinCommandLine(const ServerPtr &)
Structure describing server filter.
A representation of a server for a given game.
void lookupHosts()
Looks up hosts for all available servers.
void serverInfoUpdated(const ServerPtr &)
Emitted every time when a server info is updated through onServerUpdated().
void findMissingWADs(const ServerPtr &)
void setCountryFlagsIfNotPresent()
Sets country flags for servers that don't have flags present yet.
INI section representation.