(root)/mainwindow.h @ 43 - Rev 1
Rev 3 |
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 "bike.h"
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void reset();
protected:
void changeEvent(QEvent *e);
void paintEvent(QPaintEvent *e);
private:
Ui::MainWindow *ui;
QTcpServer *server;
QList<Bike *> bikes;
QTimer *timer;
int id;
private slots:
void newConnection();
void checkClients();
};
#endif // MAINWINDOW_H