mirror of
https://github.com/correl/mercenary.git
synced 2024-11-23 19:19:51 +00:00
Correl Roush
3dac90e658
Also, broke up the parser a bit to ease compilation git-svn-id: file:///srv/svn/ircclient/trunk@3 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
32 lines
641 B
C++
32 lines
641 B
C++
#ifndef MIRC_H
|
|
#define MIRC_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QMap>
|
|
#include <QVector>
|
|
#include "script.h"
|
|
|
|
class MIRCScript;
|
|
|
|
class MIRCScriptManager : public QObject {
|
|
Q_OBJECT
|
|
private:
|
|
QObject *parent;
|
|
QVector<MIRCScript> scripts;
|
|
QMap<QString, QString> _variables;
|
|
public:
|
|
MIRCScriptManager(QObject *parent = 0);
|
|
/*
|
|
bool load(QString filename);
|
|
bool unload(QString filename);
|
|
|
|
QString call_alias(QString alias, QStringList arguments);
|
|
*/
|
|
bool hasVariable(QString variable);
|
|
QString variable(QString variable);
|
|
void variable(QString variable, QString value);
|
|
QMap<QString, QString> variables();
|
|
};
|
|
|
|
#endif
|