Files
Spherebot-Host-GUI/Spherebot_UI/spherebot.h
Alex e9e56b457f plugin load bugfix
fixed exe and some general cleanup
2014-04-15 13:10:01 +02:00

32 lines
621 B
C++

#ifndef SPHEREBOT_H
#define SPHEREBOT_H
#include <QObject>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QString>
#include <QtGui>
#include <iostream>
#include <QtCore/QCoreApplication>
class spherebot : public QObject
{
Q_OBJECT
public:
QSerialPort *port;
bool isConnected();
bool send(QString cmd);
explicit spherebot(QObject *parent = 0);
signals:
void dataSent(QString data);
public slots:
bool connectWithBot(QString portName);
bool connectWithBot();
bool disconnectWithBot();
private:
bool port_connected;
};
#endif // SPHEREBOT_H