sender.h

Go to the documentation of this file.
00001 #ifndef SENDER_H
00002 #define SENDER_H
00003 
00004 #include <QWidget>
00005 #include <QtNetwork>
00006 #include <QUdpSocket>
00007 #include <QUrl>
00008 #include <QAbstractSocket>
00009 
00010 
00011 
00012 /// UDP Sender (client)
00013 class Sender : public QWidget
00014 {
00015     Q_OBJECT
00016 
00017 private:
00018     QUdpSocket *udpSocket;
00019 
00020 public:
00021     Sender(QWidget *parent = 0);
00022     bool isConnected();
00023 
00024 signals:
00025     void connectionOpen();
00026     void connectionClose();
00027     void received(QString line);
00028 
00029 public slots:
00030     void connectUrl(QUrl url);
00031     void sendText(QString text);
00032     void disconnect();
00033 
00034 private slots:
00035     void udp_connected();
00036     void udp_disconnected();
00037     void readPending();
00038     void udp_stateChanged( QAbstractSocket::SocketState state );
00039 };
00040 
00041 #endif
00042 

Generated on Sun Oct 28 22:51:29 2007 for BBoB by  doxygen 1.5.3