24 #ifndef __SERVERLIST_H_ 25 #define __SERVERLIST_H_ 46 class QSortFilterProxyModel;
57 void cleanUpRightNow();
59 MainWindow* getMainWindow() {
return mainWindow; }
60 bool hasAtLeastOneServer()
const;
62 bool isAnyColumnSortedAdditionally()
const;
63 bool isSortingAdditionallyByColumn(
int column)
const;
64 bool isSortingByColumn(
int columnIndex);
66 void removeCustomServers();
67 void removeNonSpecialServers();
68 QList<ServerPtr> selectedServers()
const;
69 QList<ServerPtr> servers()
const;
70 QList<ServerPtr> serversForPlugin(
const EnginePlugin *plugin)
const;
72 ServerPtr serverFromIndex(
const QModelIndex&);
82 void refreshSelected();
83 void registerServer(ServerPtr server);
84 void removeServer(
const ServerPtr &server);
90 void setGroupServersWithPlayersAtTop(
bool b);
92 void tableMiddleClicked(
const QModelIndex& index,
const QPoint& cursorPosition);
93 void tableRightClicked(
const QModelIndex& index,
const QPoint& cursorPosition);
94 void updateCountryFlags();
95 void updateSearch(
const QString& search);
109 void serverDeregistered(ServerPtr);
116 void serverRegistered(ServerPtr);
117 void serverDoubleClicked(
const ServerPtr&);
118 void serversSelected(QList<ServerPtr>&);
126 Qt::SortOrder sortOrder;
130 bool areColumnsWidthsSettingsChanged();
132 void connectTableModelProxySlots();
133 void clearAdditionalSorting();
138 Qt::SortOrder getColumnDefaultSortOrder(
int columnId);
140 void initCleanerTimer();
142 void prepareServerTable();
144 void removeAdditionalSortingForColumn(
const QModelIndex &modelIndex);
145 void saveColumnsWidthsSettings();
147 void setupTableColumnWidths();
148 void setupTableProperties(QSortFilterProxyModel* tableModel);
150 void sortAdditionally(
const QModelIndex &modelIndex, Qt::SortOrder order);
152 Qt::SortOrder swappedCurrentSortOrder();
154 void updateCountryFlags(
bool force);
157 void columnHeaderClicked(
int);
158 void contextMenuAboutToHide();
159 void contextMenuTriggered(QAction* action);
160 void doubleClicked(
const QModelIndex&);
161 void itemSelected(
const QItemSelection&);
162 void mouseEntered(
const QModelIndex&);
163 void saveAdditionalSortingConfig();
164 void onServerBegunRefreshing(
const ServerPtr &server);
165 void onServerUpdated(
const ServerPtr &server);
166 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.