VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/xpcom/io/SpecialSystemDirectory.h@ 65902

最後變更 在這個檔案從65902是 60949,由 vboxsync 提交於 9 年 前

xpcom: Adjustments for OS X SDK v10.9.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 4.9 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 Communicator client code, released
16 * March 31, 1998.
17 *
18 * The Initial Developer of the Original Code is
19 * Netscape Communications Corporation.
20 * Portions created by the Initial Developer are Copyright (C) 1998
21 * the Initial Developer. All Rights Reserved.
22 *
23 * Contributor(s):
24 * Doug Turner <[email protected]>
25 * IBM Corp.
26 *
27 * Alternatively, the contents of this file may be used under the terms of
28 * either of the GNU General Public License Version 2 or later (the "GPL"),
29 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 * in which case the provisions of the GPL or the LGPL are applicable instead
31 * of those above. If you wish to allow use of your version of this file only
32 * under the terms of either the GPL or the LGPL, and not to allow others to
33 * use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL or the LGPL.
38 *
39 * ***** END LICENSE BLOCK ***** */
40
41#ifndef _SPECIALSYSTEMDIRECTORY_H_
42#define _SPECIALSYSTEMDIRECTORY_H_
43
44#include "nscore.h"
45#include "nsILocalFile.h"
46
47#if defined(XP_MAC) || defined(XP_MACOSX)
48# ifndef VBOX_WITH_NEWER_OSX_SDK
49# include <Types.h>
50# endif
51#include "nsILocalFileMac.h"
52#include "prenv.h"
53#endif
54
55
56extern NS_COM void StartupSpecialSystemDirectory();
57extern NS_COM void ShutdownSpecialSystemDirectory();
58
59
60enum SystemDirectories {
61 OS_DriveDirectory = 1,
62 OS_TemporaryDirectory = 2,
63 OS_CurrentProcessDirectory= 3,
64 OS_CurrentWorkingDirectory= 4,
65 XPCOM_CurrentProcessComponentDirectory= 5,
66 XPCOM_CurrentProcessComponentRegistry= 6,
67
68 Moz_BinDirectory = 100 ,
69 Mac_SystemDirectory = 101,
70 Mac_DesktopDirectory = 102,
71 Mac_TrashDirectory = 103,
72 Mac_StartupDirectory = 104,
73 Mac_ShutdownDirectory = 105,
74 Mac_AppleMenuDirectory = 106,
75 Mac_ControlPanelDirectory = 107,
76 Mac_ExtensionDirectory = 108,
77 Mac_FontsDirectory = 109,
78 Mac_ClassicPreferencesDirectory = 110,
79 Mac_DocumentsDirectory = 111,
80 Mac_InternetSearchDirectory = 112,
81 Mac_DefaultDownloadDirectory = 113,
82 Mac_UserLibDirectory = 114,
83 Mac_PreferencesDirectory = 115,
84
85 Win_SystemDirectory = 201,
86 Win_WindowsDirectory = 202,
87 Win_HomeDirectory = 203,
88 Win_Desktop = 204,
89 Win_Programs = 205,
90 Win_Controls = 206,
91 Win_Printers = 207,
92 Win_Personal = 208,
93 Win_Favorites = 209,
94 Win_Startup = 210,
95 Win_Recent = 211,
96 Win_Sendto = 212,
97 Win_Bitbucket = 213,
98 Win_Startmenu = 214,
99 Win_Desktopdirectory = 215,
100 Win_Drives = 216,
101 Win_Network = 217,
102 Win_Nethood = 218,
103 Win_Fonts = 219,
104 Win_Templates = 220,
105 Win_Common_Startmenu = 221,
106 Win_Common_Programs = 222,
107 Win_Common_Startup = 223,
108 Win_Common_Desktopdirectory = 224,
109 Win_Appdata = 225,
110 Win_Printhood = 226,
111 Win_Cookies = 227,
112
113 Unix_LocalDirectory = 301,
114 Unix_LibDirectory = 302,
115 Unix_HomeDirectory = 303,
116
117 BeOS_SettingsDirectory = 401,
118 BeOS_HomeDirectory = 402,
119 BeOS_DesktopDirectory = 403,
120 BeOS_SystemDirectory = 404,
121
122 OS2_SystemDirectory = 501,
123 OS2_OS2Directory = 502,
124 OS2_DesktopDirectory = 503,
125 OS2_HomeDirectory = 504
126};
127
128nsresult
129GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
130 nsILocalFile** aFile);
131#if defined(XP_MACOSX)
132nsresult
133GetOSXFolderType(short aDomain, OSType aFolderType, nsILocalFile **localFile);
134#endif
135
136#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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