xref: /haiku/src/preferences/filetypes/FileTypes.h (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
1 /*
2  * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef FILE_TYPES_H
6 #define FILE_TYPES_H
7 
8 
9 #include <Alert.h>
10 
11 class BFile;
12 
13 
14 extern const char* kSignature;
15 
16 static const uint32 kMsgOpenFilePanel = 'opFp';
17 
18 static const uint32 kMsgOpenTypesWindow = 'opTw';
19 static const uint32 kMsgTypesWindowClosed = 'clTw';
20 
21 static const uint32 kMsgOpenApplicationTypesWindow = 'opAw';
22 static const uint32 kMsgApplicationTypesWindowClosed = 'clAw';
23 
24 static const uint32 kMsgTypeWindowClosed = 'cltw';
25 static const uint32 kMsgWindowClosed = 'WiCl';
26 
27 static const uint32 kMsgSettingsChanged = 'SeCh';
28 
29 
30 // exported functions
31 
32 extern bool is_application(BFile& file);
33 extern bool is_resource(BFile& file);
34 extern void error_alert(const char* message, status_t status = B_OK,
35 	alert_type type = B_WARNING_ALERT);
36 
37 #endif	// FILE_TYPES_H
38