ServerListFilterInfo Class Reference

Structure describing server filter. More...

#include <serverlistfilterinfo.h>

Public Member Functions

 ServerListFilterInfo (const ServerListFilterInfo &other)
 
bool isFilteringAnything () const
 Informs if filter will apply to any server.
 
bool isFilteringEquivalent (const ServerListFilterInfo &other) const
 Check if the two filters are equivalent in their filterings.
 
ServerListFilterInfooperator= (const ServerListFilterInfo &other)
 
QVariant serialize () const
 
QString toString () const
 

Static Public Member Functions

static ServerListFilterInfo deserialize (const QVariant &variant)
 

Public Attributes

bool bEnabled
 
bool bPopulatedServersOnTop
 This is not a filter but a grouping option.
 
bool bShowBannedServers
 
bool bShowEmpty
 
bool bShowFull
 
bool bShowNotRespondingServers
 
bool bShowOnlyValid
 
bool bShowTooSoonServers
 
QStringList gameModes
 
QStringList gameModesExcluded
 
Doomseeker::ShowMode lockedServers
 
unsigned maxPing
 Maximum allowed ping.
 
QString name
 
QString serverName
 
Doomseeker::ShowMode testingServers
 
QStringList wads
 
QStringList wadsExcluded
 

Detailed Description

Structure describing server filter.

Definition at line 35 of file serverlistfilterinfo.h.

Member Function Documentation

bool ServerListFilterInfo::isFilteringAnything ( ) const

Informs if filter will apply to any server.

Returns
true is returned if this filter will cause servers to become hidden from the server table, false if filter will never apply to any server.

Definition at line 73 of file serverlistfilterinfo.cpp.

bool ServerListFilterInfo::isFilteringEquivalent ( const ServerListFilterInfo other) const

Check if the two filters are equivalent in their filterings.

The equivalent filter results in the same filtering, but can have a different name.

Definition at line 112 of file serverlistfilterinfo.cpp.

Member Data Documentation

bool ServerListFilterInfo::bPopulatedServersOnTop

This is not a filter but a grouping option.

Definition at line 64 of file serverlistfilterinfo.h.

unsigned ServerListFilterInfo::maxPing

Maximum allowed ping.

The default value is 0 and it means that ping filter is disabled.

Definition at line 57 of file serverlistfilterinfo.h.


The documentation for this class was generated from the following files: