2009-08-27 18:20:56 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifndef _TRANSLATOR_ADD_ON_H
|
|
|
|
#define _TRANSLATOR_ADD_ON_H
|
|
|
|
|
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
#include <TranslationDefs.h>
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
|
2007-10-16 00:13:55 +04:00
|
|
|
class BMessage;
|
2002-07-09 16:24:59 +04:00
|
|
|
class BView;
|
|
|
|
class BRect;
|
|
|
|
class BPositionIO;
|
|
|
|
|
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
// Deprecated, use BTranslator API instead
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
extern char translatorName[];
|
|
|
|
extern char translatorInfo[];
|
|
|
|
extern int32 translatorVersion;
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
extern translation_format inputFormats[]; // optional
|
|
|
|
extern translation_format outputFormats[]; // optional
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
extern "C" {
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
extern status_t Identify(BPositionIO* source, const translation_format* format,
|
|
|
|
BMessage* extension, translator_info* info, uint32 outType);
|
|
|
|
extern status_t Translate(BPositionIO* source, const translator_info* info,
|
|
|
|
BMessage* extension, uint32 outType,
|
|
|
|
BPositionIO* destination);
|
|
|
|
extern status_t MakeConfig(BMessage* extension, BView** _view, BRect* _frame);
|
|
|
|
extern status_t GetConfigMessage(BMessage* extension);
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-08-27 18:20:56 +04:00
|
|
|
#endif //_TRANSLATOR_ADD_ON_H
|