新增秘钥生成器+程序守护进程

This commit is contained in:
feiyangqingyun
2020-06-18 08:34:35 +08:00
parent b7979fa991
commit 3ea100dc59
42 changed files with 1582 additions and 2 deletions

28
live/livedemo/applive.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef APPLIVE_H
#define APPLIVE_H
#include <QObject>
class QUdpSocket;
class AppLive : public QObject
{
Q_OBJECT
public:
static AppLive *Instance();
explicit AppLive(QObject *parent = 0);
private:
static QScopedPointer<AppLive> self;
QUdpSocket *udpServer;
QString appName;
private slots:
void readData();
public slots:
bool start(int port);
void stop();
};
#endif // APPLIVE_H