Sample code changed to use MIT licence. b=82339

This commit is contained in:
locka%iol.ie 2002-06-19 14:48:07 +00:00
parent 97e9649045
commit 74dd7c3382
5 changed files with 121 additions and 95 deletions

View File

@ -1,40 +1,32 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK ***** /* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1 * Version: Mozilla-sample-code 1.0
* *
* The contents of this file are subject to the Netscape Public License * Copyright (c) 2002 Netscape Communications Corporation and
* Version 1.1 (the "License"); you may not use this file except in * other contributors
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
* *
* Software distributed under the License is distributed on an "AS IS" basis, * Permission is hereby granted, free of charge, to any person obtaining a
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * copy of this Mozilla sample software and associated documentation files
* for the specific language governing rights and limitations under the * (the "Software"), to deal in the Software without restriction, including
* License. * without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the
* following conditions:
* *
* The Original Code is mozilla.org code. * The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
* *
* The Initial Developer of the Original Code is * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* Netscape Communications Corporation. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* Portions created by the Initial Developer are Copyright (C) 1998 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* the Initial Developer. All Rights Reserved. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
* *
* Contributor(s): * Contributor(s):
* Adam Lock <adamlock@netscape.com> * Adam Lock <adamlock@netscape.com>
* *
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <stdio.h> #include <stdio.h>

View File

@ -1,23 +1,31 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: Mozilla-sample-code 1.0
# #
# The contents of this file are subject to the Netscape Public # Copyright (c) 2002 Netscape Communications Corporation and
# License Version 1.1 (the "License"); you may not use this file # other contributors
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
# #
# Software distributed under the License is distributed on an "AS # Permission is hereby granted, free of charge, to any person obtaining a
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # copy of this Mozilla sample software and associated documentation files
# implied. See the License for the specific language governing # (the "Software"), to deal in the Software without restriction, including
# rights and limitations under the License. # without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
# #
# The Original Code is Mozilla Communicator client code, # The above copyright notice and this permission notice shall be included
# released March 31, 1998. # in all copies or substantial portions of the Software.
# #
# The Initial Developer of the Original Code is Netscape Communications # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# Corporation. Portions created by Netscape are # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# Copyright (C) 1999 Netscape Communications Corporation. All # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# Rights Reserved. # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# #
# Contributor(s): # Contributor(s):
#
# ***** END LICENSE BLOCK *****
DEPTH=..\..\.. DEPTH=..\..\..

View File

@ -1,24 +1,32 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- /* ***** BEGIN LICENSE BLOCK *****
* Version: Mozilla-sample-code 1.0
*
* Copyright (c) 2002 Netscape Communications Corporation and
* other contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this Mozilla sample software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the
* following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
* *
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s): * Contributor(s):
* Conrad Carlen <ccarlen@netscape.com> * Conrad Carlen <ccarlen@netscape.com>
*/ *
* ***** END LICENSE BLOCK ***** */
// Local Includes // Local Includes
#include "stdafx.h" #include "stdafx.h"

View File

@ -1,24 +1,32 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- /* ***** BEGIN LICENSE BLOCK *****
* Version: Mozilla-sample-code 1.0
*
* Copyright (c) 2002 Netscape Communications Corporation and
* other contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this Mozilla sample software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject to the
* following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
* *
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s): * Contributor(s):
* Conrad Carlen <ccarlen@netscape.com> * Conrad Carlen <ccarlen@netscape.com>
*/ *
* ***** END LICENSE BLOCK ***** */
#ifndef __ProfileMgr__ #ifndef __ProfileMgr__
#define __ProfileMgr__ #define __ProfileMgr__

View File

@ -1,21 +1,31 @@
# # ***** BEGIN LICENSE BLOCK *****
# The contents of this file are subject to the Mozilla Public # Version: Mozilla-sample-code 1.0
# License Version 1.1 (the "License"); you may not use this file #
# except in compliance with the License. You may obtain a copy of # Copyright (c) 2002 Netscape Communications Corporation and
# the License at http://www.mozilla.org/MPL/ # other contributors
# #
# Software distributed under the License is distributed on an "AS # Permission is hereby granted, free of charge, to any person obtaining a
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # copy of this Mozilla sample software and associated documentation files
# implied. See the License for the specific language governing # (the "Software"), to deal in the Software without restriction, including
# rights and limitations under the License. # without limitation the rights to use, copy, modify, merge, publish,
# # distribute, sublicense, and/or sell copies of the Software, and to permit
# The Original Code is the Mozilla browser. # persons to whom the Software is furnished to do so, subject to the
# # following conditions:
# The Initial Developer of the Original Code is Netscape #
# Communications, Inc. Portions created by Netscape are # The above copyright notice and this permission notice shall be included
# Copyright (C) 2001, Mozilla. All Rights Reserved. # in all copies or substantial portions of the Software.
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# Contributor(s): # Contributor(s):
#
# ***** END LICENSE BLOCK *****
DEPTH = ../../.. DEPTH = ../../..
topsrcdir = @top_srcdir@ topsrcdir = @top_srcdir@