summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/emulation_handler.h
authorharlekin <harlekin>2004-10-08 20:03:40 (UTC)
committer harlekin <harlekin>2004-10-08 20:03:40 (UTC)
commit4e884ee63f16d1367ff7b854dbe5b50a6871c008 (patch) (side-by-side diff)
treefb9d9d13e9329e6ee9048bfc0e857d3918f4ecca /noncore/apps/opie-console/emulation_handler.h
parent51e49f0bd035545b983c799f7089de6b0ff2547e (diff)
downloadopie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.zip
opie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.tar.gz
opie-4e884ee63f16d1367ff7b854dbe5b50a6871c008.tar.bz2
added a 10east define for some changed builds for them, also added a logging mode, also some changes to the "fix broken distros" part, snapshot
Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h
index 1338525..1092c82 100644
--- a/noncore/apps/opie-console/emulation_handler.h
+++ b/noncore/apps/opie-console/emulation_handler.h
@@ -27,9 +27,13 @@ class Profile;
class QWidget;
class QPushButton;
class TEWidget;
+class QFile;
class TEmulation;
class QFont;
+class QTextStream;
class Script;
+class Logger;
+
class EmulationHandler : public QObject {
Q_OBJECT
public:
@@ -55,14 +59,24 @@ public:
/* Create a new script and record all typed characters */
void startRecording();
+ void startLogging(const QString);
+
/* Return whether we are currently recording a script */
bool isRecording();
+ /* Return whether we are currently recording a log */
+ bool isLogging();
+
+ QString logFileName();
+
/* Return the current script (or NULL) */
Script *script();
/* Stop recording and remove the current script from memory */
void clearScript();
+
+ /* Stop logging and remove the current log from memory */
+ void clearLog();
/* Run a script by forwarding its keys to the EmulationLayer */
void runScript(const Script *);
@@ -90,6 +104,8 @@ private:
TEWidget* m_teWid;
TEmulation* m_teEmu;
Script * m_script;
+ Logger *m_log;
+ QString m_logFileName;
};
#endif