From 3fdcf45af49093fee99009fc6bba2052d2afb6a7 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Wed, 3 Jul 2002 06:19:39 +0000 Subject: [PATCH] New file containing #defines for various NSUserDefaults entries. Documents which entries we use, and their formats. git-svn-id: svn://10.0.0.236/trunk@124585 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/camino/CHUserDefaults.h | 54 +++++++++++++++++++ mozilla/camino/src/application/UserDefaults.h | 54 +++++++++++++++++++ mozilla/chimera/CHUserDefaults.h | 54 +++++++++++++++++++ .../chimera/src/application/UserDefaults.h | 54 +++++++++++++++++++ 4 files changed, 216 insertions(+) create mode 100644 mozilla/camino/CHUserDefaults.h create mode 100644 mozilla/camino/src/application/UserDefaults.h create mode 100644 mozilla/chimera/CHUserDefaults.h create mode 100644 mozilla/chimera/src/application/UserDefaults.h diff --git a/mozilla/camino/CHUserDefaults.h b/mozilla/camino/CHUserDefaults.h new file mode 100644 index 00000000000..639060bea18 --- /dev/null +++ b/mozilla/camino/CHUserDefaults.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * 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 mozilla.org code. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 2001, 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Simon Fraser + * + * 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 MPL, 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 MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + + +/* + This file contains a list of #defines for our user default entries. They + are collected here, rather than being scattered throughout the code, for + easier documentation. +*/ + + +#define USER_DEFAULTS_AUTOREGISTER_KEY @"autoRegister" /* Boolean */ +#define USER_DEFAULTS_URL_KEY @"url" /* String */ + +#define USER_DEFAULTS_HIDE_PERS_TOOLBAR_KEY @"Hide Personal Toolbar" /* Integer */ +#define USER_DEFAULTS_HOMEPAGE_KEY @"HomePage" /* String */ + + + diff --git a/mozilla/camino/src/application/UserDefaults.h b/mozilla/camino/src/application/UserDefaults.h new file mode 100644 index 00000000000..639060bea18 --- /dev/null +++ b/mozilla/camino/src/application/UserDefaults.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * 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 mozilla.org code. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 2001, 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Simon Fraser + * + * 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 MPL, 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 MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + + +/* + This file contains a list of #defines for our user default entries. They + are collected here, rather than being scattered throughout the code, for + easier documentation. +*/ + + +#define USER_DEFAULTS_AUTOREGISTER_KEY @"autoRegister" /* Boolean */ +#define USER_DEFAULTS_URL_KEY @"url" /* String */ + +#define USER_DEFAULTS_HIDE_PERS_TOOLBAR_KEY @"Hide Personal Toolbar" /* Integer */ +#define USER_DEFAULTS_HOMEPAGE_KEY @"HomePage" /* String */ + + + diff --git a/mozilla/chimera/CHUserDefaults.h b/mozilla/chimera/CHUserDefaults.h new file mode 100644 index 00000000000..639060bea18 --- /dev/null +++ b/mozilla/chimera/CHUserDefaults.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * 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 mozilla.org code. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 2001, 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Simon Fraser + * + * 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 MPL, 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 MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + + +/* + This file contains a list of #defines for our user default entries. They + are collected here, rather than being scattered throughout the code, for + easier documentation. +*/ + + +#define USER_DEFAULTS_AUTOREGISTER_KEY @"autoRegister" /* Boolean */ +#define USER_DEFAULTS_URL_KEY @"url" /* String */ + +#define USER_DEFAULTS_HIDE_PERS_TOOLBAR_KEY @"Hide Personal Toolbar" /* Integer */ +#define USER_DEFAULTS_HOMEPAGE_KEY @"HomePage" /* String */ + + + diff --git a/mozilla/chimera/src/application/UserDefaults.h b/mozilla/chimera/src/application/UserDefaults.h new file mode 100644 index 00000000000..639060bea18 --- /dev/null +++ b/mozilla/chimera/src/application/UserDefaults.h @@ -0,0 +1,54 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * 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 mozilla.org code. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 2001, 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Simon Fraser + * + * 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 MPL, 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 MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + + +/* + This file contains a list of #defines for our user default entries. They + are collected here, rather than being scattered throughout the code, for + easier documentation. +*/ + + +#define USER_DEFAULTS_AUTOREGISTER_KEY @"autoRegister" /* Boolean */ +#define USER_DEFAULTS_URL_KEY @"url" /* String */ + +#define USER_DEFAULTS_HIDE_PERS_TOOLBAR_KEY @"Hide Personal Toolbar" /* Integer */ +#define USER_DEFAULTS_HOMEPAGE_KEY @"HomePage" /* String */ + + +