1 /* 2 Open Tracker License 3 4 Terms and Conditions 5 6 Copyright (c) 1991-2000, Be Incorporated. All rights reserved. 7 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: 14 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. 17 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. 24 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. 28 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. 32 All rights reserved. 33 */ 34 35 #ifndef _ATTRIBUTES_H 36 #define _ATTRIBUTES_H 37 38 namespace BPrivate { 39 40 // viewable attributes 41 #define kAttrStatName "_stat/name" 42 #define kAttrStatSize "_stat/size" 43 #define kAttrStatModified "_stat/modified" 44 #define kAttrStatCreated "_stat/created" 45 #define kAttrStatMode "_stat/mode" 46 #define kAttrStatOwner "_stat/owner" 47 #define kAttrStatGroup "_stat/group" 48 #define kAttrPath "_trk/path" 49 #define kAttrOriginalPath "_trk/original_path" 50 #define kAttrAppVersion "_trk/app_version" 51 #define kAttrSystemVersion "_trk/system_version" 52 #define kAttrOpenWithRelation "_trk/open_with_relation" 53 54 // private attributes 55 #define kAttrWindowFrame "_trk/windframe" 56 #define kAttrWindowWorkspace "_trk/windwkspc" 57 #define kAttrWindowDecor "_trk/winddecor" 58 59 #define kAttrQueryString "_trk/qrystr" 60 #define kAttrQueryVolume "_trk/qryvol1" 61 62 #define kAttrMIMEType "BEOS:TYPE" 63 #define kAttrAppSignature "BEOS:APP_SIG" 64 #define kAttrPreferredApp "BEOS:PREF_APP" 65 #define kAttrLargeIcon "BEOS:L:STD_ICON" 66 #define kAttrMiniIcon "BEOS:M:STD_ICON" 67 #define kAttrIcon "BEOS:ICON" 68 69 #define kAttrDisksFrame "_trk/d_windframe" 70 #define kAttrDisksWorkspace "_trk/d_windwkspc" 71 72 #define kAttrOpenWindows "_trk/_windows_to_open_" 73 74 #define kAttrClippingFile "_trk/_clipping_file_" 75 76 77 #define kAttrQueryInitialMode "_trk/qryinitmode" 78 #define kAttrQueryInitialString "_trk/qryinitstr" 79 #define kAttrQueryInitialNumAttrs "_trk/qryinitnumattrs" 80 #define kAttrQueryInitialAttrs "_trk/qryinitattrs" 81 #define kAttrQueryInitialMime "_trk/qryinitmime" 82 #define kAttrQueryLastChange "_trk/qrylastchange" 83 84 85 #define kAttrQueryMoreOptions_le "_trk/qrymoreoptions_le" 86 #define kAttrQueryMoreOptions_be "_trk/qrymoreoptions" 87 88 #define kAttrQueryTemplate "_trk/queryTemplate" 89 #define kAttrQueryTemplateName "_trk/queryTemplateName" 90 #define kAttrDynamicDateQuery "_trk/queryDynamicDate" 91 // attributes that need endian swapping (stored as raw) 92 93 #define kAttrPoseInfo_be "_trk/pinfo" 94 #define kAttrPoseInfo_le "_trk/pinfo_le" 95 #define kAttrDisksPoseInfo_be "_trk/d_pinfo" 96 #define kAttrDisksPoseInfo_le "_trk/d_pinfo_le" 97 #define kAttrColumns_be "_trk/columns" 98 #define kAttrColumns_le "_trk/columns_le" 99 #define kAttrViewState_be "_trk/viewstate" 100 #define kAttrViewState_le "_trk/viewstate_le" 101 #define kAttrDisksViewState_be "_trk/d_viewstate" 102 #define kAttrDisksViewState_le "_trk/d_viewstate_le" 103 #define kAttrDisksColumns_be "_trk/d_columns" 104 #define kAttrDisksColumns_le "_trk/d_columns_le" 105 106 #define kAttrExtendedPoseInfo_be "_trk/xtpinfo" 107 #define kAttrExtendedPoseInfo_le "_trk/xtpinfo_le" 108 #define kAttrExtendedDisksPoseInfo_be "_trk/xt_d_pinfo" 109 #define kAttrExtendedDisksPoseInfo_le "_trk/xt_d_pinfo_le" 110 111 #if B_HOST_IS_LENDIAN 112 #define kEndianSuffix "_le" 113 #define kForeignEndianSuffix "" 114 115 #define kAttrDisksPoseInfo kAttrDisksPoseInfo_le 116 #define kAttrDisksPoseInfoForeign kAttrDisksPoseInfo_be 117 118 #define kAttrPoseInfo kAttrPoseInfo_le 119 #define kAttrPoseInfoForeign kAttrPoseInfo_be 120 121 #define kAttrColumns kAttrColumns_le 122 #define kAttrColumnsForeign kAttrColumns_be 123 124 #define kAttrViewState kAttrViewState_le 125 #define kAttrViewStateForeign kAttrViewState_be 126 127 #define kAttrDisksViewState kAttrDisksViewState_le 128 #define kAttrDisksViewStateForeign kAttrDisksViewState_be 129 130 #define kAttrDisksColumns kAttrDisksColumns_le 131 #define kAttrDisksColumnsForeign kAttrDisksColumns_be 132 133 #define kAttrQueryMoreOptions kAttrQueryMoreOptions_le 134 #define kAttrQueryMoreOptionsForeign kAttrQueryMoreOptions_be 135 #define kAttrExtendedPoseInfo kAttrExtendedPoseInfo_le 136 #define kAttrExtendedPoseInfoForegin kAttrExtendedPoseInfo_be 137 #define kAttrExtendedDisksPoseInfo kAttrExtendedDisksPoseInfo_le 138 #define kAttrExtendedDisksPoseInfoForegin kAttrExtendedDisksPoseInfo_be 139 140 #else 141 #define kEndianSuffix "" 142 #define kForeignEndianSuffix "_le" 143 144 #define kAttrDisksPoseInfo kAttrDisksPoseInfo_be 145 #define kAttrDisksPoseInfoForeign kAttrDisksPoseInfo_le 146 147 #define kAttrPoseInfo kAttrPoseInfo_be 148 #define kAttrPoseInfoForeign kAttrPoseInfo_le 149 150 #define kAttrColumns kAttrColumns_be 151 #define kAttrColumnsForeign kAttrColumns_le 152 153 #define kAttrViewState kAttrViewState_be 154 #define kAttrViewStateForeign kAttrViewState_le 155 156 #define kAttrDisksViewState kAttrDisksViewState_be 157 #define kAttrDisksViewStateForeign kAttrDisksViewState_le 158 159 #define kAttrDisksColumns kAttrDisksColumns_be 160 #define kAttrDisksColumnsForeign kAttrDisksColumns_le 161 162 #define kAttrQueryMoreOptions kAttrQueryMoreOptions_be 163 #define kAttrQueryMoreOptionsForeign kAttrQueryMoreOptions_le 164 #define kAttrExtendedPoseInfo kAttrExtendedPoseInfo_be 165 #define kAttrExtendedPoseInfoForegin kAttrExtendedPoseInfo_le 166 #define kAttrExtendedDisksPoseInfo kAttrExtendedDisksPoseInfo_be 167 #define kAttrExtendedDisksPoseInfoForegin kAttrExtendedDisksPoseInfo_le 168 169 #endif 170 171 } // namespace BPrivate 172 173 using namespace BPrivate; 174 175 #endif 176