[Messaging] Deprecated whole module
[platform/core/api/webapi-plugins.git] / src / messaging / messaging_api.js
index f3e39e9..5f796de 100755 (executable)
@@ -98,6 +98,11 @@ var MessageServiceTag = {
 };
 
 function Message(type, data) {
+    privUtils_.deprecationWarn(
+        'Message() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     validator_.isConstructorCall(this, Message);
 
     if (Object.values(MessageServiceTag).indexOf(type) == -1) {
@@ -504,6 +509,11 @@ function MessageBody(data) {
 var messageAttachmentsLoaded = {};
 
 function MessageAttachment(first, second) {
+    privUtils_.deprecationWarn(
+        'MessageAttachment() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     validator_.isConstructorCall(this, MessageAttachment);
     if (!this instanceof MessageAttachment) {
         return new MessageAttachment(data);
@@ -569,6 +579,11 @@ function MessageAttachment(first, second) {
 function Messaging() {}
 
 Messaging.prototype.getMessageServices = function() {
+    privUtils_.deprecationWarn(
+        'getMessageServices() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'messageServiceType',
@@ -612,6 +627,11 @@ function MessageService(data) {
 }
 
 MessageService.prototype.sendMessage = function() {
+    privUtils_.deprecationWarn(
+        'sendMessage() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
         {
@@ -659,6 +679,11 @@ MessageService.prototype.sendMessage = function() {
 };
 
 MessageService.prototype.loadMessageBody = function() {
+    privUtils_.deprecationWarn(
+        'loadMessageBody() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
         { name: 'successCallback', type: types_.FUNCTION },
@@ -697,6 +722,11 @@ MessageService.prototype.loadMessageBody = function() {
     }
 };
 MessageService.prototype.loadMessageAttachment = function() {
+    privUtils_.deprecationWarn(
+        'loadMessageAttachment() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'attachment', type: types_.PLATFORM_OBJECT, values: MessageAttachment },
         { name: 'successCallback', type: types_.FUNCTION },
@@ -737,6 +767,11 @@ MessageService.prototype.loadMessageAttachment = function() {
 };
 
 MessageService.prototype.sync = function() {
+    privUtils_.deprecationWarn(
+        'sync() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'successCallback',
@@ -773,6 +808,11 @@ MessageService.prototype.sync = function() {
 };
 
 MessageService.prototype.syncFolder = function() {
+    privUtils_.deprecationWarn(
+        'syncFolder() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'folder', type: types_.PLATFORM_OBJECT, values: MessageFolder },
         {
@@ -811,6 +851,11 @@ MessageService.prototype.syncFolder = function() {
 };
 
 MessageService.prototype.stopSync = function() {
+    privUtils_.deprecationWarn(
+        'stopSync() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [{ name: 'opId', type: types_.LONG }]);
 
     var self = this;
@@ -829,6 +874,11 @@ function MessageStorage(service) {
 }
 
 MessageStorage.prototype.addDraftMessage = function() {
+    privUtils_.deprecationWarn(
+        'addDraftMessage() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
         {
@@ -880,6 +930,11 @@ MessageStorage.prototype.addDraftMessage = function() {
 };
 
 MessageStorage.prototype.findMessages = function() {
+    privUtils_.deprecationWarn(
+        'findMessages() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'filter',
@@ -932,6 +987,11 @@ MessageStorage.prototype.findMessages = function() {
 };
 
 MessageStorage.prototype.removeMessages = function() {
+    privUtils_.deprecationWarn(
+        'removeMessages() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'messages', type: types_.ARRAY, values: Message },
         {
@@ -970,6 +1030,11 @@ MessageStorage.prototype.removeMessages = function() {
 };
 
 MessageStorage.prototype.updateMessages = function() {
+    privUtils_.deprecationWarn(
+        'updateMessages() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'messages', type: types_.ARRAY, values: Message },
         {
@@ -1031,6 +1096,11 @@ MessageStorage.prototype.updateMessages = function() {
 };
 
 MessageStorage.prototype.findConversations = function() {
+    privUtils_.deprecationWarn(
+        'findConversations() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'filter',
@@ -1082,6 +1152,11 @@ MessageStorage.prototype.findConversations = function() {
 };
 
 MessageStorage.prototype.removeConversations = function() {
+    privUtils_.deprecationWarn(
+        'removeConversations() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'conversations', type: types_.ARRAY },
         {
@@ -1120,6 +1195,11 @@ MessageStorage.prototype.removeConversations = function() {
 };
 
 MessageStorage.prototype.findFolders = function() {
+    privUtils_.deprecationWarn(
+        'findFolders() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'filter',
@@ -1212,6 +1292,11 @@ native.addListener(
 );
 
 MessageStorage.prototype.addMessagesChangeListener = function() {
+    privUtils_.deprecationWarn(
+        'addMessagesChangeListener() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'messagesChangeCallback',
@@ -1248,6 +1333,11 @@ MessageStorage.prototype.addMessagesChangeListener = function() {
 };
 
 MessageStorage.prototype.addConversationsChangeListener = function() {
+    privUtils_.deprecationWarn(
+        'addConversationsChangeListener() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'conversationsChangeCallback',
@@ -1287,6 +1377,11 @@ MessageStorage.prototype.addConversationsChangeListener = function() {
 };
 
 MessageStorage.prototype.addFoldersChangeListener = function() {
+    privUtils_.deprecationWarn(
+        'addFoldersChangeListener() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         {
             name: 'foldersChangeCallback',
@@ -1323,6 +1418,11 @@ MessageStorage.prototype.addFoldersChangeListener = function() {
 };
 
 MessageStorage.prototype.removeChangeListener = function() {
+    privUtils_.deprecationWarn(
+        'removeChangeListener() is deprecated and will be ' +
+        'removed from next release without any alternatives. ',
+        '8.0'
+    );
     var args = validator_.validateArgs(arguments, [
         { name: 'watchId', type: types_.LONG }
     ]);