vfs: check userland buffers before reading them.
[haiku.git] / src / kits / tracker / Commands.h
blob664ee1d04aabff3702ea5b423b72da3354f7a456
1 /*
2 Open Tracker License
4 Terms and Conditions
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.
32 All rights reserved.
34 #ifndef _COMMANDS_H
35 #define _COMMANDS_H
38 #include <MountServer.h>
39 #include <SupportDefs.h>
41 #include <tracker_private.h>
42 // public commands moved here so they may be included by other apps
45 namespace BPrivate {
47 // external app messages
49 const uint32 kGetInfo = 'Tinf';
50 const uint32 kDelete = 'Tdel';
51 const uint32 kRestoreFromTrash = 'Tres';
52 const uint32 kIdentifyEntry = 'Tidt';
53 const uint32 kOpenSelection = 'Tosl';
54 const uint32 kOpenSelectionWith = 'Tosu';
55 const uint32 kCloseAllWindows = 'Tall';
56 const uint32 kCloseWindowAndChildren = 'Tcwc';
57 const uint32 kCloseAllInWorkspace = 'Tciw';
59 // end external app messages
61 const uint32 kOpenPreviouslyOpenWindows = 'Topw';
62 const uint32 kRestoreState = 'Trst';
64 const uint32 kCutMoreSelectionToClipboard = 'Tmvm';
65 const uint32 kCopyMoreSelectionToClipboard = 'Tcpm';
66 const uint32 kPasteLinksFromClipboard = 'Tplc';
67 const uint32 kCancelSelectionToClipboard = 'Tesc';
68 const uint32 kClipboardPosesChanged = 'Tcpc';
70 const uint32 kEditItem = 'Tedt';
71 const uint32 kEditQuery = 'Qedt';
72 const uint32 kNewFolder = 'Tnwf';
73 const uint32 kNewEntryFromTemplate = 'Tnwe';
74 const uint32 kCopySelectionTo = 'Tcsl';
75 const uint32 kMoveSelectionTo = 'Tmsl';
76 const uint32 kCreateLink = 'Tlnk';
77 const uint32 kCreateRelativeLink = 'Trln';
78 const uint32 kDuplicateSelection = 'Tdsl';
79 const uint32 kLoadAddOn = 'Tlda';
80 const uint32 kEmptyTrash = 'Tetr';
81 const uint32 kAddPrinter = 'Tadp';
82 const uint32 kMakeActivePrinter = 'Tmap';
84 const uint32 kRunAutomounterSettings = 'Tram';
86 const uint32 kOpenParentDir = 'Topt';
87 const uint32 kOpenDir = 'Topd';
88 const uint32 kCleanup = 'Tcln';
89 const uint32 kCleanupAll = 'Tcla';
91 const uint32 kArrangeBy = 'ARBY';
92 const uint32 kArrangeReverseOrder = 'ARRO';
94 const uint32 kResizeToFit = 'Trtf';
95 const uint32 kSelectMatchingEntries = 'Tsme';
96 const uint32 kShowSelectionWindow = 'Tssw';
97 const uint32 kShowSettingsWindow = 'Tstw';
98 const uint32 kInvertSelection = 'Tisl';
100 const uint32 kCancelButton = 'Tcnl';
101 const uint32 kDefaultButton = 'Tact';
102 const uint32 kPauseButton = 'Tpaw';
103 const uint32 kStopButton = 'Tstp';
104 const uint32 kCopyAttributes = 'Tcat';
105 const uint32 kPasteAttributes = 'Tpat';
106 const uint32 kAttributeItem = 'Tatr';
107 const uint32 kMIMETypeItem = 'Tmim';
108 const uint32 kAddCurrentDir = 'Tadd';
109 const uint32 kEditFavorites = 'Tedf';
110 const uint32 kSwitchDirectory = 'Tswd';
111 const uint32 kQuitTracker = 'Tqit';
113 const uint32 kSwitchToHome = 'Tswh';
115 const uint32 kTestIconCache = 'TicC';
117 // Observers and Notifiers:
119 // Settings-changed messages:
120 const uint32 kDisksIconChanged = 'Dicn';
121 const uint32 kDesktopIntegrationChanged = 'Dint';
122 const uint32 kShowDisksIconChanged = 'Sdic';
123 const uint32 kVolumesOnDesktopChanged = 'Codc';
124 const uint32 kEjectWhenUnmountingChanged = 'Ewum';
126 const uint32 kWindowsShowFullPathChanged = 'Wsfp';
127 const uint32 kSingleWindowBrowseChanged = 'Osmw';
128 const uint32 kShowNavigatorChanged = 'Snvc';
129 const uint32 kShowSelectionWhenInactiveChanged = 'Sswi';
130 const uint32 kTransparentSelectionChanged = 'Trse';
131 const uint32 kSortFolderNamesFirstChanged = 'Sfnf';
132 const uint32 kHideDotFilesChanged = 'Hdfc';
133 const uint32 kTypeAheadFilteringChanged = 'Tafc';
135 const uint32 kDesktopFilePanelRootChanged = 'Dfpr';
136 const uint32 kFavoriteCountChanged = 'Fvct';
137 const uint32 kFavoriteCountChangedExternally = 'Fvcx';
139 const uint32 kDateFormatChanged = 'Date';
141 const uint32 kUpdateVolumeSpaceBar = 'UpSB';
142 const uint32 kShowVolumeSpaceBar = 'ShSB';
143 const uint32 kSpaceBarColorChanged = 'SBcc';
145 const uint32 kDontMoveFilesToTrashChanged = 'STdm';
146 const uint32 kAskBeforeDeleteFileChanged = 'STad';
148 } // namespace BPrivate
150 using namespace BPrivate;
153 #endif // _COMMANDS_H