summaryrefslogtreecommitdiffstats
path: root/src/common/port/parallel.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/common/port/parallel.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/common/port/parallel.h')
-rw-r--r--src/common/port/parallel.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/common/port/parallel.h b/src/common/port/parallel.h
index 1473db0..2dbfc71 100644
--- a/src/common/port/parallel.h
+++ b/src/common/port/parallel.h
@@ -22,47 +22,47 @@ namespace Port
class Parallel : public Base
{
public:
- Parallel(const QString &device, Log::Base &base);
+ Parallel(const TQString &device, Log::Base &base);
virtual ~Parallel() { close(); }
virtual Description description() const { return Description(PortType::Parallel, _device); }
- static IODirs probe(const QString &device);
- static const QStringList &probedDeviceList();
+ static IODirs probe(const TQString &device);
+ static const TQStringList &probedDeviceList();
static bool isAvailable();
enum Pin { DS = 0, D0, D1, D2, D3, D4, D5, D6, D7, ACK, BUSY, PAPER, SELin,
LF, ERROR, PRIME, SELout, P18, P19, P20, P21, P22, P23, P24, P25,
Nb_Pins };
- enum RequestType { Control = 0, Status, Data, Nb_RequestTypes };
+ enum RequestType { Control = 0, tqStatus, Data, Nb_RequestTypes };
struct PPinData {
RequestType rType;
- uchar mask;
+ uchar tqmask;
IODir dir;
const char *label;
};
static const PPinData PIN_DATA[Nb_Pins];
virtual bool setPinOn(uint pin, bool on, LogicType type);
virtual bool readPin(uint pin, LogicType type, bool &value);
- virtual QValueVector<PinData> pinData(IODir dir) const;
+ virtual TQValueVector<PinData> pinData(IODir dir) const;
virtual bool isGroundPin(uint pin) const;
virtual uint groundPin() const { return P25; }
virtual IODir ioDir(uint pin) const;
private:
int _fd;
- QString _device;
+ TQString _device;
struct RequestData {
int read, write;
};
static const RequestData REQUEST_DATA[Nb_RequestTypes];
uchar _images[Nb_RequestTypes];
- static QStringList *_list;
- static QStringList deviceList();
+ static TQStringList *_list;
+ static TQStringList deviceList();
virtual bool internalOpen();
virtual void internalClose();
- virtual void setSystemError(const QString &message);
+ virtual void setSystemError(const TQString &message);
};
} // namespace