class Config

Handle the bot's configuration file and options. More...

Definition#include <Config.h>
InheritsQObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods

Protected Members


Detailed Description

The Config class is used to parse the configuration file and keep track of the various options (dbase connection information, command levels, etc).

Config* instance ()
[static]

Get a pointer to the single instance of the Config class.

void readConfig (const QString& filename)

Load configuration information from filename. Throws a EConfigError if the file could not be open.

Parameters:
filenameThe name of the config file to use.

const QString& getNick ()
[const]

Get the value of the nick field in the config file.

Returns: The value of the nick field.

const QString& getUserName ()
[const]

Get the value of the username field in the config file.

Returns: The value of the username field.

const QString& getRealName ()
[const]

Get the value of the realname field in the config file.

Returns: The value of the realname field.

const QString& getUserMode ()
[const]

Get the value of the usermode field in the config file.

Returns: The value of the usermode field.

const QString& getDbaseHost ()
[const]

Get the value of the dbasehost field in the config file.

Returns: The value of the dbasehost field.

const QString& getDbaseUser ()
[const]

Get the value of the dbaseuser field in the config file.

Returns: The value of the dbaseuser field.

const QString& getDbasePass ()
[const]

Get the value of the dbasepass field in the config file.

Returns: The value of the dbasepass field.

const QString& getDbaseName ()
[const]

Get the value of the dbasename field in the config file.

Returns: The value of the dbasename field.

const QString& getLanguage ()
[const]

Get the value of the language field in the config file.

Returns: The value of the language field.

bool debugOn ()
[const]

Determine wether the config file turned debug mode on.

Returns: true if debug mode is activated, false otherwise.


Generated by: nightsky@centauri on Sat Jan 15 23:06:10 2000, using kdoc 2.0a30.