theshell/bthandsfree.h
2016-12-17 23:58:08 +11:00

36 lines
678 B
C++

#ifndef BTHANDSFREE_H
#define BTHANDSFREE_H
#include <QWidget>
#include <QBoxLayout>
#include <QLine>
#include <QFrame>
#include <QLabel>
#include <QPushButton>
#include <QTimer>
#include <QApplication>
#include <QDBusInterface>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
class BTHandsfree : public QWidget
{
Q_OBJECT
public:
explicit BTHandsfree(QWidget *parent = 0);
signals:
public slots:
void detectDevices();
private:
QBoxLayout* layout;
QLabel* infoLabel;
QPushButton* hangupButton;
QList<QDBusInterface*> interfaces;
QDBusInterface* hangUpButtonInterface;
QStringList knownDevices;
};
#endif // BTHANDSFREE_H