summaryrefslogtreecommitdiffstats
path: root/src/piklab-prog/cli_interactive.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/piklab-prog/cli_interactive.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/piklab-prog/cli_interactive.h')
-rw-r--r--src/piklab-prog/cli_interactive.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/piklab-prog/cli_interactive.h b/src/piklab-prog/cli_interactive.h
index fad6e9d..8509fc0 100644
--- a/src/piklab-prog/cli_interactive.h
+++ b/src/piklab-prog/cli_interactive.h
@@ -9,7 +9,7 @@
#ifndef CLI_INTERACTIVE_H
#define CLI_INTERACTIVE_H
-#include <qfile.h>
+#include <tqfile.h>
#include "common/global/global.h"
#include "common/cli/cli_global.h"
#include "common/global/log.h"
@@ -20,30 +20,31 @@ namespace CLI
//----------------------------------------------------------------------------
enum CommandProperty { NoCommandProperty = 0, NeedProgrammer = 1, InputHex = 2,
OutputHex = 4, NeedDevice = 8 };
-Q_DECLARE_FLAGS(CommandProperties, CommandProperty)
-Q_DECLARE_OPERATORS_FOR_FLAGS(CommandProperties)
+TQ_DECLARE_FLAGS(CommandProperties, CommandProperty)
+TQ_DECLARE_OPERATORS_FOR_FLAGS(CommandProperties)
//----------------------------------------------------------------------------
-class Interactive : public QObject, public Log::Base
+class Interactive : public TQObject, public Log::Base
{
Q_OBJECT
+ TQ_OBJECT
public:
- Interactive(QObject *parent);
+ Interactive(TQObject *tqparent);
void redisplayPrompt();
private slots:
void displayPrompt();
private:
- QFile _stdin;
- QString _input;
+ TQFile _stdin;
+ TQString _input;
void lineRead();
- ExitCode processLine(const QString &s);
- ExitCode executeRegister(const QString &name, const QString &value);
+ ExitCode processLine(const TQString &s);
+ ExitCode executeRegister(const TQString &name, const TQString &value);
ExitCode registerList();
ExitCode variableList();
- ExitCode executeRawCommands(const QString &filename);
- Address findRegisterAddress(const QString &name);
+ ExitCode executeRawCommands(const TQString &filename);
+ Address findRegisterAddress(const TQString &name);
ExitCode start();
static void signalHandler(int n);
};