2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2002-10-07 18:52:34 +00: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 04:03:52 +00:00
|
|
|
#ifndef nsDirectoryServiceDefs_h___
|
|
|
|
#define nsDirectoryServiceDefs_h___
|
2003-06-10 20:09:25 +00:00
|
|
|
|
|
|
|
/* General OS specific locations */
|
|
|
|
|
|
|
|
#define NS_OS_HOME_DIR "Home"
|
|
|
|
#define NS_OS_TEMP_DIR "TmpD"
|
|
|
|
#define NS_OS_CURRENT_WORKING_DIR "CurWorkD"
|
2005-03-01 01:03:33 +00:00
|
|
|
/* Files stored in this directory will appear on the user's desktop,
|
|
|
|
* if there is one, otherwise it's just the same as "Home"
|
|
|
|
*/
|
|
|
|
#define NS_OS_DESKTOP_DIR "Desk"
|
2003-06-10 20:09:25 +00:00
|
|
|
|
|
|
|
/* 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 04:03:52 +00:00
|
|
|
|
2003-06-10 20:09:25 +00: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-05 22:19:19 +00:00
|
|
|
#define NS_XPCOM_CURRENT_PROCESS_DIR "XCurProcD"
|
2003-06-10 20:09:25 +00:00
|
|
|
|
|
|
|
/* Property will return the location of the the XPCOM Shared Library.
|
|
|
|
*/
|
2002-09-27 13:07:01 +00:00
|
|
|
#define NS_XPCOM_LIBRARY_FILE "XpcomLib"
|
2000-08-10 04:03:52 +00:00
|
|
|
|
2003-06-10 20:09:25 +00: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-13 22:18:43 +00:00
|
|
|
#define NS_GRE_DIR "GreD"
|
2003-06-10 20:09:25 +00:00
|
|
|
|
|
|
|
/* Platform Specific Locations */
|
2000-08-10 04:03:52 +00:00
|
|
|
|
2010-04-27 12:57:34 +00:00
|
|
|
#if !defined (XP_UNIX) || defined(MOZ_WIDGET_COCOA)
|
2000-08-10 04:03:52 +00:00
|
|
|
#define NS_OS_SYSTEM_DIR "SysD"
|
|
|
|
#endif
|
|
|
|
|
2010-04-27 12:57:34 +00:00
|
|
|
#if defined (MOZ_WIDGET_COCOA)
|
2005-03-01 01:03:33 +00:00
|
|
|
#define NS_MAC_DESKTOP_DIR NS_OS_DESKTOP_DIR
|
2000-08-10 04:03:52 +00:00
|
|
|
#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"
|
2005-03-01 01:03:33 +00:00
|
|
|
#define NS_OSX_HOME_DIR NS_OS_HOME_DIR
|
|
|
|
#define NS_MAC_HOME_DIR NS_OS_HOME_DIR
|
2000-09-06 21:13:06 +00:00
|
|
|
#define NS_MAC_DEFAULT_DOWNLOAD_DIR "DfltDwnld"
|
2001-06-14 01:24:22 +00:00
|
|
|
#define NS_MAC_USER_LIB_DIR "ULibDir" // Only available under OS X
|
2003-04-07 07:02:32 +00: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-28 23:27:38 +00:00
|
|
|
#elif defined (XP_WIN)
|
2000-08-10 04:03:52 +00:00
|
|
|
#define NS_WIN_WINDOWS_DIR "WinD"
|
2005-10-09 19:00:19 +00:00
|
|
|
#define NS_WIN_PROGRAM_FILES_DIR "ProgF"
|
2005-03-01 01:03:33 +00:00
|
|
|
#define NS_WIN_HOME_DIR NS_OS_HOME_DIR
|
2000-08-10 04:03:52 +00:00
|
|
|
#define NS_WIN_DESKTOP_DIR "DeskV" // virtual folder at the root of the namespace
|
2005-10-09 19:00:19 +00:00
|
|
|
#define NS_WIN_PROGRAMS_DIR "Progs" // User start menu programs directory!
|
2000-08-10 04:03:52 +00:00
|
|
|
#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"
|
2005-03-01 01:03:33 +00:00
|
|
|
// This gives the same thing as NS_OS_DESKTOP_DIR
|
2000-08-10 04:03:52 +00:00
|
|
|
#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"
|
2012-01-05 04:19:14 +00:00
|
|
|
#define NS_WIN_COMMON_APPDATA_DIR "CmAppData"
|
2000-08-10 04:03:52 +00:00
|
|
|
#define NS_WIN_APPDATA_DIR "AppData"
|
2005-04-27 11:56:40 +00:00
|
|
|
#define NS_WIN_LOCAL_APPDATA_DIR "LocalAppData"
|
2001-11-02 15:29:57 +00:00
|
|
|
#define NS_WIN_PRINTHOOD "PrntHd"
|
2003-01-10 02:52:26 +00:00
|
|
|
#define NS_WIN_COOKIES_DIR "CookD"
|
2006-10-24 20:56:13 +00:00
|
|
|
#define NS_WIN_DEFAULT_DOWNLOAD_DIR "DfltDwnld"
|
2002-09-25 12:23:39 +00:00
|
|
|
#elif defined (XP_UNIX)
|
|
|
|
#define NS_UNIX_LOCAL_DIR "Locl"
|
|
|
|
#define NS_UNIX_LIB_DIR "LibD"
|
2005-03-01 01:03:33 +00:00
|
|
|
#define NS_UNIX_HOME_DIR NS_OS_HOME_DIR
|
2008-03-12 22:35:56 +00:00
|
|
|
#define NS_UNIX_XDG_DESKTOP_DIR "XDGDesk"
|
|
|
|
#define NS_UNIX_XDG_DOCUMENTS_DIR "XDGDocs"
|
|
|
|
#define NS_UNIX_XDG_DOWNLOAD_DIR "XDGDwnld"
|
|
|
|
#define NS_UNIX_XDG_MUSIC_DIR "XDGMusic"
|
|
|
|
#define NS_UNIX_XDG_PICTURES_DIR "XDGPict"
|
|
|
|
#define NS_UNIX_XDG_PUBLIC_SHARE_DIR "XDGPubSh"
|
|
|
|
#define NS_UNIX_XDG_TEMPLATES_DIR "XDGTempl"
|
|
|
|
#define NS_UNIX_XDG_VIDEOS_DIR "XDGVids"
|
2008-03-12 22:40:51 +00:00
|
|
|
#define NS_UNIX_DEFAULT_DOWNLOAD_DIR "DfltDwnld"
|
2000-11-28 23:27:38 +00:00
|
|
|
#elif defined (XP_OS2)
|
2001-01-29 23:35:54 +00:00
|
|
|
#define NS_OS2_DIR "OS2Dir"
|
2005-03-01 01:03:33 +00:00
|
|
|
#define NS_OS2_HOME_DIR NS_OS_HOME_DIR
|
|
|
|
#define NS_OS2_DESKTOP_DIR NS_OS_DESKTOP_DIR
|
2000-08-10 04:03:52 +00:00
|
|
|
#endif
|
|
|
|
|
2003-06-10 20:09:25 +00:00
|
|
|
/* Deprecated */
|
|
|
|
|
|
|
|
#define NS_OS_DRIVE_DIR "DrvD"
|
|
|
|
|
|
|
|
|
2000-08-10 04:03:52 +00:00
|
|
|
|
|
|
|
#endif
|