Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00022 
00023 #ifndef ULS_UDP_LOGGING_SERVER_H_INCLUDED
00024 #define ULS_UDP_LOGGING_SERVER_H_INCLUDED
00025 
00026 #include <QtCore/QObject>
00027 #include <QtNetwork/QUdpSocket>
00028 #include <QtSql/QSqlDatabase>
00029 
00030 class UdpLoggingServer : QObject
00031 {
00032   Q_OBJECT
00033 
00034   public:
00035   UdpLoggingServer(const QString& db_filename);
00036   virtual ~UdpLoggingServer();
00037 
00038 private slots:
00039   void processPendingDatagrams();
00040 
00041 private:
00042   QUdpSocket *m_udp_socket;
00043   QSqlDatabase m_db;
00044 };
00045 
00046 #endif