2008-08-31 09:08:24 +00:00
|
|
|
#include "mirc.h"
|
|
|
|
|
2008-08-31 09:50:57 +00:00
|
|
|
MIRCScriptManager::MIRCScriptManager(QObject *parent) {
|
|
|
|
this->parent = parent;
|
2008-08-31 09:08:24 +00:00
|
|
|
}
|
2008-08-31 17:00:39 +00:00
|
|
|
|
|
|
|
bool MIRCScriptManager::hasVariable(QString variable) {
|
|
|
|
return _variables.contains(variable);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString MIRCScriptManager::variable(QString variable) {
|
|
|
|
return _variables.value(variable);
|
|
|
|
}
|
|
|
|
|
|
|
|
void MIRCScriptManager::variable(QString variable, QString value) {
|
|
|
|
_variables[variable] = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMap<QString, QString> MIRCScriptManager::variables() {
|
|
|
|
return _variables;
|
|
|
|
}
|