亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mywidget.cpp

?? 嵌入式linux的小程序
?? CPP
字號:
/*  Copyright ADBON.  All rights reserved. *  file MyWidget.cpp is software of phone program; *  author Bing Ning. *  See http://www.adbon.com.cn *///qt include#include<qpushbutton.h>#include<qlineedit.h>#include<qstring.h>#include<qcstring.h>#include<qapplication.h>//system include#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<fcntl.h>#include<termios.h>#include<sys/times.h>#include<sys/types.h>#include<sys/ioctl.h>#include<string.h>//my include#include"MyWidget.h"//#include"MyCom.h"static int fdcom;static int send_flag = 0;const QString ATD = "ATD";const QString AT1 = ";\r";QString phone_buf;//QCString phone_buffer;//int i;//QByteArray buffer;MyWidget::MyWidget(QWidget *parent, const char *name):QWidget(parent, name){	setMinimumSize(100, 220);	setMaximumSize(100, 220);		QPushButton *button_1 = new QPushButton("1", this, "button_1");	button_1->setGeometry(10, 80, 25, 25);	button_1->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_2 = new QPushButton("2", this, "button_2");	button_2->setGeometry(40, 80, 25, 25);	button_2->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_3 = new QPushButton("3", this, "button_3");	button_3->setGeometry(70, 80, 25, 25);	button_3->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_4 = new QPushButton("4", this, "button_4");	button_4->setGeometry(10, 115, 25, 25);	button_4->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_5 = new QPushButton("5", this, "button_5");	button_5->setGeometry(38, 115, 25, 25);	button_5->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_6 = new QPushButton("6", this, "button_6");	button_6->setGeometry(68, 115, 25, 25);	button_6->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_7 = new QPushButton("7", this, "button_7");	button_7->setGeometry(8, 150, 25, 25);	button_7->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_8 = new QPushButton("8", this, "button_8");	button_8->setGeometry(38, 150, 25, 25);	button_8->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_9 = new QPushButton("9", this, "button_9");	button_9->setGeometry(68, 150, 25, 25);	button_9->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_0 = new QPushButton("0", this, "button_0");	button_0->setGeometry(38, 185, 25, 25);	button_0->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_11 = new QPushButton("*", this, "button_11");	button_11->setGeometry(8, 185, 25, 25);	button_11->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_12 = new QPushButton("#", this, "button_12");	button_12->setGeometry(68, 185, 25, 25);	button_12->setFont(QFont("Times", 18, QFont::Bold));	QPushButton *button_send = new QPushButton("ok", this, "send");	button_send->setGeometry(8, 45, 25, 25);	button_send->setFont(QFont("Times", 18, QFont::Bold));		QPushButton *button_quit = new QPushButton("quit", this, "button_quit");	button_quit->setGeometry(68, 45, 25, 25);	button_quit->setFont(QFont("Times", 12, QFont::Bold));		QPushButton *button_c = new QPushButton("C", this, "button_c");	button_c->setGeometry(38, 45, 25, 25);	button_c->setFont(QFont("Times", 18, QFont::Bold));	phone_edit = new QLineEdit(this);	phone_edit->setGeometry(8, 20, 85, 15);	phone_edit->setReadOnly(TRUE);        	//test line        qlineedit_test = new QLineEdit(this);        qlineedit_test->setGeometry(8, 3, 85, 15);	//test line end!	        	connect(button_1, SIGNAL(clicked()), this, SLOT(insert_1()));            connect(button_2, SIGNAL(clicked()), this, SLOT(insert_2()));            connect(button_3, SIGNAL(clicked()), this, SLOT(insert_3()));            connect(button_4, SIGNAL(clicked()), this, SLOT(insert_4()));            connect(button_5, SIGNAL(clicked()), this, SLOT(insert_5()));            connect(button_6, SIGNAL(clicked()), this, SLOT(insert_6()));            connect(button_7, SIGNAL(clicked()), this, SLOT(insert_7()));            connect(button_8, SIGNAL(clicked()), this, SLOT(insert_8()));            connect(button_9, SIGNAL(clicked()), this, SLOT(insert_9()));            connect(button_0, SIGNAL(clicked()), this, SLOT(insert_0()));            connect(button_11, SIGNAL(clicked()), this, SLOT(insert_11()));            connect(button_12, SIGNAL(clicked()), this, SLOT(insert_12()));            connect(button_quit, SIGNAL(clicked()), this, SLOT(lineedit_clear()));         connect(button_c, SIGNAL(clicked()), this, SLOT(lineedit_backspace()));               connect(button_send, SIGNAL(clicked()), this, SLOT(data_send_com()));           }MyWidget::~MyWidget(){}void MyWidget::insert_1(){      phone_edit->insert("1");}      	void MyWidget::insert_2(){      phone_edit->insert("2");}void MyWidget::insert_3(){      phone_edit->insert("3");}void MyWidget::insert_4(){      phone_edit->insert("4");}void MyWidget::insert_5(){      phone_edit->insert("5");}void MyWidget::insert_6(){      phone_edit->insert("6");}void MyWidget::insert_7(){      phone_edit->insert("7");}void MyWidget::insert_8(){      phone_edit->insert("8");}void MyWidget::insert_9(){      phone_edit->insert("9");}void MyWidget::insert_0(){      phone_edit->insert("0");}void MyWidget::insert_11(){      phone_edit->insert("*");}void MyWidget::insert_12(){      phone_edit->insert("#");}void MyWidget::lineedit_backspace(){	phone_edit->backspace();}void MyWidget::lineedit_clear(){}void MyWidget::data_send_com(){	int send_len, recv_len;	char recv_buf[10];	char send_buf[30];	        memset(recv_buf, 0, 10);	memset(send_buf, 0, 30);		/*portinfo_t portinfo =	{		'0',              // print prompt after receivong		115200,           // baudrate: 115200		'8',              // databit: 8		'0',              // debug :off		'0',              // echo: off		'0',              // flow control: no		'1',              // default tty: COM2		'0',              // parity: none		'1',              // stopbit : 1		 0                // reserved	};	fdcom = PortOpen(&portinfo);	if(fdcom < 0)	{		printf("Error: open serial port error.\n");		exit(-1);	}        PortSet(fdcom, &portinfo);        */	phone_buf = ATD + phone_edit->text() + AT1;	qlineedit_test->setText(phone_buf);		memcpy(send_buf, phone_buf, phone_buf.length());	printf("the send_buf is %s . \n",send_buf);	//send data to com//        send_len = PortSend(fdcom, send_buf, strlen(send_buf)); 	if(send_len > 0)	{		send_flag = 1;		printf("Send data to %d com OK!\n", send_len);	}	else	{		printf("Error: send failed!\n");	}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品在线麻豆| 国产另类ts人妖一区二区| 久久国产精品无码网站| 精品sm在线观看| 久久精品人人做| 怡红院av一区二区三区| 日本女人一区二区三区| 国产aⅴ综合色| 欧美色国产精品| xf在线a精品一区二区视频网站| 国产精品麻豆99久久久久久| 亚洲国产wwwccc36天堂| 精品影视av免费| 91看片淫黄大片一级在线观看| 日韩一区二区电影在线| 国产精品国产自产拍高清av王其| 亚洲一级二级三级| 国产盗摄一区二区| 欧美日韩精品综合在线| 中文字幕va一区二区三区| 日日摸夜夜添夜夜添国产精品| 国产二区国产一区在线观看| 精品视频一区三区九区| 国产日产精品1区| 五月综合激情日本mⅴ| 成人免费av网站| 欧美一区日本一区韩国一区| 亚洲色图视频免费播放| 久久国产精品区| 欧美日韩视频专区在线播放| 国产三级精品在线| 青青草国产精品97视觉盛宴| 91视频一区二区| 久久久精品黄色| 亚洲成va人在线观看| 99视频一区二区| 26uuu国产电影一区二区| 亚洲a一区二区| 91丨九色porny丨蝌蚪| 久久久久久黄色| 美脚の诱脚舐め脚责91| 欧美日韩亚洲综合一区二区三区| 欧美经典三级视频一区二区三区| 七七婷婷婷婷精品国产| 欧美视频一区二区三区在线观看 | 亚洲一区二区三区精品在线| 国产毛片精品视频| 日韩免费看网站| 亚洲高清不卡在线| 色天天综合色天天久久| 国产成人精品影院| 日韩三级视频中文字幕| 午夜精品国产更新| 91国产免费看| 国产精品美女久久福利网站| 国产成人免费xxxxxxxx| 精品国产乱码久久久久久老虎| 天堂午夜影视日韩欧美一区二区| 色综合久久天天| 亚洲婷婷综合久久一本伊一区 | 久久影院电视剧免费观看| 日本在线不卡视频一二三区| 欧美日韩免费一区二区三区视频| 亚洲天堂2014| 99精品视频在线播放观看| 国产欧美日本一区视频| 国产乱对白刺激视频不卡| 精品国产乱码久久久久久久| 蜜桃av一区二区在线观看| 欧美一区二区美女| 久久精品国产精品亚洲精品| 日韩欧美一区二区视频| 久久精品国产99国产| 日韩欧美国产综合| 蜜桃久久av一区| 精品国产百合女同互慰| 国产一区不卡在线| 久久精品一区二区| 成人动漫在线一区| 亚洲视频一区二区免费在线观看 | 亚洲视频一区在线| 色94色欧美sute亚洲13| 亚洲欧美日韩国产综合| 在线亚洲欧美专区二区| 亚洲一区二区三区三| 69堂国产成人免费视频| 久久国产视频网| 国产三级精品视频| 99久久综合精品| 亚洲网友自拍偷拍| 日韩一区二区三区视频| 精品亚洲国内自在自线福利| 国产亚洲一二三区| www.在线欧美| 亚洲一区二区三区视频在线播放| 4438x亚洲最大成人网| 狠狠狠色丁香婷婷综合激情| 国产女人18毛片水真多成人如厕| 99精品国产热久久91蜜凸| 一区二区三区不卡视频| 欧美一级高清大全免费观看| 久久成人久久鬼色| 国产精品全国免费观看高清 | 亚洲超丰满肉感bbw| 911国产精品| 国产美女视频91| 亚洲视频中文字幕| 91精品国产美女浴室洗澡无遮挡| 激情亚洲综合在线| 中文字幕欧美一区| 7777精品伊人久久久大香线蕉完整版 | 亚洲一区二三区| 日韩免费观看2025年上映的电影 | 亚洲国产精品二十页| 日本精品视频一区二区| 免费人成在线不卡| 国产日韩av一区| 欧美喷潮久久久xxxxx| 国产精品自在欧美一区| 一区在线播放视频| 日韩一区二区三区电影在线观看| 国产精品18久久久久久久久久久久| 综合网在线视频| 日韩一区二区电影在线| 97久久精品人人做人人爽| 水野朝阳av一区二区三区| 中文乱码免费一区二区| 欧美日韩色综合| 懂色av一区二区三区蜜臀| 亚洲成人中文在线| 中文字幕的久久| 日韩欧美电影一二三| 99精品久久99久久久久| 久久91精品国产91久久小草| 一区二区视频在线| 久久久久9999亚洲精品| 欧美日韩国产影片| 成人深夜在线观看| 麻豆国产一区二区| 亚洲午夜久久久久中文字幕久| 欧美国产日韩精品免费观看| 欧美精选在线播放| 色婷婷久久综合| 懂色av一区二区夜夜嗨| 美洲天堂一区二卡三卡四卡视频| 亚洲色图19p| 久久蜜臀精品av| 69成人精品免费视频| 色综合一个色综合| 成人免费观看av| 久久国产婷婷国产香蕉| 无吗不卡中文字幕| 亚洲精品欧美激情| 欧美国产丝袜视频| 欧美电视剧免费全集观看| 欧洲一区二区三区免费视频| 成人中文字幕在线| 国产精品一区二区在线观看不卡| 日韩影院免费视频| 亚洲福利一二三区| 一区二区三区资源| 成人高清视频在线| 韩国一区二区视频| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲一区二区免费视频| 亚洲三级在线免费| 国产精品久久福利| 国产女人18水真多18精品一级做| 久久综合色8888| 精品久久久久久久久久久久包黑料| 欧美日韩国产在线观看| 欧美日韩精品一二三区| 欧美这里有精品| 色婷婷国产精品久久包臀| 97久久精品人人澡人人爽| 99久久精品99国产精品| 成人黄色a**站在线观看| 国产精品123区| 成人夜色视频网站在线观看| 国产99久久久久久免费看农村| 久久国产三级精品| 韩国精品免费视频| 国产麻豆精品久久一二三| 国内精品伊人久久久久av影院| 久久99精品国产.久久久久久| 日韩av成人高清| 青青草原综合久久大伊人精品| 毛片不卡一区二区| 国内精品视频666| 国产一区二区按摩在线观看| 国产精品综合一区二区三区| 国产精品一区二区不卡| 成人免费视频网站在线观看| 成人综合在线网站| 91首页免费视频| 欧美日韩情趣电影| 日韩精品一区在线| 国产偷国产偷亚洲高清人白洁| 亚洲国产精品二十页| 亚洲精品免费在线观看|