2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
2000-08-10 08:03:52 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The contents of this file are subject to the Netscape 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/NPL/
|
2000-08-10 08:03:52 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* 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.
|
2000-08-10 08:03:52 +04:00
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2000
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
2000-08-10 08:03:52 +04:00
|
|
|
*
|
2001-09-29 00:14:13 +04:00
|
|
|
* Contributor(s):
|
2000-08-10 08:03:52 +04:00
|
|
|
* Conrad Carlen conrad@ingress.com
|
2001-09-29 00:14:13 +04:00
|
|
|
*
|
|
|
|
* 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 ***** */
|
2002-10-07 22:52:34 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines the property names for directories available from
|
|
|
|
* nsIDirectoryService. These dirs are always available even if no
|
|
|
|
* nsIDirectoryServiceProviders have been registered with the service.
|
|
|
|
* Application level keys are defined in nsAppDirectoryServiceDefs.h.
|
|
|
|
*
|
|
|
|
* Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or
|
|
|
|
* subclass). Keys whose definition ends in "LIST" return an nsISimpleEnumerator
|
|
|
|
* which enumerates a list of file objects.
|
|
|
|
*
|
|
|
|
* Defines listed in this file are FROZEN. This list may grow.
|
|
|
|
*/
|
|
|
|
|
2000-08-10 08:03:52 +04:00
|
|
|
#ifndef nsDirectoryServiceDefs_h___
|
|
|
|
#define nsDirectoryServiceDefs_h___
|
2003-06-11 00:09:25 +04:00
|
|
|
|
|
|
|
/* General OS specific locations */
|
|
|
|
|
|
|
|
#define NS_OS_HOME_DIR "Home"
|
|
|
|
#define NS_OS_TEMP_DIR "TmpD"
|
|
|
|
#define NS_OS_CURRENT_WORKING_DIR "CurWorkD"
|
|
|
|
|
|
|
|
/* Property returns the directory in which the procces was started from.
|
|
|
|
* On Unix this will be the path in the MOZILLA_FIVE_HOME env var and if
|
|
|
|
* unset will be the current working directory.
|
|
|
|
*/
|
|
|
|
#define NS_OS_CURRENT_PROCESS_DIR "CurProcD"
|
2000-08-10 08:03:52 +04:00
|
|
|
|
2003-06-11 00:09:25 +04:00
|
|
|
/* This location is similar to NS_OS_CURRENT_PROCESS_DIR, however,
|
|
|
|
* NS_XPCOM_CURRENT_PROCESS_DIR can be overriden by passing a "bin
|
|
|
|
* directory" to NS_InitXPCOM2().
|
|
|
|
*/
|
2001-06-06 02:19:19 +04:00
|
|
|
#define NS_XPCOM_CURRENT_PROCESS_DIR "XCurProcD"
|
2003-06-11 00:09:25 +04:00
|
|
|
|
|
|
|
/* Property will return the location of the application components
|
|
|
|
* directory. By default, this directory will be contained in the
|
|
|
|
* NS_XPCOM_CURRENT_PROCESS_DIR.
|
|
|
|
*/
|
2000-08-10 08:03:52 +04:00
|
|
|
#define NS_XPCOM_COMPONENT_DIR "ComsD"
|
2003-06-11 00:09:25 +04:00
|
|
|
|
|
|
|
/* Property will return the location of the application components
|
|
|
|
* registry file.
|
|
|
|
*/
|
|
|
|
#define NS_XPCOM_COMPONENT_REGISTRY_FILE "ComRegF"
|
|
|
|
|
|
|
|
/* Property will return the location of the application XPTI
|
|
|
|
* registry file.
|
|
|
|
*/
|
|
|
|
#define NS_XPCOM_XPTI_REGISTRY_FILE "XptiRegF"
|
|
|
|
|
|
|
|
/* Property will return the location of the the XPCOM Shared Library.
|
|
|
|
*/
|
2002-09-27 17:07:01 +04:00
|
|
|
#define NS_XPCOM_LIBRARY_FILE "XpcomLib"
|
2000-08-10 08:03:52 +04:00
|
|
|
|
2003-06-11 00:09:25 +04:00
|
|
|
/* Property will return the current location of the the GRE directory.
|
|
|
|
* If no GRE is used, this propery will behave like
|
|
|
|
* NS_XPCOM_CURRENT_PROCESS_DIR.
|
|
|
|
*/
|
2002-09-14 02:18:43 +04:00
|
|
|
#define NS_GRE_DIR "GreD"
|
2003-06-11 00:09:25 +04:00
|
|
|
|
|
|
|
/* Property will return the current location of the the GRE component
|
|
|
|
* directory. If no GRE is used, this propery will behave like
|
|
|
|
* NS_XPCOM_COMPONENT_DIR.
|
|
|
|
*/
|
2002-09-14 02:18:43 +04:00
|
|
|
#define NS_GRE_COMPONENT_DIR "GreComsD"
|
2002-06-12 00:38:01 +04:00
|
|
|
|
2003-03-12 00:36:59 +03:00
|
|
|
|
2003-06-11 00:09:25 +04:00
|
|
|
/* Platform Specific Locations */
|
2000-08-10 08:03:52 +04:00
|
|
|
|
2001-10-27 11:38:18 +04:00
|
|
|
#if !defined (XP_UNIX) || defined(XP_MACOSX)
|
2000-08-10 08:03:52 +04:00
|
|
|
#define NS_OS_SYSTEM_DIR "SysD"
|
|
|
|
#endif
|
|
|
|
|
2003-04-07 11:02:32 +04:00
|
|
|
#if defined (XP_MACOSX)
|
2000-08-10 08:03:52 +04:00
|
|
|
#define NS_MAC_DESKTOP_DIR "Desk"
|
|
|
|
#define NS_MAC_TRASH_DIR "Trsh"
|
|
|
|
#define NS_MAC_STARTUP_DIR "Strt"
|
|
|
|
#define NS_MAC_SHUTDOWN_DIR "Shdwn"
|
|
|
|
#define NS_MAC_APPLE_MENU_DIR "ApplMenu"
|
|
|
|
#define NS_MAC_CONTROL_PANELS_DIR "CntlPnl"
|
|
|
|
#define NS_MAC_EXTENSIONS_DIR "Exts"
|
|
|
|
#define NS_MAC_FONTS_DIR "Fnts"
|
|
|
|
#define NS_MAC_PREFS_DIR "Prfs"
|
|
|
|
#define NS_MAC_DOCUMENTS_DIR "Docs"
|
|
|
|
#define NS_MAC_INTERNET_SEARCH_DIR "ISrch"
|
2003-04-07 11:02:32 +04:00
|
|
|
#define NS_OSX_HOME_DIR "Home"
|
|
|
|
#define NS_MAC_HOME_DIR NS_OSX_HOME_DIR
|
2000-09-07 01:13:06 +04:00
|
|
|
#define NS_MAC_DEFAULT_DOWNLOAD_DIR "DfltDwnld"
|
2001-06-14 05:24:22 +04:00
|
|
|
#define NS_MAC_USER_LIB_DIR "ULibDir" // Only available under OS X
|
2003-04-07 11:02:32 +04:00
|
|
|
#define NS_OSX_DEFAULT_DOWNLOAD_DIR NS_MAC_DEFAULT_DOWNLOAD_DIR
|
|
|
|
#define NS_OSX_USER_DESKTOP_DIR "UsrDsk"
|
|
|
|
#define NS_OSX_LOCAL_DESKTOP_DIR "LocDsk"
|
|
|
|
#define NS_OSX_USER_APPLICATIONS_DIR "UsrApp"
|
|
|
|
#define NS_OSX_LOCAL_APPLICATIONS_DIR "LocApp"
|
|
|
|
#define NS_OSX_USER_DOCUMENTS_DIR "UsrDocs"
|
|
|
|
#define NS_OSX_LOCAL_DOCUMENTS_DIR "LocDocs"
|
|
|
|
#define NS_OSX_USER_INTERNET_PLUGIN_DIR "UsrIntrntPlgn"
|
|
|
|
#define NS_OSX_LOCAL_INTERNET_PLUGIN_DIR "LoclIntrntPlgn"
|
|
|
|
#define NS_OSX_USER_FRAMEWORKS_DIR "UsrFrmwrks"
|
|
|
|
#define NS_OSX_LOCAL_FRAMEWORKS_DIR "LocFrmwrks"
|
|
|
|
#define NS_OSX_USER_PREFERENCES_DIR "UsrPrfs"
|
|
|
|
#define NS_OSX_LOCAL_PREFERENCES_DIR "LocPrfs"
|
|
|
|
#define NS_OSX_PICTURE_DOCUMENTS_DIR "Pct"
|
|
|
|
#define NS_OSX_MOVIE_DOCUMENTS_DIR "Mov"
|
|
|
|
#define NS_OSX_MUSIC_DOCUMENTS_DIR "Music"
|
|
|
|
#define NS_OSX_INTERNET_SITES_DIR "IntrntSts"
|
2000-11-29 02:27:38 +03:00
|
|
|
#elif defined (XP_WIN)
|
2000-08-10 08:03:52 +04:00
|
|
|
#define NS_WIN_WINDOWS_DIR "WinD"
|
|
|
|
#define NS_WIN_HOME_DIR "Home"
|
|
|
|
#define NS_WIN_DESKTOP_DIR "DeskV" // virtual folder at the root of the namespace
|
|
|
|
#define NS_WIN_PROGRAMS_DIR "Progs"
|
|
|
|
#define NS_WIN_CONTROLS_DIR "Cntls"
|
|
|
|
#define NS_WIN_PRINTERS_DIR "Prnts"
|
|
|
|
#define NS_WIN_PERSONAL_DIR "Pers"
|
|
|
|
#define NS_WIN_FAVORITES_DIR "Favs"
|
|
|
|
#define NS_WIN_STARTUP_DIR "Strt"
|
|
|
|
#define NS_WIN_RECENT_DIR "Rcnt"
|
|
|
|
#define NS_WIN_SEND_TO_DIR "SndTo"
|
|
|
|
#define NS_WIN_BITBUCKET_DIR "Buckt"
|
|
|
|
#define NS_WIN_STARTMENU_DIR "Strt"
|
|
|
|
#define NS_WIN_DESKTOP_DIRECTORY "DeskP" // file sys dir which physically stores objects on desktop
|
|
|
|
#define NS_WIN_DRIVES_DIR "Drivs"
|
|
|
|
#define NS_WIN_NETWORK_DIR "NetW"
|
|
|
|
#define NS_WIN_NETHOOD_DIR "netH"
|
|
|
|
#define NS_WIN_FONTS_DIR "Fnts"
|
|
|
|
#define NS_WIN_TEMPLATES_DIR "Tmpls"
|
|
|
|
#define NS_WIN_COMMON_STARTMENU_DIR "CmStrt"
|
|
|
|
#define NS_WIN_COMMON_PROGRAMS_DIR "CmPrgs"
|
|
|
|
#define NS_WIN_COMMON_STARTUP_DIR "CmStrt"
|
|
|
|
#define NS_WIN_COMMON_DESKTOP_DIRECTORY "CmDeskP"
|
|
|
|
#define NS_WIN_APPDATA_DIR "AppData"
|
2001-11-02 18:29:57 +03:00
|
|
|
#define NS_WIN_PRINTHOOD "PrntHd"
|
2003-01-10 05:52:26 +03:00
|
|
|
#define NS_WIN_COOKIES_DIR "CookD"
|
2002-09-25 16:23:39 +04:00
|
|
|
#elif defined (XP_UNIX)
|
|
|
|
#define NS_UNIX_LOCAL_DIR "Locl"
|
|
|
|
#define NS_UNIX_LIB_DIR "LibD"
|
|
|
|
#define NS_UNIX_HOME_DIR "Home"
|
2000-11-29 02:27:38 +03:00
|
|
|
#elif defined (XP_OS2)
|
2001-01-30 02:35:54 +03:00
|
|
|
#define NS_OS2_DIR "OS2Dir"
|
2000-11-29 02:27:38 +03:00
|
|
|
#define NS_OS2_HOME_DIR "Home"
|
|
|
|
#define NS_OS2_DESKTOP_DIR "Desk"
|
2000-08-10 08:03:52 +04:00
|
|
|
#elif defined (XP_BEOS)
|
|
|
|
#define NS_BEOS_SETTINGS_DIR "Setngs"
|
|
|
|
#define NS_BEOS_HOME_DIR "Home"
|
|
|
|
#define NS_BEOS_DESKTOP_DIR "Desk"
|
|
|
|
#endif
|
|
|
|
|
2003-06-11 00:09:25 +04:00
|
|
|
/* Deprecated */
|
|
|
|
|
|
|
|
#define NS_OS_DRIVE_DIR "DrvD"
|
|
|
|
|
|
|
|
|
2000-08-10 08:03:52 +04:00
|
|
|
|
|
|
|
#endif
|