CFGCustomServers Class Reference
+ Inheritance diagram for CFGCustomServers:

Public Member Functions

 CFGCustomServers (QWidget *parent=NULL)
 
QIcon icon () const
 Reimplement this to return a displayable icon for the ConfigurationBaseBox. More...
 
QString name () const
 Reimplement this to return a list-displayable name for this ConfigurationBaseBox. More...
 
void readSettings ()
 Reimplement this to read settings from config into widgets. More...
 
- Public Member Functions inherited from ConfigurationBaseBox
 ConfigurationBaseBox (QWidget *parent=NULL)
 
bool allowSave ()
 Does this page allow to save the new settings? More...
 
bool areSettingsAlreadyRead ()
 true if settings for this page have already been loaded at least once. More...
 
void read ()
 Read configuration from persistence to page contents. More...
 
bool save ()
 Save configuration from page contents to persistence. More...
 
void setAllowSave (bool b)
 Change whether settings on this page can be stored in persisting configuration. More...
 
virtual QString title () const
 Page title, by default returns the same string as name(). More...
 

Protected Types

enum  CheckAndFixPorts { AllOk, AtLeastOneFixed }
 
enum  ColumnIndices { EngineColumnIndex = 0, AddressColumnIndex = 1, PortColumnIndex = 2 }
 

Protected Slots

void add ()
 
void add (const QString &engineName, const QString &host, unsigned short port)
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void remove ()
 
void setEngine ()
 

Protected Member Functions

CheckAndFixPorts checkAndFixPorts (int firstRow, int lastRow)
 Moves through rows and checks if network port information is correct. More...
 
const EnginePlugingetPluginInfoForRow (int rowIndex)
 
bool isPortColumnWithingRange (int leftmostColumnIndex, int rightmostColumnIndex)
 
bool isPortCorrect (int rowIndex)
 
void prepareEnginesComboBox ()
 
void prepareTable ()
 
void saveSettings ()
 Reimplement this to write settings to config from widgets. More...
 
void setEngineOnItem (QStandardItem *, const QString &engineName)
 
void setPortToDefault (int rowIndex)
 
QVector< CustomServerInfotableGetServers ()
 

Protected Attributes

QStandardItemModel * model
 

Additional Inherited Members

- Signals inherited from ConfigurationBaseBox
void appearanceChanged ()
 Emit to tell Doomseeker to redraw certain widgets. More...
 

Detailed Description

Definition at line 37 of file cfgcustomservers.h.

Member Function Documentation

CFGCustomServers::CheckAndFixPorts CFGCustomServers::checkAndFixPorts ( int  firstRow,
int  lastRow 
)
protected

Moves through rows and checks if network port information is correct.

Parameters
firstRow- First row to be checked (inclusive).
lastRow- Last row to be checked (inclusive).

Definition at line 85 of file cfgcustomservers.cpp.

QIcon CFGCustomServers::icon ( ) const
inlinevirtual

Reimplement this to return a displayable icon for the ConfigurationBaseBox.

If there is no QIcon associated with this box just return a QIcon object with argument-less constructor.

Implements ConfigurationBaseBox.

Definition at line 45 of file cfgcustomservers.h.

QString CFGCustomServers::name ( ) const
inlinevirtual

Reimplement this to return a list-displayable name for this ConfigurationBaseBox.

Implements ConfigurationBaseBox.

Definition at line 46 of file cfgcustomservers.h.

void CFGCustomServers::readSettings ( )
virtual

Reimplement this to read settings from config into widgets.

Implements ConfigurationBaseBox.

Definition at line 190 of file cfgcustomservers.cpp.

void CFGCustomServers::saveSettings ( )
protectedvirtual

Reimplement this to write settings to config from widgets.

Implements ConfigurationBaseBox.

Definition at line 221 of file cfgcustomservers.cpp.


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