(root)/mainwindow.h @ 10 - Rev 44
Rev 40 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QApplication>
#include <QPaintEvent>
#include <QTcpServer>
#include <QList>
#include <QTimer>
#include <QGLWidget>
#include "bike.h"
#include "speccy.h"
class MainWindow : public QGLWidget
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void reset();
protected:
void paintEvent(QPaintEvent *e);
private:
QTcpServer *server;
QTcpServer *respec;
QList<Bike *> bikes;
QList<Speccy *> specs;
QTimer *timer;
int id;
QTimer *suddenDeathTimer;
QTimer *timer2;
bool suddenDeath;
private slots:
void newConnection();
void newSpec();
void checkClients();
void chat(QString name, QString message);
void activateSuddenDeath();
void clientTimeOut();
};
#endif // MAINWINDOW_H