//	****************************************************************************
//	*	$VER: Laender.h 1.08 25.02.2000														*
//	****************************************************************************
//	*	Include für MT-Rechnung III, Enthält die die Klasse(n) für die Laender-	*
//	*	spezifischen Einstellungen, soweit es um reine Datenverarbeitung geht.	*
// *	Für die Bildschirmdarstellung und ähnliches ist ein anderes Include zu-	*
// *	ständig.																						*
//	****************************************************************************
//	*	Programmiersprache:	C++																*
//	*	Compiler:				Maxon C++ (Version 3.00)									*
//	*	Portierung:				keine AMIGA-spezifischen Teile							*
//	*	Programmierer:			Manfred Tremmel												*
//	****************************************************************************
//    Copyright (C) 1997-2000 Manfred Tremmel
//
//    This program is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation; either version 2 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program; if not, write to the Free Software
//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA

// Einstellungen Daten
class LaenderDaten
{public:
	UWORD							Status;					// 0	= alles OK
																// 1-0xfffe	= gesperrt
																// 0xffff	= gelöscht
	TEXT							Land[30];				// Name des Landes (Deutschland)
	TEXT							LandKZ[05];				// Laenderkennzeichen (D-)
	TEXT							TelInland[05];			// Inlandvorwahl (0)
	TEXT							TelAusland[05];		// Auslandvorwahl (00)
	TEXT							TelVonAusland[05];	// Landestelefoncode (49)
	UWORD							PAdresseeinez[40];	// Einzeiliges Adressformat Privat
	UWORD							GAdresseeinez[40];	// Einzeiliges Adressformat Firma
	UWORD							PAdressekurz[64];		// Kurzes Adressformat Privat
	UWORD							GAdressekurz[64];		// Kurzes Adressformat Firma
	UWORD							PAdresselang[128];	// Langes Adressformat Privat
	UWORD							GAdresselang[128];	// Langes Adressformat Firma
	TEXT							Bundesland[64] [31];	// Bundeslaender/Staaten
	TEXT							LandSymbol[10];		// Laendersymbol (DEU)
};


class Laender : public DataBase
{
	void UpDateListElement( STRPTR, ULONG );

	ULONG CycleLaenderLaenge;
	STRPTR CycleLGo;

 public:

	ListenClass *LaenderListe;
	STRPTR CycleLaender;

	ULONG				AktDatenPos;
	LaenderDaten	AktDaten;
	LaenderDaten	*Daten;

	Laender( STRPTR, STRPTR, UWORD );
	~Laender();

	void Initialisiere( STRPTR );

	void NeuerDatensatz();
	void UnDo();
	void ReDo();

	BOOL SuchVergleich( DataBaseSearch* );
	void SuchListeAnhaengen(ListenClass*);

	ULONG GetRexx( struct RexxMsg *, ULONG );
	ULONG SetRexx(	struct RexxMsg *, ULONG	);

	void UpDateElement();

	void UpdateSatz( STRPTR );
};

