6 Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
8 Permission is hereby granted, free of charge, to any person obtaining a copy of
9 this software and associated documentation files (the "Software"), to deal in
10 the Software without restriction, including without limitation the rights to
11 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
12 of the Software, and to permit persons to whom the Software is furnished to do
13 so, subject to the following conditions:
15 The above copyright notice and this permission notice applies to all licensees
16 and shall be included in all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 Except as contained in this notice, the name of Be Incorporated shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings in
27 this Software without prior written authorization from Be Incorporated.
29 Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
30 of Be Incorporated in the United States and other countries. Other brand product
31 names are registered trademarks or trademarks of their respective holders.
40 // viewable attributes
41 #define kAttrStatName "_stat/name"
42 #define kAttrRealName "_stat/realname"
43 #define kAttrStatSize "_stat/size"
44 #define kAttrStatModified "_stat/modified"
45 #define kAttrStatCreated "_stat/created"
46 #define kAttrStatMode "_stat/mode"
47 #define kAttrStatOwner "_stat/owner"
48 #define kAttrStatGroup "_stat/group"
49 #define kAttrPath "_trk/path"
50 #define kAttrOriginalPath "_trk/original_path"
51 #define kAttrAppVersion "_trk/app_version"
52 #define kAttrSystemVersion "_trk/system_version"
53 #define kAttrOpenWithRelation "_trk/open_with_relation"
56 #define kAttrWindowFrame "_trk/windframe"
57 #define kAttrWindowWorkspace "_trk/windwkspc"
58 #define kAttrWindowDecor "_trk/winddecor"
60 #define kAttrQueryString "_trk/qrystr"
61 #define kAttrQueryVolume "_trk/qryvol1"
63 #define kAttrMIMEType "BEOS:TYPE"
64 #define kAttrAppSignature "BEOS:APP_SIG"
65 #define kAttrPreferredApp "BEOS:PREF_APP"
66 #define kAttrLargeIcon "BEOS:L:STD_ICON"
67 #define kAttrMiniIcon "BEOS:M:STD_ICON"
68 #define kAttrIcon "BEOS:ICON"
70 #define kAttrDisksFrame "_trk/d_windframe"
71 #define kAttrDisksWorkspace "_trk/d_windwkspc"
73 #define kAttrOpenWindows "_trk/_windows_to_open_"
75 #define kAttrClippingFile "_trk/_clipping_file_"
78 #define kAttrQueryInitialMode "_trk/qryinitmode"
79 #define kAttrQueryInitialString "_trk/qryinitstr"
80 #define kAttrQueryInitialNumAttrs "_trk/qryinitnumattrs"
81 #define kAttrQueryInitialAttrs "_trk/qryinitattrs"
82 #define kAttrQueryInitialMime "_trk/qryinitmime"
83 #define kAttrQueryLastChange "_trk/qrylastchange"
86 #define kAttrQueryMoreOptions_le "_trk/qrymoreoptions_le"
87 #define kAttrQueryMoreOptions_be "_trk/qrymoreoptions"
89 #define kAttrQueryTemplate "_trk/queryTemplate"
90 #define kAttrQueryTemplateName "_trk/queryTemplateName"
91 #define kAttrDynamicDateQuery "_trk/queryDynamicDate"
92 // attributes that need endian swapping (stored as raw)
94 #define kAttrPoseInfo_be "_trk/pinfo"
95 #define kAttrPoseInfo_le "_trk/pinfo_le"
96 #define kAttrDisksPoseInfo_be "_trk/d_pinfo"
97 #define kAttrDisksPoseInfo_le "_trk/d_pinfo_le"
98 #define kAttrTrashPoseInfo_be "_trk/t_pinfo"
99 #define kAttrTrashPoseInfo_le "_trk/t_pinfo_le"
100 #define kAttrColumns_be "_trk/columns"
101 #define kAttrColumns_le "_trk/columns_le"
102 #define kAttrViewState_be "_trk/viewstate"
103 #define kAttrViewState_le "_trk/viewstate_le"
104 #define kAttrDisksViewState_be "_trk/d_viewstate"
105 #define kAttrDisksViewState_le "_trk/d_viewstate_le"
106 #define kAttrDesktopViewState_be "_trk/desk_viewstate"
107 #define kAttrDesktopViewState_le "_trk/desk_viewstate_le"
108 #define kAttrDisksColumns_be "_trk/d_columns"
109 #define kAttrDisksColumns_le "_trk/d_columns_le"
111 #define kAttrExtendedPoseInfo_be "_trk/xtpinfo"
112 #define kAttrExtendedPoseInfo_le "_trk/xtpinfo_le"
113 #define kAttrExtendedDisksPoseInfo_be "_trk/xt_d_pinfo"
114 #define kAttrExtendedDisksPoseInfo_le "_trk/xt_d_pinfo_le"
116 #if B_HOST_IS_LENDIAN
117 #define kEndianSuffix "_le"
118 #define kForeignEndianSuffix ""
120 #define kAttrDisksPoseInfo kAttrDisksPoseInfo_le
121 #define kAttrDisksPoseInfoForeign kAttrDisksPoseInfo_be
123 #define kAttrTrashPoseInfo kAttrTrashPoseInfo_le
124 #define kAttrTrashPoseInfoForeign kAttrTrashPoseInfo_be
126 #define kAttrPoseInfo kAttrPoseInfo_le
127 #define kAttrPoseInfoForeign kAttrPoseInfo_be
129 #define kAttrColumns kAttrColumns_le
130 #define kAttrColumnsForeign kAttrColumns_be
132 #define kAttrViewState kAttrViewState_le
133 #define kAttrViewStateForeign kAttrViewState_be
135 #define kAttrDisksViewState kAttrDisksViewState_le
136 #define kAttrDisksViewStateForeign kAttrDisksViewState_be
138 #define kAttrDisksColumns kAttrDisksColumns_le
139 #define kAttrDisksColumnsForeign kAttrDisksColumns_be
141 #define kAttrDesktopViewState kAttrDesktopViewState_le
142 #define kAttrDesktopViewStateForeign kAttrDesktopViewState_be
144 #define kAttrQueryMoreOptions kAttrQueryMoreOptions_le
145 #define kAttrQueryMoreOptionsForeign kAttrQueryMoreOptions_be
146 #define kAttrExtendedPoseInfo kAttrExtendedPoseInfo_le
147 #define kAttrExtendedPoseInfoForegin kAttrExtendedPoseInfo_be
148 #define kAttrExtendedDisksPoseInfo kAttrExtendedDisksPoseInfo_le
149 #define kAttrExtendedDisksPoseInfoForegin kAttrExtendedDisksPoseInfo_be
152 #define kEndianSuffix ""
153 #define kForeignEndianSuffix "_le"
155 #define kAttrDisksPoseInfo kAttrDisksPoseInfo_be
156 #define kAttrDisksPoseInfoForeign kAttrDisksPoseInfo_le
158 #define kAttrTrashPoseInfo kAttrTrashPoseInfo_be
159 #define kAttrTrashPoseInfoForeign kAttrTrashPoseInfo_le
161 #define kAttrPoseInfo kAttrPoseInfo_be
162 #define kAttrPoseInfoForeign kAttrPoseInfo_le
164 #define kAttrColumns kAttrColumns_be
165 #define kAttrColumnsForeign kAttrColumns_le
167 #define kAttrViewState kAttrViewState_be
168 #define kAttrViewStateForeign kAttrViewState_le
170 #define kAttrDisksViewState kAttrDisksViewState_be
171 #define kAttrDisksViewStateForeign kAttrDisksViewState_le
173 #define kAttrDisksColumns kAttrDisksColumns_be
174 #define kAttrDisksColumnsForeign kAttrDisksColumns_le
176 #define kAttrDesktopViewState kAttrViewState_be
177 #define kAttrDesktopViewStateForeign kAttrViewState_le
179 #define kAttrQueryMoreOptions kAttrQueryMoreOptions_be
180 #define kAttrQueryMoreOptionsForeign kAttrQueryMoreOptions_le
181 #define kAttrExtendedPoseInfo kAttrExtendedPoseInfo_be
182 #define kAttrExtendedPoseInfoForegin kAttrExtendedPoseInfo_le
183 #define kAttrExtendedDisksPoseInfo kAttrExtendedDisksPoseInfo_be
184 #define kAttrExtendedDisksPoseInfoForegin kAttrExtendedDisksPoseInfo_le
188 } // namespace BPrivate
190 using namespace BPrivate
;
193 #endif // _ATTRIBUTES_H