-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainview.h
49 lines (40 loc) · 1.24 KB
/
mainview.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*************************************************************************
**
** (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 MAINVIEW_H
#define MAINVIEW_H
#include <QDeclarativeView>
#include <QDeclarativeItem>
#include <QDeclarativeContext>
#include "connection.h"
#include "messagehandler.h"
#include "settings.h"
#include "screen.h"
class MainView : public QDeclarativeView
{
Q_OBJECT
public:
explicit MainView(QWidget *parent = 0);
~MainView();
public slots:
void onMessageAvailable(const QString &item, const QString &property, const QVariant &value);
void onMessageSyntaxError(const QByteArray &msg);
void enableLookupAck(bool enable);
private slots:
void onConnectionReady();
void onConnectionClosed();
private:
Connection *m_connection;
MessageHandler *m_messageHandler;
Settings *m_settings;
Screen *m_screen;
bool m_enableAck;
};
#endif // MAINVIEW_H