資源簡介
基于Linux的Qt的QQ,有私聊,群聊的功能。
代碼片段和文件信息
**QT?網絡通訊軟件客戶端源碼?1
**xclient.cpp-------------------------------------------------------------------
#include?“xclient1.h“
Client::Client(?QString?xuseridQString?snameQString?pica?)
{
?this->xuserid?=?xuserid;
?userid?=?xuserid.toInt();
?this->sname?=?sname;
?this->pica?=?pica;
?setupUi(this);
?
?firmlist.clear();
?idlist.clear();
?chatlsit.clear();
?teamchatlsit.clear();
?firmteamlist.clear();
?teamidlist.clear();
?
?search?=new?search_form(xuserid);
?this->setWindowtitle(xuserid);
?//網絡服務器設定
?tcpport?=?60001;
?udpport?=?45454;
?
?address?=?“192.168.2.231“;
?clientsocket?=?new?QTcpSocket(this);
?udpsocket?=?new?QUdpSocket(this);
?serversocket?=?new?QTcpSocket(this);
?udpsocket->bind(QHostAddress::Any?udpport);
?server?=?new?QTcpServer(this);
?server->list
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????10693??2009-12-19?11:14??QQ(私聊,群聊)\xchats.h
?????文件??????24176??2009-12-19?11:46??QQ(私聊,群聊)\xclient1.cpp
?????文件???????3136??2009-12-19?12:01??QQ(私聊,群聊)\xclient1.h
?????文件???????6720??2009-12-19?11:22??QQ(私聊,群聊)\xteam.h
?????目錄??????????0??2009-12-20?15:44??QQ(私聊,群聊)
-----------?---------??----------?-----??----
????????????????44725????????????????????5
- 上一篇:用安卓手機實現視頻監控 源代碼
- 下一篇:uService1.01.028
評論
共有 條評論