Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

script.h

Go to the documentation of this file.
00001 #ifndef CONSOLE_SCRIPT_H
00002 #define CONSOLE_SCRIPT_H
00003 
00004 #include <qstring.h>
00005 
00006 /* Very simple scripting - this class stores keys received
00007  * by emulation_layer */
00008 
00009 class Script {
00010 public:
00011     /* Construct an empty script */
00012     Script();
00013     
00014     /* Load a script from a text file */
00015     Script(const QString fileName);
00016 
00017     /* Append a line to the script */
00018     void append(const QByteArray &data);
00019 
00020     /* Save this script to a file */
00021     void saveTo(const QString fileName) const;
00022 
00023     /* Return the script's content */
00024     QByteArray script() const;
00025 protected:
00026     QByteArray m_script;
00027 };
00028 
00029 
00030 #endif /* CONSOLE_SCRIPT_H */

Generated on Sat Nov 5 16:15:36 2005 for OPIE by  doxygen 1.4.2