mirror of
https://github.com/correl/mercenary.git
synced 2024-11-23 19:19:51 +00:00
Correl Roush
0381859219
that will eventually be integrated into it git-svn-id: file:///srv/svn/ircclient/trunk@1 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
29 lines
551 B
C++
29 lines
551 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:
|
|
QString script;
|
|
QMap<QString, mirc_alias> _aliases;
|
|
QMap<QString, QString> _variables;
|
|
bool loaded;
|
|
public:
|
|
MIRCScript();
|
|
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
|