-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmessagehandler.h
34 lines (27 loc) · 940 Bytes
/
messagehandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*************************************************************************
**
** (C) Copyright 2013 Reach Technology Inc.
**
** This code is protected by international copyright laws. This file may
** only be used in accordance with a license and cannot be used on
** hardware other than supplied by Reach Technology Inc. We appreciate
** your understanding and fairness.
**
*************************************************************************/
#ifndef MESSAGEHANDLER_H
#define MESSAGEHANDLER_H
#include <QObject>
#include <QDebug>
#include <QVariant>
class MessageHandler : public QObject
{
Q_OBJECT
public:
explicit MessageHandler(QObject *parent = 0);
signals:
void messageAvailable(const QString &item, const QString &property, const QVariant &value);
void messageSyntaxError(const QByteArray &msg);
public slots:
void onMessageAvailable(QByteArray);
};
#endif // MESSAGEHANDLER_H