History

expose discoverability changes to js

Stephen Birarda committed 11 years ago

Commit cd382ee1 parent 6d900d54 files · +34 −4Browse files

Showing the changes to interface/src/DiscoverabilityManager.cpp (1 of 4 files). Show all

Unified · Split

interface/src/DiscoverabilityManager.cpp+1−3
@@ -66,8 +66,6 @@ void DiscoverabilityManager::updateLocation() { · 65 unmodified lines
66 accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::PutOperation,66 accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::PutOperation,
67 JSONCallbackParameters(), QJsonDocument(rootObject).toJson());67 JSONCallbackParameters(), QJsonDocument(rootObject).toJson());
68 }68 }
69 } else {
70 qDebug() << "not updating discoverability since it is currently set to none!";
71 }69 }
72}70}
73 71
@@ -76,7 +74,7 @@ void DiscoverabilityManager::removeLocation() { · 2 unmodified lines
76 accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::DeleteOperation);74 accountManager.authenticatedRequest(API_USER_LOCATION_PATH, QNetworkAccessManager::DeleteOperation);
77}75}
78 76
79void DiscoverabilityManager::setDiscoverability(Discoverability::Mode discoverabilityMode) {77void DiscoverabilityManager::setDiscoverabilityMode(Discoverability::Mode discoverabilityMode) {
80 if (_mode.get() != discoverabilityMode) {78 if (_mode.get() != discoverabilityMode) {
81 79
82 // update the setting to the new value80 // update the setting to the new value