From da1ce679959ce09ba9d9a077e84f1da4db7a3826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Obr=C3=A1til?= Date: Sat, 11 Jul 2015 10:32:29 +0200 Subject: [PATCH] added bsd licence to code --- socket.js | 18 ++++++++++++++++++ .../blocshop/socketsforcordova/Consumer.java | 17 +++++++++++++++++ .../blocshop/socketsforcordova/Logging.java | 16 ++++++++++++++++ .../socketsforcordova/SocketAdapter.java | 17 +++++++++++++++++ .../socketsforcordova/SocketAdapterImpl.java | 17 +++++++++++++++++ .../SocketAdapterOptions.java | 17 +++++++++++++++++ .../socketsforcordova/SocketPlugin.java | 17 +++++++++++++++++ .../SocketsForCordova/Classes/SocketAdapter.h | 17 +++++++++++++++++ .../SocketsForCordova/Classes/SocketAdapter.m | 17 +++++++++++++++++ .../SocketsForCordova/Classes/SocketPlugin.h | 17 +++++++++++++++++ .../SocketsForCordova/Classes/SocketPlugin.m | 17 +++++++++++++++++ src/wp8/src/SocketAdapter.cs | 19 ++++++++++++++++++- src/wp8/src/SocketAdapterOptions.cs | 19 ++++++++++++++++++- src/wp8/src/SocketEvent.cs | 19 ++++++++++++++++++- src/wp8/src/SocketExtensions.cs | 19 ++++++++++++++++++- src/wp8/src/SocketPlugin.cs | 19 ++++++++++++++++++- src/wp8/src/SocketStorage.cs | 19 ++++++++++++++++++- 17 files changed, 295 insertions(+), 6 deletions(-) diff --git a/socket.js b/socket.js index bdf7004..c5215c9 100644 --- a/socket.js +++ b/socket.js @@ -1,3 +1,21 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + + var exec = require('cordova/exec'); var SOCKET_EVENT = "SOCKET_EVENT"; diff --git a/src/android/src/cz/blocshop/socketsforcordova/Consumer.java b/src/android/src/cz/blocshop/socketsforcordova/Consumer.java index ee38fa4..3257831 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/Consumer.java +++ b/src/android/src/cz/blocshop/socketsforcordova/Consumer.java @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + package cz.blocshop.socketsforcordova; public interface Consumer { diff --git a/src/android/src/cz/blocshop/socketsforcordova/Logging.java b/src/android/src/cz/blocshop/socketsforcordova/Logging.java index f807fe1..b55f948 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/Logging.java +++ b/src/android/src/cz/blocshop/socketsforcordova/Logging.java @@ -1,3 +1,19 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ package cz.blocshop.socketsforcordova; import java.util.logging.Level; diff --git a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapter.java b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapter.java index 536a6db..122c5b8 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapter.java +++ b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapter.java @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + package cz.blocshop.socketsforcordova; import java.io.IOException; diff --git a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterImpl.java b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterImpl.java index f5d7389..6ff59fe 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterImpl.java +++ b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterImpl.java @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + package cz.blocshop.socketsforcordova; import java.io.IOException; diff --git a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterOptions.java b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterOptions.java index ec0d67f..ea43e23 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterOptions.java +++ b/src/android/src/cz/blocshop/socketsforcordova/SocketAdapterOptions.java @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + package cz.blocshop.socketsforcordova; public class SocketAdapterOptions { diff --git a/src/android/src/cz/blocshop/socketsforcordova/SocketPlugin.java b/src/android/src/cz/blocshop/socketsforcordova/SocketPlugin.java index f9b5cab..12bf2d9 100644 --- a/src/android/src/cz/blocshop/socketsforcordova/SocketPlugin.java +++ b/src/android/src/cz/blocshop/socketsforcordova/SocketPlugin.java @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + package cz.blocshop.socketsforcordova; import java.io.IOException; diff --git a/src/ios/SocketsForCordova/Classes/SocketAdapter.h b/src/ios/SocketsForCordova/Classes/SocketAdapter.h index 670e5de..860a11c 100644 --- a/src/ios/SocketsForCordova/Classes/SocketAdapter.h +++ b/src/ios/SocketsForCordova/Classes/SocketAdapter.h @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + #import @interface SocketAdapter : NSObject { diff --git a/src/ios/SocketsForCordova/Classes/SocketAdapter.m b/src/ios/SocketsForCordova/Classes/SocketAdapter.m index 7534ddc..ec13fce 100644 --- a/src/ios/SocketsForCordova/Classes/SocketAdapter.m +++ b/src/ios/SocketsForCordova/Classes/SocketAdapter.m @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + #include #include #include diff --git a/src/ios/SocketsForCordova/Classes/SocketPlugin.h b/src/ios/SocketsForCordova/Classes/SocketPlugin.h index 30bb03e..101ee7f 100644 --- a/src/ios/SocketsForCordova/Classes/SocketPlugin.h +++ b/src/ios/SocketsForCordova/Classes/SocketPlugin.h @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + #import @interface SocketPlugin : CDVPlugin { diff --git a/src/ios/SocketsForCordova/Classes/SocketPlugin.m b/src/ios/SocketsForCordova/Classes/SocketPlugin.m index 75edd69..53b4667 100644 --- a/src/ios/SocketsForCordova/Classes/SocketPlugin.m +++ b/src/ios/SocketsForCordova/Classes/SocketPlugin.m @@ -1,3 +1,20 @@ +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + #import "SocketPlugin.h" #import "SocketAdapter.h" #import diff --git a/src/wp8/src/SocketAdapter.cs b/src/wp8/src/SocketAdapter.cs index f71126e..e61e1a7 100644 --- a/src/wp8/src/SocketAdapter.cs +++ b/src/wp8/src/SocketAdapter.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Net; diff --git a/src/wp8/src/SocketAdapterOptions.cs b/src/wp8/src/SocketAdapterOptions.cs index dc09cee..3cc8e7c 100644 --- a/src/wp8/src/SocketAdapterOptions.cs +++ b/src/wp8/src/SocketAdapterOptions.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/src/wp8/src/SocketEvent.cs b/src/wp8/src/SocketEvent.cs index 75be9f1..bf228bf 100644 --- a/src/wp8/src/SocketEvent.cs +++ b/src/wp8/src/SocketEvent.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; diff --git a/src/wp8/src/SocketExtensions.cs b/src/wp8/src/SocketExtensions.cs index a8e2585..246438b 100644 --- a/src/wp8/src/SocketExtensions.cs +++ b/src/wp8/src/SocketExtensions.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; diff --git a/src/wp8/src/SocketPlugin.cs b/src/wp8/src/SocketPlugin.cs index d11895e..664c246 100644 --- a/src/wp8/src/SocketPlugin.cs +++ b/src/wp8/src/SocketPlugin.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; diff --git a/src/wp8/src/SocketStorage.cs b/src/wp8/src/SocketStorage.cs index 3d77e78..71195c3 100644 --- a/src/wp8/src/SocketStorage.cs +++ b/src/wp8/src/SocketStorage.cs @@ -1,4 +1,21 @@ -using System; +/** + * Copyright (c) 2015, Blocshop s.r.o. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the Blocshop s.r.o.. The name of the + * Blocshop s.r.o. may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Text;