VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/xpcom/io/nsDirectoryServiceDefs.h@ 31232

最後變更 在這個檔案從31232是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 8.7 KB
 
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
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/
9 *
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
13 * License.
14 *
15 * The Original Code is mozilla.org code.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2000
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Conrad Carlen [email protected]
24 *
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.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39/**
40 * Defines the property names for directories available from
41 * nsIDirectoryService. These dirs are always available even if no
42 * nsIDirectoryServiceProviders have been registered with the service.
43 * Application level keys are defined in nsAppDirectoryServiceDefs.h.
44 *
45 * Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or
46 * subclass). Keys whose definition ends in "LIST" return an nsISimpleEnumerator
47 * which enumerates a list of file objects.
48 *
49 * Defines listed in this file are FROZEN. This list may grow.
50 */
51
52#ifndef nsDirectoryServiceDefs_h___
53#define nsDirectoryServiceDefs_h___
54
55/* General OS specific locations */
56
57#define NS_OS_HOME_DIR "Home"
58#define NS_OS_TEMP_DIR "TmpD"
59#define NS_OS_CURRENT_WORKING_DIR "CurWorkD"
60
61/* Property returns the directory in which the procces was started from.
62 * On Unix this will be the path in the VBOX_XPCOM_HOME env var and if
63 * unset will be the current working directory.
64 */
65#define NS_OS_CURRENT_PROCESS_DIR "CurProcD"
66
67/* This location is similar to NS_OS_CURRENT_PROCESS_DIR, however,
68 * NS_XPCOM_CURRENT_PROCESS_DIR can be overriden by passing a "bin
69 * directory" to NS_InitXPCOM2().
70 */
71#define NS_XPCOM_CURRENT_PROCESS_DIR "XCurProcD"
72
73/* Property will return the location of the application components
74 * directory. By default, this directory will be contained in the
75 * NS_XPCOM_CURRENT_PROCESS_DIR.
76 */
77#define NS_XPCOM_COMPONENT_DIR "ComsD"
78
79/* Property will return a list of components directories that will
80 * will be registered after the application components directory.
81 */
82#define NS_XPCOM_COMPONENT_DIR_LIST "ComsDL"
83
84/* Property will return the location of the application components
85 * registry file.
86 */
87#define NS_XPCOM_COMPONENT_REGISTRY_FILE "ComRegF"
88
89/* Property will return the location of the application XPTI
90 * registry file.
91 */
92#define NS_XPCOM_XPTI_REGISTRY_FILE "XptiRegF"
93
94/* Property will return the location of the the XPCOM Shared Library.
95 */
96#define NS_XPCOM_LIBRARY_FILE "XpcomLib"
97
98/* Property will return the current location of the the GRE directory.
99 * If no GRE is used, this propery will behave like
100 * NS_XPCOM_CURRENT_PROCESS_DIR.
101 */
102#define NS_GRE_DIR "GreD"
103
104/* Property will return the current location of the the GRE component
105 * directory. If no GRE is used, this propery will behave like
106 * NS_XPCOM_COMPONENT_DIR.
107 */
108#define NS_GRE_COMPONENT_DIR "GreComsD"
109
110
111/* Platform Specific Locations */
112
113#if !defined (XP_UNIX) || defined(XP_MACOSX)
114 #define NS_OS_SYSTEM_DIR "SysD"
115#endif
116
117#if defined (XP_MACOSX)
118 #define NS_MAC_DESKTOP_DIR "Desk"
119 #define NS_MAC_TRASH_DIR "Trsh"
120 #define NS_MAC_STARTUP_DIR "Strt"
121 #define NS_MAC_SHUTDOWN_DIR "Shdwn"
122 #define NS_MAC_APPLE_MENU_DIR "ApplMenu"
123 #define NS_MAC_CONTROL_PANELS_DIR "CntlPnl"
124 #define NS_MAC_EXTENSIONS_DIR "Exts"
125 #define NS_MAC_FONTS_DIR "Fnts"
126 #define NS_MAC_PREFS_DIR "Prfs"
127 #define NS_MAC_DOCUMENTS_DIR "Docs"
128 #define NS_MAC_INTERNET_SEARCH_DIR "ISrch"
129 #define NS_OSX_HOME_DIR "Home"
130 #define NS_MAC_HOME_DIR NS_OSX_HOME_DIR
131 #define NS_MAC_DEFAULT_DOWNLOAD_DIR "DfltDwnld"
132 #define NS_MAC_USER_LIB_DIR "ULibDir" // Only available under OS X
133 #define NS_OSX_DEFAULT_DOWNLOAD_DIR NS_MAC_DEFAULT_DOWNLOAD_DIR
134 #define NS_OSX_USER_DESKTOP_DIR "UsrDsk"
135 #define NS_OSX_LOCAL_DESKTOP_DIR "LocDsk"
136 #define NS_OSX_USER_APPLICATIONS_DIR "UsrApp"
137 #define NS_OSX_LOCAL_APPLICATIONS_DIR "LocApp"
138 #define NS_OSX_USER_DOCUMENTS_DIR "UsrDocs"
139 #define NS_OSX_LOCAL_DOCUMENTS_DIR "LocDocs"
140 #define NS_OSX_USER_INTERNET_PLUGIN_DIR "UsrIntrntPlgn"
141 #define NS_OSX_LOCAL_INTERNET_PLUGIN_DIR "LoclIntrntPlgn"
142 #define NS_OSX_USER_FRAMEWORKS_DIR "UsrFrmwrks"
143 #define NS_OSX_LOCAL_FRAMEWORKS_DIR "LocFrmwrks"
144 #define NS_OSX_USER_PREFERENCES_DIR "UsrPrfs"
145 #define NS_OSX_LOCAL_PREFERENCES_DIR "LocPrfs"
146 #define NS_OSX_PICTURE_DOCUMENTS_DIR "Pct"
147 #define NS_OSX_MOVIE_DOCUMENTS_DIR "Mov"
148 #define NS_OSX_MUSIC_DOCUMENTS_DIR "Music"
149 #define NS_OSX_INTERNET_SITES_DIR "IntrntSts"
150#elif defined (XP_WIN)
151 #define NS_WIN_WINDOWS_DIR "WinD"
152 #define NS_WIN_HOME_DIR "Home"
153 #define NS_WIN_DESKTOP_DIR "DeskV" // virtual folder at the root of the namespace
154 #define NS_WIN_PROGRAMS_DIR "Progs"
155 #define NS_WIN_CONTROLS_DIR "Cntls"
156 #define NS_WIN_PRINTERS_DIR "Prnts"
157 #define NS_WIN_PERSONAL_DIR "Pers"
158 #define NS_WIN_FAVORITES_DIR "Favs"
159 #define NS_WIN_STARTUP_DIR "Strt"
160 #define NS_WIN_RECENT_DIR "Rcnt"
161 #define NS_WIN_SEND_TO_DIR "SndTo"
162 #define NS_WIN_BITBUCKET_DIR "Buckt"
163 #define NS_WIN_STARTMENU_DIR "Strt"
164 #define NS_WIN_DESKTOP_DIRECTORY "DeskP" // file sys dir which physically stores objects on desktop
165 #define NS_WIN_DRIVES_DIR "Drivs"
166 #define NS_WIN_NETWORK_DIR "NetW"
167 #define NS_WIN_NETHOOD_DIR "netH"
168 #define NS_WIN_FONTS_DIR "Fnts"
169 #define NS_WIN_TEMPLATES_DIR "Tmpls"
170 #define NS_WIN_COMMON_STARTMENU_DIR "CmStrt"
171 #define NS_WIN_COMMON_PROGRAMS_DIR "CmPrgs"
172 #define NS_WIN_COMMON_STARTUP_DIR "CmStrt"
173 #define NS_WIN_COMMON_DESKTOP_DIRECTORY "CmDeskP"
174 #define NS_WIN_APPDATA_DIR "AppData"
175 #define NS_WIN_PRINTHOOD "PrntHd"
176 #define NS_WIN_COOKIES_DIR "CookD"
177#elif defined (XP_UNIX)
178 #define NS_UNIX_LOCAL_DIR "Locl"
179 #define NS_UNIX_LIB_DIR "LibD"
180 #define NS_UNIX_HOME_DIR "Home"
181#elif defined (XP_OS2)
182 #define NS_OS2_DIR "OS2Dir"
183 #define NS_OS2_HOME_DIR "Home"
184 #define NS_OS2_DESKTOP_DIR "Desk"
185#elif defined (XP_BEOS)
186 #define NS_BEOS_SETTINGS_DIR "Setngs"
187 #define NS_BEOS_HOME_DIR "Home"
188 #define NS_BEOS_DESKTOP_DIR "Desk"
189#endif
190
191/* Deprecated */
192
193#define NS_OS_DRIVE_DIR "DrvD"
194
195
196
197#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette