2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef EXTENSION_WINDOW_H
6 #define EXTENSION_WINDOW_H
17 class FileTypesWindow
;
20 class ExtensionWindow
: public BWindow
{
22 ExtensionWindow(FileTypesWindow
* target
, BMimeType
& type
,
23 const char* extension
);
24 virtual ~ExtensionWindow();
26 virtual void MessageReceived(BMessage
* message
);
32 BTextControl
* fExtensionControl
;
33 BButton
* fAcceptButton
;
36 extern status_t
merge_extensions(BMimeType
& type
, const BList
& newExtensions
,
37 const char* removeExtension
= NULL
);
38 extern status_t
replace_extension(BMimeType
& type
, const char* newExtension
,
39 const char* oldExtension
);
41 #endif // EXTENSION_WINDOW_H