#ifndef MIRC_SCRIPT_H #define MIRC_SCRIPT_H #include #include #include #include "mirc.h" #include "parser.h" class MIRCScript : public QObject { Q_OBJECT private: QString script; QMap _aliases; QMap _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 aliases(); QMap variables(); }; #endif