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 11class BFile; 12 13 14extern const char* kSignature; 15 16static const uint32 kMsgOpenFilePanel = 'opFp'; 17 18static const uint32 kMsgOpenTypesWindow = 'opTw'; 19static const uint32 kMsgTypesWindowClosed = 'clTw'; 20 21static const uint32 kMsgOpenApplicationTypesWindow = 'opAw'; 22static const uint32 kMsgApplicationTypesWindowClosed = 'clAw'; 23 24static const uint32 kMsgTypeWindowClosed = 'cltw'; 25static const uint32 kMsgWindowClosed = 'WiCl'; 26 27static const uint32 kMsgSettingsChanged = 'SeCh'; 28 29 30// exported functions 31 32extern bool is_application(BFile& file); 33extern bool is_resource(BFile& file); 34extern 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