Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

obexclientwindow.h Example File
obex/simpleobexdemo/obexclientwindow.h

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #ifndef OBEXCLIENTWINDOW_H
    #define OBEXCLIENTWINDOW_H

    #include <QMainWindow>

    class QObexClientSession;
    class QTcpSocket;
    class QTextEdit;
    class QHostAddress;

    class ObexClientWindow : public QMainWindow
    {
        Q_OBJECT
    public:
        ObexClientWindow(const QHostAddress &serverAddress,
                         quint16 serverPort,
                         QWidget *parent = 0,
                         Qt::WFlags f = 0);

    private slots:
        void socketConnected();
        void buttonClicked();
        void socketReadyRead();

    private:
        QTcpSocket *m_socket;
        QObexClientSession *m_obexClient;
        QTextEdit *m_textEdit;

        void setupUi();
    };

    #endif


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3