Attica 5.109.0
Public Types | Public Member Functions | List of all members
Attica::Config

Represents a server config. More...

#include <Attica/Config>

Public Types

typedef QList< ConfigList
 

Public Member Functions

 Config ()
 Creates an empty Config.
 
 Config (const Config &other)
 Copy constructor.
 
 ~Config ()
 Destructor.
 
QString contact () const
 
QString host () const
 
bool isValid () const
 Checks whether this config is valid.
 
Configoperator= (const Config &other)
 Assignment operator.
 
void setContact (const QString &contact)
 
void setHost (const QString &host)
 
void setSsl (bool ssl)
 
void setVersion (const QString &version)
 
void setWebsite (const QString &website)
 
bool ssl () const
 
QString version () const
 
QString website () const
 

Detailed Description

Represents a server config.

Constructor & Destructor Documentation

◆ Config() [1/2]

Attica::Config::Config ( )

Creates an empty Config.

◆ Config() [2/2]

Attica::Config::Config ( const Config other)

Copy constructor.

Parameters
otherthe Config to copy from

◆ ~Config()

Attica::Config::~Config ( )

Destructor.

Member Function Documentation

◆ isValid()

bool Attica::Config::isValid ( ) const

Checks whether this config is valid.

Returns
true if config is valid, false otherwise

◆ operator=()

Config & Attica::Config::operator= ( const Config other)

Assignment operator.

Parameters
otherthe Config to assign from
Returns
pointer to this Config