KVIrc 5.2.0
Developer APIs
Functions
KviEnvironment Namespace Reference

Functions

QString getVariable (const QString &szName)
 Gets environment variable.
 
bool setVariable (const QString &szName, const QString &szValue)
 Sets environment variable.
 
void unsetVariable (const QString &szName)
 Unsets environment variable.
 

Function Documentation

◆ getVariable()

QString KviEnvironment::getVariable ( const QString &  szName)
inline

Gets environment variable.

Parameters
nameThe name of the variable to get
Returns
char *

Referenced by KviLocale::KviLocale(), system_kvs_fnc_getenv(), and unsetVariable().

◆ setVariable()

KVILIB_API bool KviEnvironment::setVariable ( const QString &  szName,
const QString &  szValue 
)

Sets environment variable.

Parameters
nameThe name of the variable to set
valueThe value of the variable
Returns
bool

References KviMemory::allocate(), KviMemory::free(), and KviMemory::move().

Referenced by system_kvs_cmd_setenv().

◆ unsetVariable()

KVILIB_API void KviEnvironment::unsetVariable ( const QString &  szName)

Unsets environment variable.

Parameters
nameThe name of the variable to set
Returns
void

References KviMemory::allocate(), KviMemory::free(), getVariable(), and KviMemory::move().

Referenced by system_kvs_cmd_setenv().