 
#ifndef mhmailbox_DEFINED
#define mhmailbox_DEFINED 1
 
#include <class.h>
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from mhmlbox.ch and will be
 * overwritten.  Make changes to mhmlbox.ch instead.
 */ 
 
/* 
 * The following information was copied, as-is, from mhmlbox.ch.
 */ 
 






/* 
 * End of information copied from mhmlbox.ch.
 */ 
 
/* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_msgmailbox
#include "msgmlbox.ih"
#undef dontDefineRoutinesFor_msgmailbox

 
 
/* 
 * Data structure for mhmailbox 
 */ 
struct mhmailbox { 
    union {
	struct basicobject_methods *mhmailbox_methods;
	struct msgmailbox msgmailbox;
    } header;
    char *sourcePath;

};

 
/* 
 * End of data structure for mhmailbox.
 */ 
 


#ifndef mhmailbox_PROGRAMMERVERSION
#define mhmailbox_PROGRAMMERVERSION 1
#endif /* mhmailbox_PROGRAMMERVERSION */

#ifdef mhmailbox_VERSION
#undef mhmailbox_VERSION
#endif /* mhmailbox_VERSION */
#define mhmailbox_VERSION ((((mhmailbox_PROGRAMMERVERSION << 16) ^ (9 << 8) ^ sizeof(struct mhmailbox)) & 0x7ffff) + 0x80000 + (1 << 20))

#define mhmailbox_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *mhmailbox__GetClassInfo(); \
  (void) class_EnterInfo(NULL, mhmailbox_classheader.name, mhmailbox__GetClassInfo, NULL, mhmailbox_classheader.namekey); } 
 
#define mhmailbox_StaticLoad()  \
    { \
    msgmailbox_StaticLoad(); \
    mhmailbox_StaticLoadOnlyThisClass();  \
    } 
 
#define mhmailbox_StaticEntry  {mhmailbox_StaticLoad()} 
 
static struct classheader mhmailbox_classheader = {
    mhmailbox_VERSION,
    "mhmailbox",
    "mhmlbox",
    (struct basicobject_methods *) &class_RoutineStruct,
};


#endif /* mhmailbox_DEFINED */

#if !defined(mhmailbox_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_mhmailbox) && !defined(class_StaticEntriesOnly)
#define mhmailbox_ROUTINESDEFINED

#define mhmailbox_IsThereNewMail(self) \
    ((* ((boolean (*)())((self)->header.mhmailbox_methods->routines[0]))) (self))
#define mhmailbox_CountOfNewMail(self) \
    ((* ((long (*)())((self)->header.mhmailbox_methods->routines[1]))) (self))
#define mhmailbox_ProcessNewMail(self,numGood,numBad,numLocked,firstError,errorBuf,bufferSize) \
    ((* ((boolean (*)())((self)->header.mhmailbox_methods->routines[2]))) (self,numGood,numBad,numLocked,firstError,errorBuf,bufferSize))
#define mhmailbox_SetDatabase(self,database) \
    ((* ((void (*)())((self)->header.mhmailbox_methods->routines[3]))) (self,database))
#define mhmailbox_GetDatabase(self) \
    ((* ((struct msgdatabase * (*)())((self)->header.mhmailbox_methods->routines[4]))) (self))
#define mhmailbox_SetFolderName(self,folderName) \
    ((* ((void (*)())((self)->header.mhmailbox_methods->routines[5]))) (self,folderName))
#define mhmailbox_GetFolderName(self) \
    ((* ((char * (*)())((self)->header.mhmailbox_methods->routines[6]))) (self))
#define mhmailbox_SetSource(self,sourcePath) \
    ((* ((void (*)())((self)->header.mhmailbox_methods->routines[7]))) (self,sourcePath))
#define mhmailbox_GetSource(self) \
    ((* ((char * (*)())((self)->header.mhmailbox_methods->routines[8]))) (self))

#define mhmailbox_NewFromObject(self) \
    ((* ((struct mhmailbox * (*)())((self)->header.mhmailbox_methods->info->procs->routines[0]))) (&mhmailbox_classheader, (self)->header.mhmailbox_methods->info->versionnumber))
#define mhmailbox_New() \
    (*((struct mhmailbox * (*)()) (mhmailbox_classheader.classprocedures->routines[0])))(&mhmailbox_classheader,mhmailbox_VERSION)
#define mhmailbox_Initialize(self) \
    (*((void (*)()) (mhmailbox_classheader.classprocedures->routines[2])))(&mhmailbox_classheader,self, mhmailbox_VERSION)

#define mhmailbox_Destroy(self) \
    ((* ((void (*)()) ((self)->header.mhmailbox_methods->info->procs->routines[1]))) (&mhmailbox_classheader, self))
#define mhmailbox_Finalize(self) \
    (*((void (*)()) (mhmailbox_classheader.classprocedures->routines[3])))(&mhmailbox_classheader,self)

#define mhmailbox_InitializeObject(self) \
    (*((boolean (*)()) (mhmailbox_classheader.classprocedures->routines[4])))(&mhmailbox_classheader,self)
#define mhmailbox_FinalizeObject(self) \
    (*((void (*)()) (mhmailbox_classheader.classprocedures->routines[5])))(&mhmailbox_classheader,self)


#endif /* !defined(mhmailbox_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_mhmailbox ) && !defined(class_StaticEntriesOnly)*/

