void BluetoothAdapter::SetVisible(const picojson::value& data, picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: setVisible() is deprecated and will be removed from next release. "
+ "Let the user change the Bluetooth visibility through the Settings application instead.");
CHECK_BACKWARD_COMPABILITY_PRIVILEGE_ACCESS(Privilege::kBluetooth, Privilege::kBluetoothManager,
&out);
// This method is deprecated since Tizen 2.3 and will be removed in Tizen 3.0.
BluetoothAdapter.prototype.setVisible = function() {
privUtils_.log('Entered BluetoothAdapter.setVisible()');
+ privUtils_.warn('DEPRECATION WARNING: setVisible() is deprecated and will be removed from next release. '
+ + 'Let the user change the Bluetooth visibility through the Settings application instead.');
+
var args = AV.validateMethod(arguments, [
{
name : 'visible',
void PushInstance::registerService(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: registerService() is deprecated and will be removed from next release. "
+ "Use register() instead.");
CHECK_PRIVILEGE_ACCESS(kPrivilegePush, &out);
common::PlatformResult result = impl->registerService(args.get("callbackId").get<double>());
void PushInstance::unregisterService(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: unregisterService() is deprecated and will be removed from next "
+ "release. Use unregister() instead.");
CHECK_PRIVILEGE_ACCESS(kPrivilegePush, &out);
void PushInstance::connectService(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: connectService() is deprecated and will be removed from next release. "
+ "Use connect() instead.");
CHECK_PRIVILEGE_ACCESS(kPrivilegePush, &out);
void PushInstance::disconnectService(const picojson::value& args, picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: disconnectService() is deprecated and will be removed from next "
+ "release. Use disconnect() instead.");
CHECK_PRIVILEGE_ACCESS(kPrivilegePush, &out);
//class SystemInfoStorageUnit ////////////////////////////////////////////////////
function SystemInfoStorageUnit(data) {
+ var _isRemovable = data.isRemovable;
+
Object.defineProperties(this, {
type : {
value: data.type,
enumerable : true
},
isRemoveable : {
- value : data.isRemovable,
- writable : false,
- enumerable : true
+ enumerable : true,
+ get: function() {
+ privUtils_.warn('DEPRECATION WARNING: SystemInfoStorageUnit.isRemoveable is is deprecated and will be '
+ + 'removed from next release. Use SystemInfoStorageUnit.isRemovable instead.');
+ return _isRemovable;
+ },
+ set: function() {}
}
});
}