// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Inemailaddress.pas' rev: 10.00

#ifndef InemailaddressHPP
#define InemailaddressHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Inexception.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Inemailaddress
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS EIdEmailParseError;
class PASCALIMPLEMENTATION EIdEmailParseError : public Inexception::EInException 
{
	typedef Inexception::EInException inherited;
	
public:
	#pragma option push -w-inl
	/* EInExceptionBase.Create */ inline __fastcall virtual EIdEmailParseError(AnsiString AMsg)/* overload */ : Inexception::EInException(AMsg) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EIdEmailParseError(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Inexception::EInException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EIdEmailParseError(int Ident)/* overload */ : Inexception::EInException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EIdEmailParseError(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Inexception::EInException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EIdEmailParseError(const AnsiString Msg, int AHelpContext) : Inexception::EInException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EIdEmailParseError(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Inexception::EInException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EIdEmailParseError(int Ident, int AHelpContext)/* overload */ : Inexception::EInException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EIdEmailParseError(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Inexception::EInException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EIdEmailParseError(void) { }
	#pragma option pop
	
};


class DELPHICLASS TInEMailAddressItem;
class PASCALIMPLEMENTATION TInEMailAddressItem : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
protected:
	AnsiString FAddress;
	AnsiString FName;
	AnsiString __fastcall GetText();
	void __fastcall SetText(AnsiString AText);
	AnsiString __fastcall ConvertAddress();
	AnsiString __fastcall GetDomain();
	
public:
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property AnsiString Domain = {read=GetDomain};
	
__published:
	__property AnsiString Address = {read=FAddress, write=FAddress};
	__property AnsiString Name = {read=FName, write=FName};
	__property AnsiString Text = {read=GetText, write=SetText};
public:
	#pragma option push -w-inl
	/* TCollectionItem.Create */ inline __fastcall virtual TInEMailAddressItem(Classes::TCollection* Collection) : Classes::TCollectionItem(Collection) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCollectionItem.Destroy */ inline __fastcall virtual ~TInEMailAddressItem(void) { }
	#pragma option pop
	
};


class DELPHICLASS TInEMailAddressList;
class PASCALIMPLEMENTATION TInEMailAddressList : public Classes::TOwnedCollection 
{
	typedef Classes::TOwnedCollection inherited;
	
public:
	TInEMailAddressItem* operator[](int Index) { return Items[Index]; }
	
protected:
	HIDESBASE TInEMailAddressItem* __fastcall GetItem(int Index);
	HIDESBASE void __fastcall SetItem(int Index, const TInEMailAddressItem* Value);
	AnsiString __fastcall GetEMailAddresses();
	void __fastcall SetEMailAddresses(AnsiString AList);
	
public:
	__fastcall TInEMailAddressList(Classes::TPersistent* AOwner);
	void __fastcall FillTStrings(Classes::TStrings* AStrings);
	HIDESBASE TInEMailAddressItem* __fastcall Add(void);
	void __fastcall GetDomains(Classes::TStrings* AStrings);
	void __fastcall SortByDomain(void);
	void __fastcall AddressesByDomain(TInEMailAddressList* AList, const AnsiString ADomain);
	__property TInEMailAddressItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
	__property AnsiString EMailAddresses = {read=GetEMailAddresses, write=SetEMailAddresses};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TInEMailAddressList(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Inemailaddress */
using namespace Inemailaddress;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Inemailaddress
