1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 DIR_ATOM(sCurrentProcess
, NS_XPCOM_CURRENT_PROCESS_DIR
)
40 DIR_ATOM(sGRE_Directory
, NS_GRE_DIR
)
41 DIR_ATOM(sOS_DriveDirectory
, NS_OS_DRIVE_DIR
)
42 DIR_ATOM(sOS_TemporaryDirectory
, NS_OS_TEMP_DIR
)
43 DIR_ATOM(sOS_CurrentProcessDirectory
, NS_OS_CURRENT_PROCESS_DIR
)
44 DIR_ATOM(sOS_CurrentWorkingDirectory
, NS_OS_CURRENT_WORKING_DIR
)
45 DIR_ATOM(sOS_HomeDirectory
, NS_OS_HOME_DIR
)
46 DIR_ATOM(sOS_DesktopDirectory
, NS_OS_DESKTOP_DIR
)
47 DIR_ATOM(sInitCurrentProcess_dummy
, NS_XPCOM_INIT_CURRENT_PROCESS_DIR
)
48 #if defined (XP_MACOSX)
49 DIR_ATOM(sDirectory
, NS_OS_SYSTEM_DIR
)
50 DIR_ATOM(sTrashDirectory
, NS_MAC_TRASH_DIR
)
51 DIR_ATOM(sStartupDirectory
, NS_MAC_STARTUP_DIR
)
52 DIR_ATOM(sShutdownDirectory
, NS_MAC_SHUTDOWN_DIR
)
53 DIR_ATOM(sAppleMenuDirectory
, NS_MAC_APPLE_MENU_DIR
)
54 DIR_ATOM(sControlPanelDirectory
, NS_MAC_CONTROL_PANELS_DIR
)
55 DIR_ATOM(sExtensionDirectory
, NS_MAC_EXTENSIONS_DIR
)
56 DIR_ATOM(sFontsDirectory
, NS_MAC_FONTS_DIR
)
57 DIR_ATOM(sPreferencesDirectory
, NS_MAC_PREFS_DIR
)
58 DIR_ATOM(sDocumentsDirectory
, NS_MAC_DOCUMENTS_DIR
)
59 DIR_ATOM(sInternetSearchDirectory
, NS_MAC_INTERNET_SEARCH_DIR
)
60 DIR_ATOM(sUserLibDirectory
, NS_MAC_USER_LIB_DIR
)
61 DIR_ATOM(sDefaultDownloadDirectory
, NS_OSX_DEFAULT_DOWNLOAD_DIR
)
62 DIR_ATOM(sUserDesktopDirectory
, NS_OSX_USER_DESKTOP_DIR
)
63 DIR_ATOM(sLocalDesktopDirectory
, NS_OSX_LOCAL_DESKTOP_DIR
)
64 DIR_ATOM(sUserApplicationsDirectory
, NS_OSX_USER_APPLICATIONS_DIR
)
65 DIR_ATOM(sLocalApplicationsDirectory
, NS_OSX_LOCAL_APPLICATIONS_DIR
)
66 DIR_ATOM(sUserDocumentsDirectory
, NS_OSX_USER_DOCUMENTS_DIR
)
67 DIR_ATOM(sLocalDocumentsDirectory
, NS_OSX_LOCAL_DOCUMENTS_DIR
)
68 DIR_ATOM(sUserInternetPlugInDirectory
, NS_OSX_USER_INTERNET_PLUGIN_DIR
)
69 DIR_ATOM(sLocalInternetPlugInDirectory
, NS_OSX_LOCAL_INTERNET_PLUGIN_DIR
)
70 DIR_ATOM(sUserFrameworksDirectory
, NS_OSX_USER_FRAMEWORKS_DIR
)
71 DIR_ATOM(sLocalFrameworksDirectory
, NS_OSX_LOCAL_FRAMEWORKS_DIR
)
72 DIR_ATOM(sUserPreferencesDirectory
, NS_OSX_USER_PREFERENCES_DIR
)
73 DIR_ATOM(sLocalPreferencesDirectory
, NS_OSX_LOCAL_PREFERENCES_DIR
)
74 DIR_ATOM(sPictureDocumentsDirectory
, NS_OSX_PICTURE_DOCUMENTS_DIR
)
75 DIR_ATOM(sMovieDocumentsDirectory
, NS_OSX_MOVIE_DOCUMENTS_DIR
)
76 DIR_ATOM(sMusicDocumentsDirectory
, NS_OSX_MUSIC_DOCUMENTS_DIR
)
77 DIR_ATOM(sInternetSitesDirectory
, NS_OSX_INTERNET_SITES_DIR
)
78 #elif defined (XP_WIN)
79 DIR_ATOM(sSystemDirectory
, NS_OS_SYSTEM_DIR
)
80 DIR_ATOM(sWindowsDirectory
, NS_WIN_WINDOWS_DIR
)
81 DIR_ATOM(sWindowsProgramFiles
, NS_WIN_PROGRAM_FILES_DIR
)
82 DIR_ATOM(sDesktop
, NS_WIN_DESKTOP_DIR
)
83 DIR_ATOM(sPrograms
, NS_WIN_PROGRAMS_DIR
)
84 DIR_ATOM(sControls
, NS_WIN_CONTROLS_DIR
)
85 DIR_ATOM(sPrinters
, NS_WIN_PRINTERS_DIR
)
86 DIR_ATOM(sPersonal
, NS_WIN_PERSONAL_DIR
)
87 DIR_ATOM(sFavorites
, NS_WIN_FAVORITES_DIR
)
88 DIR_ATOM(sStartup
, NS_WIN_STARTUP_DIR
)
89 DIR_ATOM(sRecent
, NS_WIN_RECENT_DIR
)
90 DIR_ATOM(sSendto
, NS_WIN_SEND_TO_DIR
)
91 DIR_ATOM(sBitbucket
, NS_WIN_BITBUCKET_DIR
)
92 DIR_ATOM(sStartmenu
, NS_WIN_STARTMENU_DIR
)
93 DIR_ATOM(sDesktopdirectory
, NS_WIN_DESKTOP_DIRECTORY
)
94 DIR_ATOM(sDrives
, NS_WIN_DRIVES_DIR
)
95 DIR_ATOM(sNetwork
, NS_WIN_NETWORK_DIR
)
96 DIR_ATOM(sNethood
, NS_WIN_NETHOOD_DIR
)
97 DIR_ATOM(sFonts
, NS_WIN_FONTS_DIR
)
98 DIR_ATOM(sTemplates
, NS_WIN_TEMPLATES_DIR
)
99 DIR_ATOM(sCommon_Startmenu
, NS_WIN_COMMON_STARTMENU_DIR
)
100 DIR_ATOM(sCommon_Programs
, NS_WIN_COMMON_PROGRAMS_DIR
)
101 DIR_ATOM(sCommon_Startup
, NS_WIN_COMMON_STARTUP_DIR
)
102 DIR_ATOM(sCommon_Desktopdirectory
, NS_WIN_COMMON_DESKTOP_DIRECTORY
)
103 DIR_ATOM(sAppdata
, NS_WIN_APPDATA_DIR
)
104 DIR_ATOM(sLocalAppdata
, NS_WIN_LOCAL_APPDATA_DIR
)
105 DIR_ATOM(sPrinthood
, NS_WIN_PRINTHOOD
)
106 DIR_ATOM(sWinCookiesDirectory
, NS_WIN_COOKIES_DIR
)
107 DIR_ATOM(sDefaultDownloadDirectory
, NS_WIN_DEFAULT_DOWNLOAD_DIR
)
108 #elif defined (XP_UNIX)
109 DIR_ATOM(sLocalDirectory
, NS_UNIX_LOCAL_DIR
)
110 DIR_ATOM(sLibDirectory
, NS_UNIX_LIB_DIR
)
111 DIR_ATOM(sDefaultDownloadDirectory
, NS_UNIX_DEFAULT_DOWNLOAD_DIR
)
112 DIR_ATOM(sXDGDesktop
, NS_UNIX_XDG_DESKTOP_DIR
)
113 DIR_ATOM(sXDGDocuments
, NS_UNIX_XDG_DOCUMENTS_DIR
)
114 DIR_ATOM(sXDGDownload
, NS_UNIX_XDG_DOWNLOAD_DIR
)
115 DIR_ATOM(sXDGMusic
, NS_UNIX_XDG_MUSIC_DIR
)
116 DIR_ATOM(sXDGPictures
, NS_UNIX_XDG_PICTURES_DIR
)
117 DIR_ATOM(sXDGPublicShare
, NS_UNIX_XDG_PUBLIC_SHARE_DIR
)
118 DIR_ATOM(sXDGTemplates
, NS_UNIX_XDG_TEMPLATES_DIR
)
119 DIR_ATOM(sXDGVideos
, NS_UNIX_XDG_VIDEOS_DIR
)
120 #elif defined (XP_OS2)
121 DIR_ATOM(sSystemDirectory
, NS_OS_SYSTEM_DIR
)
122 DIR_ATOM(sOS2Directory
, NS_OS2_DIR
)
123 #elif defined (XP_BEOS)
124 DIR_ATOM(sSystemDirectory
, NS_OS_SYSTEM_DIR
)
125 DIR_ATOM(sSettingsDirectory
, NS_BEOS_SETTINGS_DIR
)