⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 嵌入式LINUX的智能家居系统源码
💻 CPP
字号:
#include <qapplication.h>#include "pc_form.h"#include "audio.h"#include "net.h"int main( int argc, char ** argv ){    QApplication app( argc, argv );     pc_Form w;    w.show();    audio a;    a.init();    net n;    n.init_net();         app.connect(&w,SIGNAL(sig_start_audio()),&a,SLOT(start_rec()));    app.connect(&w,SIGNAL(sig_stop_audio()),&a,SLOT(stop_rec()));    app.connect(&w,SIGNAL(sig_start_video()),&n,SLOT(start_receive_v()));    app.connect(&w,SIGNAL(sig_stop_video()),&n,SLOT(stop_receive_v()));    app.connect(&n,SIGNAL(sig_refresh_img()),&w,SLOT(print_video()));    app.connect(&n,SIGNAL(s_contact_consumer(char*,char *)),&a,SLOT(get_audio_bufs(char *,char*)));    n.contact_consumer();         app.connect(&a,SIGNAL(sig_send(int)),&n,SLOT(send_audio(int)));    app.connect(&n,SIGNAL(sig_play(int)),&a,SLOT(play_audio(int)));            app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );            return app.exec();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -