Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

client.h Example File
network/fortuneclient/client.h

    #ifndef CLIENT_H
    #define CLIENT_H

    #include <QDialog>
    #include <QTcpSocket>

    class QLabel;
    class QLineEdit;
    class QPushButton;
    class QTcpSocket;

    class Client : public QDialog
    {
        Q_OBJECT

    public:
        Client(QWidget *parent = 0);

    private slots:
        void requestNewFortune();
        void readFortune();
        void displayError(QTcpSocket::SocketError socketError);
        void enableGetFortuneButton();

    private:
        QLabel *hostLabel;
        QLabel *portLabel;
        QLineEdit *hostLineEdit;
        QLineEdit *portLineEdit;
        QLabel *statusLabel;
        QPushButton *getFortuneButton;
        QPushButton *quitButton;

        QTcpSocket *tcpSocket;
        QString currentFortune;
        quint16 blockSize;
    };

    #endif


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2