forked from iamscottxu/obs-rtspserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtsp_properties.h
43 lines (35 loc) · 978 Bytes
/
rtsp_properties.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
#ifndef RTSP_PROPERTIES_H
#define RTSP_PROPERTIES_H
#include <memory>
#include <QDialog>
#include <obs-module.h>
#include "rtsp_output_helper.h"
namespace Ui {
class RtspProperties;
}
class RtspProperties : public QDialog {
Q_OBJECT
public:
explicit RtspProperties(std::string rtspOutputName, QWidget *parent = 0);
~RtspProperties();
private Q_SLOTS:
void onButtonAddressCopy();
void onStart();
void onStop();
void onEnableOptions(bool startEnable, bool stopRnable);
void onShowWarning(bool show);
Q_SIGNALS:
void enableOptions(bool startEnable, bool stopRnable);
void showWarning(bool show);
private:
Ui::RtspProperties *ui;
signal_handler_t *signalHandler;
RtspOutputHelper *rtspOutputHelper;
void UpdateParameter();
void SaveSetting();
static void OnStartSignal(void *data, calldata_t *cd);
static void OnStopSignal(void *data, calldata_t *cd);
void showEvent(QShowEvent *event);
void closeEvent(QCloseEvent *event);
};
#endif // RTSP_PROPERTIES_H