class TBaseSerialDevice : public QIODevice{...public:.... virtual bool setBaudRate(TBaudRate baudRate=BaudRate9600)}class TWinSerialDevice : public TBaseSerialDevice{.... bool setBaudRate(TBaudRate baudRate); {//тут уже другая реализация нежели в TBaseSerialDevice т.е я переопределяю эту виртуальную ф-ю }....}
class TBaseSerialDevice : public QIODevice{...public:.... virtual bool setBaudRate(TBaudRate baudRate=BaudRate9600)}class TWinSerialDevice : public TBaseSerialDevice{.... virtual bool setBaudRate(TBaudRate baudRate=BaudRate9600)....}
Running build steps for project project...Creating gdb macros library...Starting: /usr/local/qtsdk-2009.01/qt/bin/qmake /home/bboy/Templates/111/QSerialDevice_11062009_1700/project.pro -spec linux-g++ -r Reading /home/bboy/Templates/111/QSerialDevice_11062009_1700/src/src.proReading /home/bboy/Templates/111/QSerialDevice_11062009_1700/examples/reader/reader.proReading /home/bboy/Templates/111/QSerialDevice_11062009_1700/examples/writer/writer.proExited with code 0.Starting: /usr/bin/make -w make: Entering directory `/home/bboy/Templates/111/QSerialDevice_11062009_1700'cd src/ && /usr/bin/make -f Makefilemake[1]: Entering directory `/home/bboy/Templates/111/QSerialDevice_11062009_1700/src'g++ -c -pipe -O2 -fPIC -D_REENTRANT -Wall -W -D_TTY_POSIX_ -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/local/qtsdk-2009.01/qt/mkspecs/linux-g++ -I. -I/usr/local/qtsdk-2009.01/qt/include/QtCore -I/usr/local/qtsdk-2009.01/qt/include -Ibuild/moc -o build/obj/posixserialdevice.o posixserialdevice.cppposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::open(QFlags<QIODevice::OpenModeFlag>)’:posixserialdevice.cpp:104: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:134: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘deviceName’posixserialdevice.cpp:138: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:145: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:155: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:309: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:310: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:311: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘parity’posixserialdevice.cpp:312: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:313: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘flowControl’posixserialdevice.cpp:314: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘charIntervalTimeout’posixserialdevice.cpp:317: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:323: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual void TPosixSerialDevice::close()’:posixserialdevice.cpp:348: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:352: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setBaudRate(TBaseSerialDevice::TBaudRate)’:posixserialdevice.cpp:403: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:406: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:409: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:413: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:420: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:423: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘baudRate’posixserialdevice.cpp:562: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:568: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:572: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setDataBits(TBaseSerialDevice::TDataBits)’:posixserialdevice.cpp:613: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:615: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:616: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:617: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘parity’posixserialdevice.cpp:620: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:627: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:631: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:638: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:642: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:649: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:653: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:660: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:664: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:674: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:680: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:684: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setParity(TBaseSerialDevice::TParity)’:posixserialdevice.cpp:727: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘parity’posixserialdevice.cpp:728: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:731: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘parity’posixserialdevice.cpp:738: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:743: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:745: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:749: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:753: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:782: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:788: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:792: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setStopBits(TBaseSerialDevice::TStopBits)’:posixserialdevice.cpp:832: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:833: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:835: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:842: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:850: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘dataBits’posixserialdevice.cpp:854: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘stopBits’posixserialdevice.cpp:863: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:869: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:873: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setFlowControl(TBaseSerialDevice::TFlow)’:posixserialdevice.cpp:908: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘flowControl’posixserialdevice.cpp:909: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘flowControl’posixserialdevice.cpp:933: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:939: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:943: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setCharIntervalTimeout(int)’:posixserialdevice.cpp:961: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘charIntervalTimeout’posixserialdevice.cpp:965: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:972: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:978: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘qint64 TPosixSerialDevice::bytesAvailable()’:posixserialdevice.cpp:1004: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1010: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setDtr(bool)’:posixserialdevice.cpp:1036: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1047: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1053: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::setRts(bool)’:posixserialdevice.cpp:1079: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1090: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1096: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual ulong TPosixSerialDevice::lineStatus()’:posixserialdevice.cpp:1133: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1162: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::waitForReadyRead(int, bool)’:posixserialdevice.cpp:1223: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1235: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1246: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1250: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual bool TPosixSerialDevice::waitForBytesWritten(int)’:posixserialdevice.cpp:1306: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1316: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1324: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1328: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp: In member function ‘virtual qint64 TPosixSerialDevice::readData(char*, qint64)’:posixserialdevice.cpp:1362: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1378: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1387: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1394: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1401: error: ‘class TBaseSerialDevice::TSerialSettings’ has no member named ‘charIntervalTimeout’posixserialdevice.cpp: In member function ‘virtual qint64 TPosixSerialDevice::writeData(const char*, qint64)’:posixserialdevice.cpp:1433: error: ‘errors’ was not declared in this scopeposixserialdevice.cpp:1439: error: ‘errors’ was not declared in this scopemake[1]: Leaving directory `/home/bboy/Templates/111/QSerialDevice_11062009_1700/src'make[1]: *** [build/obj/posixserialdevice.o] Error 1make: Leaving directory `/home/bboy/Templates/111/QSerialDevice_11062009_1700'make: *** [sub-src-make_default-ordered] Error 2Exited with code 2.Error while building project projectWhen executing build step 'Make'
...virtual bool setBaudRate(TBaudRate baudRate=BaudRate9600)...
...virtual bool m_setBaudRate(TBaudRate baudRate=BaudRate9600)...