Back to index

lightning-sunbird  0.9+nobinonly
nsDirectoryServiceDefs.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2000
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Conrad Carlen conrad@ingress.com
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00052 #ifndef nsDirectoryServiceDefs_h___
00053 #define nsDirectoryServiceDefs_h___
00054 
00055 /* General OS specific locations */
00056 
00057 #define NS_OS_HOME_DIR                          "Home"
00058 #define NS_OS_TEMP_DIR                          "TmpD"
00059 #define NS_OS_CURRENT_WORKING_DIR               "CurWorkD"
00060 /* Files stored in this directory will appear on the user's desktop,
00061  * if there is one, otherwise it's just the same as "Home"
00062  */
00063 #define NS_OS_DESKTOP_DIR                       "Desk"
00064 
00065 /* Property returns the directory in which the procces was started from.  
00066  * On Unix this will be the path in the MOZILLA_FIVE_HOME env var and if 
00067  * unset will be the current working directory. 
00068  */
00069 #define NS_OS_CURRENT_PROCESS_DIR               "CurProcD"
00070                                                                                                                        
00071 /* This location is similar to NS_OS_CURRENT_PROCESS_DIR, however, 
00072  * NS_XPCOM_CURRENT_PROCESS_DIR can be overriden by passing a "bin
00073  * directory" to NS_InitXPCOM2(). 
00074  */
00075 #define NS_XPCOM_CURRENT_PROCESS_DIR            "XCurProcD"
00076 
00077 /* Property will return the location of the application components
00078  * directory.  By default, this directory will be contained in the 
00079  * NS_XPCOM_CURRENT_PROCESS_DIR.
00080  */
00081 #define NS_XPCOM_COMPONENT_DIR                  "ComsD"
00082 
00083 /* Property will return a list of components directories that will
00084  * will be registered after the application components directory.
00085  */
00086 #define NS_XPCOM_COMPONENT_DIR_LIST             "ComsDL"
00087 
00088 /* Property will return the location of the application components
00089  * registry file.
00090  */
00091 #define NS_XPCOM_COMPONENT_REGISTRY_FILE        "ComRegF"
00092 
00093 /* Property will return the location of the application XPTI
00094  * registry file.
00095  */
00096 #define NS_XPCOM_XPTI_REGISTRY_FILE             "XptiRegF"
00097 
00098 /* Property will return the location of the the XPCOM Shared Library.
00099  */
00100 #define NS_XPCOM_LIBRARY_FILE                   "XpcomLib"
00101 
00102 /* Property will return the current location of the the GRE directory.  
00103  * If no GRE is used, this propery will behave like 
00104  * NS_XPCOM_CURRENT_PROCESS_DIR.
00105  */
00106 #define NS_GRE_DIR                              "GreD"
00107 
00108 /* Property will return the current location of the the GRE component 
00109  * directory.  If no GRE is used, this propery will behave like 
00110  * NS_XPCOM_COMPONENT_DIR.
00111  */
00112 #define NS_GRE_COMPONENT_DIR                    "GreComsD" 
00113 
00114 
00115 /* Platform Specific Locations */
00116 
00117 #if !defined (XP_UNIX) || defined(XP_MACOSX)
00118     #define NS_OS_SYSTEM_DIR                    "SysD"
00119 #endif
00120 
00121 #if defined (XP_MACOSX)
00122     #define NS_MAC_DESKTOP_DIR                  NS_OS_DESKTOP_DIR
00123     #define NS_MAC_TRASH_DIR                    "Trsh"
00124     #define NS_MAC_STARTUP_DIR                  "Strt"
00125     #define NS_MAC_SHUTDOWN_DIR                 "Shdwn"
00126     #define NS_MAC_APPLE_MENU_DIR               "ApplMenu"
00127     #define NS_MAC_CONTROL_PANELS_DIR           "CntlPnl"
00128     #define NS_MAC_EXTENSIONS_DIR               "Exts"
00129     #define NS_MAC_FONTS_DIR                    "Fnts"
00130     #define NS_MAC_PREFS_DIR                    "Prfs"
00131     #define NS_MAC_DOCUMENTS_DIR                "Docs"
00132     #define NS_MAC_INTERNET_SEARCH_DIR          "ISrch"
00133     #define NS_OSX_HOME_DIR                     NS_OS_HOME_DIR
00134     #define NS_MAC_HOME_DIR                     NS_OS_HOME_DIR
00135     #define NS_MAC_DEFAULT_DOWNLOAD_DIR         "DfltDwnld"
00136     #define NS_MAC_USER_LIB_DIR                 "ULibDir"   // Only available under OS X
00137     #define NS_OSX_DEFAULT_DOWNLOAD_DIR         NS_MAC_DEFAULT_DOWNLOAD_DIR
00138     #define NS_OSX_USER_DESKTOP_DIR             "UsrDsk"
00139     #define NS_OSX_LOCAL_DESKTOP_DIR            "LocDsk"
00140     #define NS_OSX_USER_APPLICATIONS_DIR        "UsrApp"
00141     #define NS_OSX_LOCAL_APPLICATIONS_DIR       "LocApp"
00142     #define NS_OSX_USER_DOCUMENTS_DIR           "UsrDocs"
00143     #define NS_OSX_LOCAL_DOCUMENTS_DIR          "LocDocs"
00144     #define NS_OSX_USER_INTERNET_PLUGIN_DIR     "UsrIntrntPlgn"
00145     #define NS_OSX_LOCAL_INTERNET_PLUGIN_DIR    "LoclIntrntPlgn"
00146     #define NS_OSX_USER_FRAMEWORKS_DIR          "UsrFrmwrks"
00147     #define NS_OSX_LOCAL_FRAMEWORKS_DIR         "LocFrmwrks"
00148     #define NS_OSX_USER_PREFERENCES_DIR         "UsrPrfs"
00149     #define NS_OSX_LOCAL_PREFERENCES_DIR        "LocPrfs"
00150     #define NS_OSX_PICTURE_DOCUMENTS_DIR        "Pct"
00151     #define NS_OSX_MOVIE_DOCUMENTS_DIR          "Mov"
00152     #define NS_OSX_MUSIC_DOCUMENTS_DIR          "Music"
00153     #define NS_OSX_INTERNET_SITES_DIR           "IntrntSts"
00154 #elif defined (XP_WIN)
00155     #define NS_WIN_WINDOWS_DIR                  "WinD"
00156     #define NS_WIN_PROGRAM_FILES_DIR            "ProgF"
00157     #define NS_WIN_HOME_DIR                     NS_OS_HOME_DIR
00158     #define NS_WIN_DESKTOP_DIR                  "DeskV" // virtual folder at the root of the namespace
00159     #define NS_WIN_PROGRAMS_DIR                 "Progs" // User start menu programs directory!
00160     #define NS_WIN_CONTROLS_DIR                 "Cntls"
00161     #define NS_WIN_PRINTERS_DIR                 "Prnts"
00162     #define NS_WIN_PERSONAL_DIR                 "Pers"
00163     #define NS_WIN_FAVORITES_DIR                "Favs"
00164     #define NS_WIN_STARTUP_DIR                  "Strt"
00165     #define NS_WIN_RECENT_DIR                   "Rcnt"
00166     #define NS_WIN_SEND_TO_DIR                  "SndTo"
00167     #define NS_WIN_BITBUCKET_DIR                "Buckt"
00168     #define NS_WIN_STARTMENU_DIR                "Strt"
00169 // This gives the same thing as NS_OS_DESKTOP_DIR
00170     #define NS_WIN_DESKTOP_DIRECTORY            "DeskP" // file sys dir which physically stores objects on desktop
00171     #define NS_WIN_DRIVES_DIR                   "Drivs"
00172     #define NS_WIN_NETWORK_DIR                  "NetW"
00173     #define NS_WIN_NETHOOD_DIR                  "netH"
00174     #define NS_WIN_FONTS_DIR                    "Fnts"
00175     #define NS_WIN_TEMPLATES_DIR                "Tmpls"
00176     #define NS_WIN_COMMON_STARTMENU_DIR         "CmStrt"
00177     #define NS_WIN_COMMON_PROGRAMS_DIR          "CmPrgs"
00178     #define NS_WIN_COMMON_STARTUP_DIR           "CmStrt"
00179     #define NS_WIN_COMMON_DESKTOP_DIRECTORY     "CmDeskP"
00180     #define NS_WIN_APPDATA_DIR                  "AppData"
00181     #define NS_WIN_LOCAL_APPDATA_DIR            "LocalAppData"
00182     #define NS_WIN_PRINTHOOD                    "PrntHd"
00183     #define NS_WIN_COOKIES_DIR                  "CookD"
00184 #elif defined (XP_UNIX)
00185     #define NS_UNIX_LOCAL_DIR                   "Locl"
00186     #define NS_UNIX_LIB_DIR                     "LibD"
00187     #define NS_UNIX_HOME_DIR                    NS_OS_HOME_DIR
00188 #elif defined (XP_OS2)
00189     #define NS_OS2_DIR                          "OS2Dir"
00190     #define NS_OS2_HOME_DIR                     NS_OS_HOME_DIR
00191     #define NS_OS2_DESKTOP_DIR                  NS_OS_DESKTOP_DIR
00192 #elif defined (XP_BEOS)
00193     #define NS_BEOS_SETTINGS_DIR                "Setngs"
00194     #define NS_BEOS_HOME_DIR                    NS_OS_HOME_DIR
00195     #define NS_BEOS_DESKTOP_DIR                 NS_OS_DESKTOP_DIR
00196 #endif
00197 
00198 /* Deprecated */
00199 
00200 #define NS_OS_DRIVE_DIR                         "DrvD"
00201 
00202 
00203 
00204 #endif