if(agent) agent->replyRequestPidCode(pidCode);
}
+void NearbyDevicesModel::setAdapterProperty(QString name, QVariant value)
+{
+ if(adapter) adapter->setProperty(name.toAscii().data(),value);
+}
+
void NearbyDevicesModel::deviceCreated(QString hwaddy, QVariantMap properties)
{
bool found = false;
SIGNAL(DeviceDisappeared(QString)),
this,
SLOT(deviceRemoved(QString)));
+ connect(adapter,
+ SIGNAL(PropertyChanged(QString,QDBusVariant)),
+ this,
+ SLOT(adapterPropertiesChangedSlot(QString,QDBusVariant)));
}
void NearbyDevicesModel::adapterRemoved(QDBusObjectPath)
return;
}
}
+
+void NearbyDevicesModel::adapterPropertiesChangedSlot(QString n,QDBusVariant v)
+{
+ adapterPropertiesChanged(n,v.variant());
+}
void replyPasskey(uint passkey);
void replyRequestPidCode(QString pidCode);
+ void setAdapterProperty(QString name, QVariant value);
+
private slots:
void adapterAdded(QDBusObjectPath);
void adapterRemoved(QDBusObjectPath);
void deviceCreated(QString hwaddy, QVariantMap properties);
void deviceRemoved(QString hwaddy);
+ void adapterPropertiesChangedSlot(QString n,QDBusVariant v);
+
signals:
void requestConfirmation(QString device, uint code);
void requestPasskey(QString device);
void nearbyDeviceFound(int index);
void nearbyDeviceRemoved(int index);
+ void adapterPropertiesChanged(QString name, QVariant value);
+
private:
QList<QString> devicepathlist;
QMap<QString,QString> deviceAliasMap;