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

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

#ifndef Idreplyimap4HPP
#define Idreplyimap4HPP

#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 <Idreply.hpp>	// Pascal unit
#include <Idreplyrfc.hpp>	// Pascal unit
#include <Idobjs.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Idexception.hpp>	// Pascal unit

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

namespace Idreplyimap4
{
//-- type declarations -------------------------------------------------------
typedef AnsiString IdReplyIMAP4__1[6];

class DELPHICLASS TIdReplyIMAP4;
class PASCALIMPLEMENTATION TIdReplyIMAP4 : public Idreply::TIdReply 
{
	typedef Idreply::TIdReply inherited;
	
protected:
	AnsiString FSequenceNumber;
	Classes::TStrings* FExtra;
	Classes::TStrings* __fastcall GetExtra(void);
	virtual Classes::TStrings* __fastcall GetFormattedReply(void);
	virtual void __fastcall SetFormattedReply(const Classes::TStrings* AValue);
	virtual bool __fastcall CheckIfCodeIsValid(const AnsiString ACode);
	
public:
	__fastcall virtual TIdReplyIMAP4(Classes::TCollection* ACollection, Idreply::TIdReplies* AReplyTexts)/* overload */;
	__fastcall virtual ~TIdReplyIMAP4(void);
	virtual void __fastcall Clear(void);
	virtual void __fastcall RaiseReplyError(void);
	void __fastcall DoReplyError(AnsiString ADescription, AnsiString AnOffendingLine = "");
	void __fastcall RemoveUnsolicitedResponses(AnsiString * AExpectedResponses, const int AExpectedResponses_Size);
	bool __fastcall DoesLineHaveExpectedResponse(AnsiString ALine, AnsiString * AExpectedResponses, const int AExpectedResponses_Size);
	bool __fastcall IsItAValidSequenceNumber(const AnsiString AValue);
	bool __fastcall IsItANumber(const AnsiString AValue);
	bool __fastcall ParseRequest(AnsiString ARequest);
	__property int NumericCode = {read=GetNumericCode, write=SetNumericCode, nodefault};
	__property Classes::TStrings* Extra = {read=GetExtra};
	__property AnsiString SequenceNumber = {read=FSequenceNumber};
};


class DELPHICLASS TIdRepliesIMAP4;
class PASCALIMPLEMENTATION TIdRepliesIMAP4 : public Idreply::TIdReplies 
{
	typedef Idreply::TIdReplies inherited;
	
public:
	__fastcall TIdRepliesIMAP4(Classes::TPersistent* AOwner);
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TIdRepliesIMAP4(void) { }
	#pragma option pop
	
};


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


//-- var, const, procedure ---------------------------------------------------
#define IMAP_OK "OK"
#define IMAP_NO "NO"
#define IMAP_BAD "BAD"
#define IMAP_PREAUTH "PREAUTH"
#define IMAP_BYE "BYE"
static const char IMAP_CONT = '\x2b';
extern PACKAGE AnsiString VALID_TAGGEDREPLIES[6];

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

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