forked from Sepanta/console-emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
327 B
19 lines
327 B
3 years ago
|
#ifndef TESTDATASENDER_H
|
||
|
#define TESTDATASENDER_H
|
||
|
|
||
|
#include "model/DataSender.h"
|
||
|
|
||
|
class TestDataSender : public DataSender
|
||
|
{
|
||
|
public:
|
||
|
QByteArray consoleData;
|
||
|
|
||
|
int send(const QByteArray &data) override
|
||
|
{
|
||
|
consoleData = data;
|
||
|
return data.length();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif // TESTDATASENDER_H
|