1/* 2 * Copyright 2009, Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _TRANSLATOR_ADD_ON_H 6#define _TRANSLATOR_ADD_ON_H 7 8 9#include <TranslationDefs.h> 10 11 12class BMessage; 13class BView; 14class BRect; 15class BPositionIO; 16 17 18// Deprecated, use BTranslator API instead 19 20extern char translatorName[]; 21extern char translatorInfo[]; 22extern int32 translatorVersion; 23 24extern translation_format inputFormats[]; // optional 25extern translation_format outputFormats[]; // optional 26 27 28extern "C" { 29 30extern status_t Identify(BPositionIO* source, const translation_format* format, 31 BMessage* extension, translator_info* info, uint32 outType); 32extern status_t Translate(BPositionIO* source, const translator_info* info, 33 BMessage* extension, uint32 outType, 34 BPositionIO* destination); 35extern status_t MakeConfig(BMessage* extension, BView** _view, BRect* _frame); 36extern status_t GetConfigMessage(BMessage* extension); 37 38} 39 40 41#endif //_TRANSLATOR_ADD_ON_H 42