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

📄 chatform.h~

📁 linux下的socket通信和c++
💻 H~
字号:
/****************************************************************************** Form interface generated from reading ui file 'chatform.ui'**** Created by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#ifndef CHATFORM_H#define CHATFORM_H#include "Socket.h"#include <qvariant.h>#include <qdialog.h>#include <qthread.h>#include <qmessagebox.h> #include <unistd.h>#include <fcntl.h>#include <iostream>#include <cstring>using namespace std;class QVBoxLayout;class QHBoxLayout;class QGridLayout;class QSpacerItem;class QLabel;class QPushButton;class QTextEdit;class QComboBox;class Socket;class chatForm : public QDialog,public QThread{    Q_OBJECTpublic:    chatForm( Socket &s,QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );        void UpdateUserList();    virtual void run();    bool Show();     bool IsQuited();       ~chatForm();    QLabel* tlable;    QPushButton* sendBtn;    QPushButton* closeBtn;    QTextEdit* chatTxt;    QTextEdit* editTxt;    QComboBox* userlist;        bool isChat;    bool isToQuit;    bool isQuited;    Socket sock;protected:	 struct sockaddr_in myaddr;	 int sd;protected slots:    virtual void languageChange();    virtual void GetUserList();    virtual void Chat();    virtual void ToClose();    virtual void ChatTo();signals:		void toGetUserList();		void IsQuit();		void toChat();};#endif // CHATFORM_H

⌨️ 快捷键说明

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