Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (34 sloc) 0.968 kb
#ifndef QTMPUSHDEVICE_H
#define QTMPUSHDEVICE_H
#include <QDebug>
#include <QByteArray>
#include <QDateTime>
#include <QTimer>
#include "pushburtongenericdevice.h"
#include "npushimutick.h"
#include <QStringList>
#include <QBluetoothSocket>
#include <QBluetoothServiceInfo>
using namespace QtMobility;
class QtmPushDevice : public PushBurtonGenericDevice
{
Q_OBJECT
public:
explicit QtmPushDevice(QBluetoothServiceInfo info, QObject *parent = 0);
~QtmPushDevice();
virtual QString getName();
virtual bool is_online();
virtual void disconnect_from_backend();
virtual bool subscribesToAny();
virtual bool subscribesTo(PushBurtonGenericDevice* deviceType);
public slots:
void socketConnected();
void socketDisconnected();
void socketError(QBluetoothSocket::SocketError);
void readSocket();
protected:
void timerEvent(QTimerEvent *);
private:
QBluetoothSocket * socket;
};
#endif // QTMPUSHDEVICE_H
Jump to Line
Something went wrong with that request. Please try again.