#ifndef CONSOLE_SCRIPT_H #define CONSOLE_SCRIPT_H #include /* Very simple scripting - this class stores keys received * by emulation_layer */ class Script { public: /* Construct an empty script */ Script(); /* Load a script from a text file */ Script(const QString fileName); /* Append a line to the script */ void append(const QByteArray &data); /* Save this script to a file */ void saveTo(const QString fileName) const; /* Return the script's content */ QByteArray script() const; protected: QByteArray m_script; }; #endif /* CONSOLE_SCRIPT_H */