Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5139110424 for ; Mon, 22 Jul 2013 22:18:35 +0000 (UTC) Received: (qmail 29214 invoked by uid 500); 22 Jul 2013 22:18:35 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 29166 invoked by uid 500); 22 Jul 2013 22:18:35 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 29159 invoked by uid 99); 22 Jul 2013 22:18:35 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 22:18:35 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 029708B10C8; Mon, 22 Jul 2013 22:18:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: maxw@apache.org To: commits@cordova.apache.org Message-Id: <0e18dd617ece4625b184922827aff33e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ios commit: [CB-4281] Moving echo to a plugin in MobileSpec Date: Mon, 22 Jul 2013 22:18:34 +0000 (UTC) Updated Branches: refs/heads/master d41192740 -> 52d42b73b [CB-4281] Moving echo to a plugin in MobileSpec Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/52d42b73 Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/52d42b73 Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/52d42b73 Branch: refs/heads/master Commit: 52d42b73b08a64c1aeda212a7d9554a50da43de6 Parents: d411927 Author: David Kemp Authored: Wed Jul 17 13:28:36 2013 -0400 Committer: Max Woghiren Committed: Mon Jul 22 18:18:14 2013 -0400 ---------------------------------------------------------------------- CordovaLib/Classes/CDVEcho.h | 23 --------------- CordovaLib/Classes/CDVEcho.m | 61 --------------------------------------- 2 files changed, 84 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/52d42b73/CordovaLib/Classes/CDVEcho.h ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVEcho.h b/CordovaLib/Classes/CDVEcho.h deleted file mode 100644 index 76a4a96..0000000 --- a/CordovaLib/Classes/CDVEcho.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - */ - -#import "CDVPlugin.h" - -@interface CDVEcho : CDVPlugin -@end http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/52d42b73/CordovaLib/Classes/CDVEcho.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVEcho.m b/CordovaLib/Classes/CDVEcho.m deleted file mode 100644 index c74990d..0000000 --- a/CordovaLib/Classes/CDVEcho.m +++ /dev/null @@ -1,61 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - */ - -#import "CDVEcho.h" -#import "CDV.h" - -@implementation CDVEcho - -- (void)echo:(CDVInvokedUrlCommand*)command -{ - id message = [command.arguments objectAtIndex:0]; - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:message]; - - [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; -} - -- (void)echoAsyncHelper:(NSArray*)args -{ - [self.commandDelegate sendPluginResult:[args objectAtIndex:0] callbackId:[args objectAtIndex:1]]; -} - -- (void)echoAsync:(CDVInvokedUrlCommand*)command -{ - id message = [command.arguments objectAtIndex:0]; - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:message]; - - [self performSelector:@selector(echoAsyncHelper:) withObject:[NSArray arrayWithObjects:pluginResult, command.callbackId, nil] afterDelay:0]; -} - -- (void)echoArrayBuffer:(CDVInvokedUrlCommand*)command -{ - id message = [command.arguments objectAtIndex:0]; - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArrayBuffer:message]; - - [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; -} - -- (void)echoMultiPart:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsMultipart:command.arguments]; - - [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; -} - -@end