},
period: {
get: function() {
+ if(_warningLogs.enableLog){
+ privUtils_.warn('Since Tizen 4.0 constructor AlarmAbsolute(Date date, long period) ' +
+ 'is deprecated, thus period attribute should not be used.');
+ }
return m_period;
},
set: function(v) {
+ if(_warningLogs.enableLog){
+ privUtils_.warn('Since Tizen 4.0 constructor AlarmAbsolute(Date date, long period) ' +
+ 'is deprecated, thus period attribute should not be used.');
+ }
+
if (_edit.canEdit && v) {
m_period = Converter.toLong(v.period);
}
{name: 'options', type : types_.DICTIONARY, optional : true, nullable : true}
]);
+ if (HumanActivityType.WRIST_UP === args.type) {
+ utils_.warn('DEPRECATION WARNING: HumanActivityType.WRIST_UP is deprecated since Tizen 4.0. '
+ + 'Use GestureType and addGestureRecognitionListener to monitor WRIST_UP gesture');
+ }
+
var listenerId = 'HumanActivityMonitor_' + args.type;
var optionsAttributes = ["callbackInterval", "sampleInterval"], options = args.options || {};
{name: 'type', type: types_.ENUM, values: Object.keys(HumanActivityType)}
]);
+ if (HumanActivityType.WRIST_UP === args.type) {
+ utils_.warn('DEPRECATION WARNING: HumanActivityType.WRIST_UP is deprecated since Tizen 4.0. '
+ + 'Use GestureType and addGestureRecognitionListener to monitor WRIST_UP gesture');
+ }
+
if (HumanActivityType.PEDOMETER === args.type) {
stopListener('HumanActivityMonitor_PEDOMETER',
'HumanActivityMonitorManager_stop',
CHECK_PRIVILEGE_ACCESS(kPrivilegeLocation, &out);
}
+ if ("WRIST_UP" == type) {
+ LoggerW(
+ "DEPRECATION WARNING: HumanactivityType.WRIST_UP is deprecated since Tizen 4.0. "
+ "Use GestureType and addGestureRecognitionListener to monitor WRIST_UP gesture");
+ }
+
PlatformResult result = Init();
if (!result) {
LogAndReportError(result, &out, ("Failed: Init()"));
CHECK_PRIVILEGE_ACCESS(kPrivilegeLocation, &out);
}
+ if ("WRIST_UP" == type) {
+ LoggerW(
+ "DEPRECATION WARNING: HumanactivityType.WRIST_UP is deprecated since Tizen 4.0. "
+ "Use GestureType and addGestureRecognitionListener to monitor WRIST_UP gesture");
+ }
+
PlatformResult result = Init();
if (!result) {
LogAndReportError(result, &out, ("Failed: Init()"));
{name: 'notification', type: types_.PLATFORM_OBJECT, values: Notification}
]);
+ if (args.notification instanceof tizen.StatusNotification) {
+ utils_.warn('DEPRECATION WARNING: StatusNotification is deprecated since Tizen 4.0. Use UserNotification instead.');
+ }
+
var data = {
//add marker for UserNotification implementation
newImpl: (args.notification instanceof tizen.UserNotification),
throw new WebAPIException(WebAPIException.UNKNOWN_ERR);
}
+ if (args.notification instanceof tizen.StatusNotification) {
+ utils_.warn('DEPRECATION WARNING: StatusNotification is deprecated since Tizen 4.0. Use UserNotification instead.');
+ }
+
var data = {
//add marker for UserNotification implementation
newImpl: (args.notification instanceof tizen.UserNotification),
{name: 'id', type: types_.STRING}
]);
+ utils_.warn('DEPRECATION WARNING: get() is deprecated since Tizen 4.0. Use getNotification() instead.');
+
if (!arguments.length) {
throw new WebAPIException(WebAPIException.NOT_FOUND_ERR);
}
};
NotificationManager.prototype.getAll = function() {
+ utils_.warn('DEPRECATION WARNING: getAll() is deprecated since Tizen 4.0. Use getAllNotifications() instead.');
+
var result = native_.callSync('NotificationManager_getAll', {});
if (native_.isFailure(result)) {
NotificationInitDict.call(this, notificationInitDict);
Notification.call(this, notificationInitDict);
+ utils_.warn('DEPRECATION WARNING: StatusNotification is deprecated since Tizen 4.0. Use UserNotification instead.');
+
var _statusType = (Object.keys(StatusNotificationType)).indexOf(statusType) >= 0
? statusType : StatusNotificationType.SIMPLE;
LoggerD("New implementation");
impl = std::bind(&NotificationManager::PostUserNoti, manager_, _1, _2);
} else {
- LoggerW("Deprecated object used");
+ LoggerW(
+ "DEPRECATION WARNING: StatusNotification is deprecated since Tizen 4.0. Use "
+ "UserNotification instead.");
impl = std::bind(&NotificationManager::Post, manager_, _1, _2);
}
LoggerD("New implementation");
impl = std::bind(&NotificationManager::UpdateUserNoti, manager_, _1);
} else {
- LoggerW("Deprecated object used");
+ LoggerW(
+ "DEPRECATION WARNING: StatusNotification is deprecated since Tizen 4.0. Use "
+ "UserNotification instead.");
impl = std::bind(&NotificationManager::Update, manager_, _1);
}
void NotificationInstance::NotificationManagerGet(const picojson::value& args,
picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: get() is deprecated since Tizen 4.0. Use getNotifications() instead.");
+
picojson::value val{picojson::object{}};
PlatformResult status =
void NotificationInstance::NotificationManagerGetAll(const picojson::value& args,
picojson::object& out) {
ScopeLogger();
+ LoggerW(
+ "DEPRECATION WARNING: getAll() is deprecated since Tizen 4.0. Use getAllNotifications() "
+ "instead.");
+
picojson::value val{picojson::array{}};
PlatformResult status = manager_->GetAll(