Changeset View
Changeset View
Standalone View
Standalone View
core/backends/devicelinereader.h
Context not available. | |||||
39 | public: | 39 | public: | ||
---|---|---|---|---|---|
40 | DeviceLineReader(QIODevice* device, QObject* parent = 0); | 40 | DeviceLineReader(QIODevice* device, QObject* parent = 0); | ||
41 | 41 | | |||
42 | QByteArray readLine() { return mPackages.dequeue(); } | 42 | QByteArray readLine() { return m_packages.dequeue(); } | ||
43 | qint64 write(const QByteArray& data) { return mDevice->write(data); } | 43 | qint64 write(const QByteArray& data) { return m_device->write(data); } | ||
44 | qint64 bytesAvailable() const { return mPackages.size(); } | 44 | qint64 bytesAvailable() const { return m_packages.size(); } | ||
45 | 45 | | |||
46 | Q_SIGNALS: | 46 | Q_SIGNALS: | ||
47 | void readyRead(); | 47 | void readyRead(); | ||
Context not available. | |||||
51 | void dataReceived(); | 51 | void dataReceived(); | ||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | QByteArray lastChunk; | 54 | QByteArray m_lastChunk; | ||
55 | QIODevice* mDevice; | 55 | QIODevice* m_device; | ||
56 | QQueue<QByteArray> mPackages; | 56 | QQueue<QByteArray> m_packages; | ||
57 | 57 | | |||
58 | }; | 58 | }; | ||
59 | 59 | | |||
Context not available. |