mercenary/mirc/includes/script.h
Correl Roush 7315012830 Why not load a file specified on the commandline...
Also, some placeholder functions for the great and powerful script
manager!


git-svn-id: file:///srv/svn/ircclient/trunk@2 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
2008-08-31 09:50:57 +00:00

30 lines
600 B
C++

#ifndef MIRC_SCRIPT_H
#define MIRC_SCRIPT_H
#include <QObject>
#include <QString>
#include <QMap>
#include "mirc.h"
#include "parser.h"
class MIRCScript : public QObject {
Q_OBJECT
private:
MIRCScriptManager *manager;
QString script;
QMap<QString, mirc_alias> _aliases;
QMap<QString, QString> _variables;
bool loaded;
public:
MIRCScript(MIRCScriptManager *m);
bool load(QString filename);
bool parse(QString script);
bool run();
bool run(QString alias);
QString code();
QString code(QString alias);
QMap<QString, mirc_alias> aliases();
QMap<QString, QString> variables();
};
#endif