move from tabs to spaces
This commit is contained in:
@ -8,46 +8,46 @@
|
||||
|
||||
class BroadCast: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
|
||||
bool master_;
|
||||
bool master_;
|
||||
|
||||
static constexpr uint8_t MODE_PREPACKET = 0;
|
||||
static constexpr uint8_t MODE_PACKET = 1;
|
||||
static constexpr uint8_t MODE_PREPACKET = 0;
|
||||
static constexpr uint8_t MODE_PACKET = 1;
|
||||
|
||||
QByteArray buffer_;
|
||||
QByteArray buffer_;
|
||||
|
||||
QIODevice* const iodevice_;
|
||||
QIODevice* const iodevice_;
|
||||
|
||||
void write(const char * const buffer, const size_t length);
|
||||
void write(const QByteArray& buffer);
|
||||
void write(const char * const buffer, const size_t length);
|
||||
void write(const QByteArray& buffer);
|
||||
|
||||
void decode(QByteArray buffer);
|
||||
void decodeMaster(const QByteArray& buffer);
|
||||
void decode(QByteArray buffer);
|
||||
void decodeMaster(const QByteArray& buffer);
|
||||
|
||||
private slots:
|
||||
|
||||
void readyRead();
|
||||
void readyRead();
|
||||
|
||||
public slots:
|
||||
|
||||
void requestJson();
|
||||
void requestSensors();
|
||||
void requestJson();
|
||||
void requestSensors();
|
||||
|
||||
signals:
|
||||
|
||||
void jsonRequested();
|
||||
void gotJson(QJsonObject json);
|
||||
void gotSensorState(Sensor sensor);
|
||||
void jsonRequested();
|
||||
void gotJson(QJsonObject json);
|
||||
void gotSensorState(Sensor sensor);
|
||||
|
||||
public:
|
||||
|
||||
BroadCast(QIODevice* const iodevice = nullptr, bool master = true);
|
||||
void sendJson(const QJsonObject& json);
|
||||
void sendSensors();
|
||||
void sendMessage(const QString& title, const QString& body);
|
||||
BroadCast(QIODevice* const iodevice = nullptr, bool master = true);
|
||||
void sendJson(const QJsonObject& json);
|
||||
void sendSensors();
|
||||
void sendMessage(const QString& title, const QString& body);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user