1/*
2Open Tracker License
3
4Terms and Conditions
5
6Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
7
8Permission is hereby granted, free of charge, to any person obtaining a copy of
9this software and associated documentation files (the "Software"), to deal in
10the Software without restriction, including without limitation the rights to
11use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
12of the Software, and to permit persons to whom the Software is furnished to do
13so, subject to the following conditions:
14
15The above copyright notice and this permission notice applies to all licensees
16and shall be included in all copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
23WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25Except as contained in this notice, the name of Be Incorporated shall not be
26used in advertising or otherwise to promote the sale, use or other dealings in
27this Software without prior written authorization from Be Incorporated.
28
29Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
30of Be Incorporated in the United States and other countries. Other brand product
31names are registered trademarks or trademarks of their respective holders.
32All rights reserved.
33*/
34
35
36#include <FilePanel.h>
37
38#include "FilePanelPriv.h"
39#include "RecentItems.h"
40#include "FSUtils.h"
41
42
43// FBC fluff, stick it here to not pollute real .cpp files
44
45void BRecentItemsList::_r1() {}
46void BRecentItemsList::_r2() {}
47void BRecentItemsList::_r3() {}
48void BRecentItemsList::_r4() {}
49void BRecentItemsList::_r5() {}
50void BRecentItemsList::_r6() {}
51void BRecentItemsList::_r7() {}
52void BRecentItemsList::_r8() {}
53void BRecentItemsList::_r9() {}
54void BRecentItemsList::_r10() {}
55void BRecentFilesList::_r11() {}
56void BRecentFilesList::_r12() {}
57void BRecentFilesList::_r13() {}
58void BRecentFilesList::_r14() {}
59void BRecentFilesList::_r15() {}
60void BRecentFilesList::_r16() {}
61void BRecentFilesList::_r17() {}
62void BRecentFilesList::_r18() {}
63void BRecentFilesList::_r19() {}
64void BRecentFilesList::_r110() {}
65void BRecentFoldersList::_r21() {}
66void BRecentFoldersList::_r22() {}
67void BRecentFoldersList::_r23() {}
68void BRecentFoldersList::_r24() {}
69void BRecentFoldersList::_r25() {}
70void BRecentFoldersList::_r26() {}
71void BRecentFoldersList::_r27() {}
72void BRecentFoldersList::_r28() {}
73void BRecentFoldersList::_r29() {}
74void BRecentFoldersList::_r210() {}
75void BRecentAppsList::_r31() {}
76void BRecentAppsList::_r32() {}
77void BRecentAppsList::_r33() {}
78void BRecentAppsList::_r34() {}
79void BRecentAppsList::_r35() {}
80void BRecentAppsList::_r36() {}
81void BRecentAppsList::_r37() {}
82void BRecentAppsList::_r38() {}
83void BRecentAppsList::_r39() {}
84void BRecentAppsList::_r310() {}
85
86void BFilePanel::_ReservedFilePanel1() {}
87void BFilePanel::_ReservedFilePanel2() {}
88void BFilePanel::_ReservedFilePanel3() {}
89void BFilePanel::_ReservedFilePanel4() {}
90void BFilePanel::_ReservedFilePanel5() {}
91void BFilePanel::_ReservedFilePanel6() {}
92void BFilePanel::_ReservedFilePanel7() {}
93void BFilePanel::_ReservedFilePanel8() {}
94
95// deprecated cruft
96
97#if __GNUC__ && __GNUC__ < 3
98extern "C" {
99
100_EXPORT void
101run_open_panel__Fv()
102{
103	(new TFilePanel())->Show();
104}
105
106
107_EXPORT void
108run_save_panel__Fv()
109{
110	(new TFilePanel(B_SAVE_PANEL))->Show();
111}
112
113_EXPORT BFilePanel*
114__10BFilePanel15file_panel_modeP10BMessengerP9entry_refUlbP8BMessageP10BRefFilterT5T5
115(void* self,
116	file_panel_mode mode, BMessenger* target,
117	entry_ref* ref, uint32 nodeFlavors, bool multipleSelection,
118	BMessage* message, BRefFilter* filter, bool modal,
119	bool hideWhenDone)
120{
121	return new (self) BFilePanel(mode, target, ref, nodeFlavors,
122								 multipleSelection, message, filter, modal,
123								 hideWhenDone);
124}
125
126_EXPORT void
127SetPanelDirectory__10BFilePanelP10BDirectory(BFilePanel* self, BDirectory* d)
128{
129	self->SetPanelDirectory(d);
130}
131
132_EXPORT void
133SetPanelDirectory__10BFilePanelP6BEntry(BFilePanel* self, BEntry* e)
134{
135	self->SetPanelDirectory(e);
136}
137
138_EXPORT void
139SetPanelDirectory__10BFilePanelP9entry_ref(BFilePanel* self, entry_ref* r)
140{
141	self->SetPanelDirectory(r);
142}
143
144_EXPORT status_t
145FSGetDeskDir__8BPrivateP10BDirectoryl(BDirectory* deskDir, dev_t)
146{
147	// since we no longer keep a desktop directory on any volume other
148	// than /boot, redirect to FSGetDeskDir ignoring the volume argument
149	return FSGetDeskDir(deskDir);
150}
151
152_EXPORT status_t
153FSGetDeskDir__FP10BDirectoryl(BDirectory* deskDir, dev_t)
154{
155	return FSGetDeskDir(deskDir);
156}
157
158_EXPORT status_t
159FSCopyAttributesAndStats__8BPrivateP5BNodeT1(BNode* srcNode, BNode* destNode)
160{
161	return FSCopyAttributesAndStats(srcNode, destNode);
162}
163
164_EXPORT status_t
165FSGetTrashDir__FP10BDirectoryl(BDirectory* trashDir, dev_t volume)
166{
167	return FSGetTrashDir(trashDir, volume);
168}
169
170}
171#endif
172