(root)/mainwindow.h - Rev 19
Rev 3 |
Rev 32 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPaintEvent>
#include <QTcpServer>
#include <QList>
#include <QTimer>
#include <QGLWidget>
#include "bike.h"
class MainWindow : public QGLWidget
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void reset();
protected:
void paintEvent(QPaintEvent *e);
private:
QTcpServer *server;
QList<Bike *> bikes;
QTimer *timer;
int id;
private slots:
void newConnection();
void checkClients();
};
#endif // MAINWINDOW_H