From 1adf927f76a621a6e3b9626bb94b2fe2585cf5ea Mon Sep 17 00:00:00 2001 From: Matthew Wilber Date: Sat, 12 Feb 2005 14:33:31 +0000 Subject: [PATCH] Moved FuncTranslator.h to private headers since it is not intended for the user. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11357 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/translation/FuncTranslator.h | 99 ----------------------- headers/os/translation/TranslatorRoster.h | 1 - 2 files changed, 100 deletions(-) delete mode 100644 headers/os/translation/FuncTranslator.h diff --git a/headers/os/translation/FuncTranslator.h b/headers/os/translation/FuncTranslator.h deleted file mode 100644 index 7ce9845bb0..0000000000 --- a/headers/os/translation/FuncTranslator.h +++ /dev/null @@ -1,99 +0,0 @@ -/*****************************************************************************/ -// File: FuncTranslator.h -// Class: BFuncTranslator -// Author: Michael Wilber, Translation Kit Team -// Originally Created: 2002-06-11 -// -// Description: This header file contains the BTranslator based object for -// function based translators, aka, the translators -// that don't use the make_nth_translator() mechanism. -// -// This class is used by the OpenBeOS BTranslatorRoster -// so that function based translators, make_nth_translator() -// translators and private BTranslator objects could be -// accessed in the same way. -// -// -// Copyright (c) 2002 OpenBeOS Project -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the "Software"), -// to deal in the Software without restriction, including without limitation -// the rights to use, copy, modify, merge, publish, distribute, sublicense, -// and/or sell copies of the Software, and to permit persons to whom the -// Software is furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -// DEALINGS IN THE SOFTWARE. -/*****************************************************************************/ - -#ifndef _FUNC_TRANSLATOR_H -#define _FUNC_TRANSLATOR_H - -#include -#include -#include - -class BFuncTranslator : public BTranslator { -public: - BFuncTranslator(const translator_data *kpData); - // assigns the translator to the object - - virtual const char *TranslatorName() const; - // returns the short translator name - - virtual const char *TranslatorInfo() const; - // returns the verbose translator name/description - - virtual int32 TranslatorVersion() const; - // returns the translator's version - - virtual const translation_format *InputFormats(int32 *out_count) const; - // returns the list of supported input formats - - virtual const translation_format *OutputFormats(int32 *out_count) const; - // returns the list of supported output formats - - virtual status_t Identify(BPositionIO *inSource, - const translation_format *inFormat, BMessage *ioExtension, - translator_info *outInfo, uint32 outType); - // identifies wether or not the translator can handle - // translating the data in inSource - - virtual status_t Translate(BPositionIO *inSource, - const translator_info *inInfo, BMessage *ioExtension, uint32 outType, - BPositionIO * outDestination); - // translates the data from inSource to outDestination - // in the format outType - - virtual status_t MakeConfigurationView(BMessage *ioExtension, - BView **outView, BRect *outExtent); - // creates a view object that allows the user to change - // the translator's options - // (not required to be in all translators) - - virtual status_t GetConfigurationMessage(BMessage *ioExtension); - // returns the current settings of the translator - // (not required to be in all translators) - -protected: - virtual ~BFuncTranslator(); - // This object is deleted by calling Release(), - // it can not be deleted directly. See BTranslator in the Be Book - -private: - translator_data *fpData; - // This contains all of the member variables used by this class. - // It also contains pointers to functions that the member functions - // use to do all of the actual work for this class. -}; - -#endif // _FUNC_TRANSLATOR_H diff --git a/headers/os/translation/TranslatorRoster.h b/headers/os/translation/TranslatorRoster.h index 900fe3f54d..6221e9aa85 100644 --- a/headers/os/translation/TranslatorRoster.h +++ b/headers/os/translation/TranslatorRoster.h @@ -58,7 +58,6 @@ #include #include #include -#include struct translation_format;