summaryrefslogtreecommitdiffstats
path: root/src/progs/sdcdb/base/sdcdb_debug.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/progs/sdcdb/base/sdcdb_debug.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/progs/sdcdb/base/sdcdb_debug.h')
-rw-r--r--src/progs/sdcdb/base/sdcdb_debug.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/progs/sdcdb/base/sdcdb_debug.h b/src/progs/sdcdb/base/sdcdb_debug.h
index 55cda75..e1f109b 100644
--- a/src/progs/sdcdb/base/sdcdb_debug.h
+++ b/src/progs/sdcdb/base/sdcdb_debug.h
@@ -19,6 +19,7 @@ namespace SDCDB
class Programmer : public ::Programmer::PicBase
{
Q_OBJECT
+ TQ_OBJECT
public:
Programmer(const ::Programmer::Group &group, const Pic::Data *data)
: Programmer::PicBase(group, data, "sdcdb_programmer") {}
@@ -41,18 +42,18 @@ class Debugger : public ::Debugger::PicBase
{
public:
Debugger(Programmer &programmer);
- virtual bool setBreakpoints(const QValueList<Address> &list);
+ virtual bool setBreakpoints(const TQValueList<Address> &list);
virtual bool readRegister(const Register::TypeData &data, BitValue &value);
virtual bool writeRegister(const Register::TypeData &data, BitValue value);
- virtual bool updatePortStatus(uint index, QMap<uint, Device::PortBitData> &bits);
+ virtual bool updatePorttqStatus(uint index, TQMap<uint, Device::PortBitData> &bits);
private:
uint _nbBreakpoints;
- bool findRegExp(const QStringList &lines, const QString &pattern,
- const QString &label, QString &value) const;
- bool getRegister(const QString &name, BitValue &value);
- bool setRegister(const QString &name, BitValue value);
+ bool findRegExp(const TQStringList &lines, const TQString &pattern,
+ const TQString &label, TQString &value) const;
+ bool getRegister(const TQString &name, BitValue &value);
+ bool setRegister(const TQString &name, BitValue value);
bool getRegister(Address address, BitValue &value);
bool setRegister(Address address, BitValue value);
Hardware *hardware() { return static_cast<Hardware *>(_programmer.hardware()); }
@@ -72,9 +73,9 @@ private:
class Group : public ::Programmer::PicGroup
{
public:
- virtual QString name() const { return "sdcdb"; }
- virtual QString label() const { return i18n("SDCDB"); }
- virtual QString statusLabel() const;
+ virtual TQString name() const { return "sdcdb"; }
+ virtual TQString label() const { return i18n("SDCDB"); }
+ virtual TQString statusLabel() const;
virtual ::Programmer::Properties properties() const { return ::Programmer::Debugger | ::Programmer::HasConnectedState; }
virtual ::Programmer::TargetPowerMode targetPowerMode() const { return ::Programmer::TargetSelfPowered; }
virtual bool isPortSupported(Port::Type) const { return false; }