#include "S60QBluetooth.h" #include "S60QBluetoothPrivate.h" S60QBluetooth::S60QBluetooth(QObject *parent) : QObject(parent) { QT_TRAP_THROWING(d = S60QBluetoothPrivate::NewL(this)); } S60QBluetooth::~S60QBluetooth() { delete d; } void S60QBluetooth::on() { this->d->TurnBtOnL(); } bool S60QBluetooth::hasConnections() { this->d->HasConnections(); } bool S60QBluetooth::isSlave() { this->d->iIsSlave; } void S60QBluetooth::DiscoverDevices() { this->d->DiscoverDevicesL(); } void S60QBluetooth::DiscoverServices() { this->d->DiscoverServicesL(); } void S60QBluetooth::ConnectDevices() { this->d->ConnectDevicesL(); } void S60QBluetooth::DisconnectDevices() { this->d->DisconnectDevices(); } void S60QBluetooth::StartSlave() { this->d->StartSlaveL(); } void S60QBluetooth::ShowConnectedDevices() { this->d->ShowConnectedDevicesL(); } void S60QBluetooth::Send(QString message) { this->d->SendMessageL(message); //time = QTime::currentTime(); //this->d->SendMessageL(time.currentTime().toString("s:z")); }