www.pudn.com > receive.rar > dialog.h, change:2008-04-22,size:1476b


#ifndef DIALOG_H 
#define DIALOG_H 
 
#include  
#include  
#include  
#include  
#include  
#include  
#include  
  
 class QDialogButtonBox; 
 class QLabel; 
 class QLineEdit; 
 class QPushButton; 
 class QTcpSocket; 
 class QTextEdit; 
 class QSqlDatabase; 
 class QSqlQuery; 
 class QTime; 
 class QDate; 
  
class Dialog : public QDialog 
{ 
    Q_OBJECT 
 
public: 
     Dialog(QWidget *parent = 0); 
     void getip(); 
     void writeData(QByteArray); 
  
private: 
      
     //图形界面 
     QLabel *serverLabel; 
     QLabel *ipInfoLabel; 
     QLabel *sqlipLabel; 
     QLabel *databaseLabel; 
     QLabel *sqluserLabel; 
     QLabel *sqlpassLabel; 
     QLabel *startdateLabel; 
     QLabel *starttimeLabel; 
      
     QComboBox *ComboBox; 
     QLineEdit *ipInfoLineEdit; 
     QLineEdit *sqlipLineEdit; 
     QLineEdit *databaseLineEdit; 
     QLineEdit *sqluserLineEdit; 
     QLineEdit *sqlpassLineEdit; 
     QLineEdit *startdateLineEdit; 
     QLineEdit *starttimeLineEdit; 
      
     QPushButton *beginButton; 
     QPushButton *quitButton; 
     QDialogButtonBox *buttonBox; 
     QTextEdit display; 
      
     //存储服务器信息 
     int port; 
     QString host; 
     QSqlDatabase db; 
     QTcpSocket *tcpSocket; 
  
public slots: 
      
     //从套接字读数据,并存于数据库中 
     void readFortune(); 
      
     //创建数据库连接,开始定时 
     void begin(); 
 
}; 
 
#endif