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 PREFERRED_APP_MENU_H 6 #define PREFERRED_APP_MENU_H 7 8 9 #include <SupportDefs.h> 10 11 class BMenu; 12 class BMessage; 13 class BMimeType; 14 class BString; 15 16 void update_preferred_app_menu(BMenu* menu, BMimeType* type, uint32 what, 17 const char* preferredFrom = NULL); 18 19 status_t retrieve_preferred_app(BMessage* message, bool sameAs, 20 const char* forType, BString& preferredApp); 21 22 #endif // PREFERRED_APP_MENU_H 23