-
Notifications
You must be signed in to change notification settings - Fork 1
/
userscreen.h
80 lines (73 loc) · 1.63 KB
/
userscreen.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* @file userscreen.h
* @brief User window header
* @author mnxoid
*
* Copyright 2014 by mnxoid,
*
* This software is the confidential and proprietary information
* of mnxoid ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with mnxoid.
**/
#ifndef USERSCREEN_H
#define USERSCREEN_H
#include <QMainWindow>
#include <opencv2/highgui/highgui.hpp>
#include <QTimer>
namespace Ui {
class UserScreen;
}
/**
* @brief User window class
**/
class UserScreen : public QMainWindow
{
Q_OBJECT
public:
/**
* @brief UserScreen constructor
* @param [in] parent - Window parent
**/
explicit UserScreen(QWidget *parent = 0);
/**
* @brief UserScreen destructor
**/
~UserScreen();
public slots:
/**
* @brief Unexpected end of capturing handler
**/
void respond();
/**
* @brief Camera stream receiver
**/
void imShow(cv::Mat m);
/**
* @brief Sender
**/
void sendPic();
private slots:
/**
* @brief Exit button click handler
**/
void on_pushButton_2_clicked();
/**
* @brief Start button click handler
**/
void on_pushButton_clicked();
/**
* @brief Capture stopping handler
**/
void captureStop();
signals:
/**
* @brief Capture stopper
**/
void stopCap();
private:
Ui::UserScreen *ui; //!< User interface reference
QTimer* t; //!< Timer instance
};
#endif // USERSCREEN_H