 
#ifndef amsn_DEFINED
#define amsn_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from amsn.ch and will be
 * overwritten.  Make changes to amsn.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from amsn.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


/* Until I come up with a better scheme, new functions here have to be added to SIX files -- ams.ch, amss.ch, amsn.ch (all identical specs) and the corresponding c files */ 







/* 
 * End of information copied from amsn.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_ams
#include "ams.ih"
#undef dontDefineRoutinesFor_ams

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for amsn 
 */ 
struct amsn { 
    union {
	struct basicobject_methods *amsn_methods;
	struct ams ams;
    } header;
};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef amsn_PROGRAMMERVERSION
#define amsn_PROGRAMMERVERSION 1
#endif /* amsn_PROGRAMMERVERSION */

#ifdef amsn_VERSION
#undef amsn_VERSION
#endif /* amsn_VERSION */
#define amsn_VERSION ((((amsn_PROGRAMMERVERSION << 16) ^ (94 << 8) ^ sizeof(struct amsn)) & 0x7ffff) + 0x80000 + (1 << 20))


#endif /* class_StaticInfoOnly */
#define amsn_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *amsn__GetClassInfo(); \
 extern struct classheader *amsn_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, amsn_classheader_StaticExport->name, amsn__GetClassInfo, NULL, amsn_classheader_StaticExport->namekey); } 
 
#define amsn_StaticLoad()  \
    { \
    ams_StaticLoad(); \
    amsn_StaticLoadOnlyThisClass();  \
    } 
 
#define amsn_StaticEntry  {amsn_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader amsn_classheader = {
    amsn_VERSION,
    "amsn",
    "amsn",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define amsn_CLASSPROCEDURES (amsn_classheader.classprocedures)
int amsn_classref_;
#endif /* class_StaticInfoOnly */

#endif /* amsn_DEFINED */

#if !defined(amsn_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_amsn) && !defined(class_StaticEntriesOnly)
#define amsn_ROUTINESDEFINED

#define amsn_GenericCompoundAction(self,v,prefix,cmds) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[0]))) (self,v,prefix,cmds))
#define amsn_GetBooleanFromUser(self,prompt,defaultans) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[1]))) (self,prompt,defaultans))
#define amsn_GetStringFromUser(self,prompt,buf,len,IsPassword) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[2]))) (self,prompt,buf,len,IsPassword))
#define amsn_ChooseFromList(self,QVec,defans) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[3]))) (self,QVec,defans))
#define amsn_ReportError(self,text,level,Decode,mserrcode) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[4]))) (self,text,level,Decode,mserrcode))
#define amsn_ReportSuccess(self,text) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[5]))) (self,text))
#define amsn_TildeResolve(self,in,out) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[6]))) (self,in,out))
#define amsn_OnlyMail(self) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[7]))) (self))
#define amsn_ap_Shorten(self,fname) \
    ((* ((char* (*)())((self)->header.amsn_methods->routines[8]))) (self,fname))
#define amsn_fwriteallchars(self,s,len,fp) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[9]))) (self,s,len,fp))
#define amsn_mserrcode(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[10]))) (self))
#define amsn_vdown(self,errno) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[11]))) (self,errno))
#define amsn_CUI_BuildNickName(self,shortname,longname) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[12]))) (self,shortname,longname))
#define amsn_CUI_CheckMailboxes(self,forwhat) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[13]))) (self,forwhat))
#define amsn_CUI_CloneMessage(self,cuid,DirName,code) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[14]))) (self,cuid,DirName,code))
#define amsn_CUI_CreateNewMessageDirectory(self,dir,bodydir) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[15]))) (self,dir,bodydir))
#define amsn_CUI_DeleteMessage(self,cuid) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[16]))) (self,cuid))
#define amsn_CUI_DeliveryType(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[17]))) (self))
#define amsn_CUI_DirectoriesToPurge(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[18]))) (self))
#define amsn_CUI_DisambiguateDir(self,shortname,longname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[19]))) (self,shortname,longname))
#define amsn_CUI_DoesDirNeedPurging(self,name) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[20]))) (self,name))
#define amsn_CUI_EndConversation(self) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[21]))) (self))
#define amsn_CUI_GenLocalTmpFileName(self,name) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[22]))) (self,name))
#define amsn_CUI_GenTmpFileName(self,name) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[23]))) (self,name))
#define amsn_CUI_GetFileFromVice(self,tmpfile,vfile) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[24]))) (self,tmpfile,vfile))
#define amsn_CUI_GetHeaderContents(self,cuid,hdrname,hdrnum,hdrbuf,lim) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[25]))) (self,cuid,hdrname,hdrnum,hdrbuf,lim))
#define amsn_CUI_GetHeaders(self,dirname,date64,headbuf,lim,startbyte,nbytes,status,RegisterCuids) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[26]))) (self,dirname,date64,headbuf,lim,startbyte,nbytes,status,RegisterCuids))
#define amsn_CUI_GetSnapshotFromCUID(self,cuid,Sbuf) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[27]))) (self,cuid,Sbuf))
#define amsn_CUI_HandleMissingFolder(self,dname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[28]))) (self,dname))
#define amsn_CUI_Initialize(self,TimerFunction,rock) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[29]))) (self,TimerFunction,rock))
#define amsn_CUI_LastCallFinished(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[30]))) (self))
#define amsn_CUI_MachineName(self) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[31]))) (self))
#define amsn_CUI_MailDomain(self) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[32]))) (self))
#define amsn_CUI_MarkAsRead(self,cuid) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[33]))) (self,cuid))
#define amsn_CUI_MarkAsUnseen(self,cuid) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[34]))) (self,cuid))
#define amsn_CUI_NameReplyFile(self,cuid,code,fname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[35]))) (self,cuid,code,fname))
#define amsn_CUI_OnSameHost(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[36]))) (self))
#define amsn_CUI_PrefetchMessage(self,cuid,ReallyNext) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[37]))) (self,cuid,ReallyNext))
#define amsn_CUI_PrintBodyFromCUIDWithFlags(self,cuid,flags,printer) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[38]))) (self,cuid,flags,printer))
#define amsn_CUI_PrintUpdates(self,dname,nickname) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[39]))) (self,dname,nickname))
#define amsn_CUI_ProcessMessageAttributes(self,cuid,snapshot) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[40]))) (self,cuid,snapshot))
#define amsn_CUI_PurgeDeletions(self,dirname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[41]))) (self,dirname))
#define amsn_CUI_PurgeMarkedDirectories(self,ask,OfferQuit) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[42]))) (self,ask,OfferQuit))
#define amsn_CUI_ReallyGetBodyToLocalFile(self,cuid,fname,ShouldDelete,MayFudge) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[43]))) (self,cuid,fname,ShouldDelete,MayFudge))
#define amsn_CUI_RemoveDirectory(self,dirname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[44]))) (self,dirname))
#define amsn_CUI_RenameDir(self,oldname,newname) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[45]))) (self,oldname,newname))
#define amsn_CUI_ReportAmbig(self,name,atype) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[46]))) (self,name,atype))
#define amsn_CUI_ResendMessage(self,cuid,tolist) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[47]))) (self,cuid,tolist))
#define amsn_CUI_RewriteHeaderLine(self,addr,newaddr) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[48]))) (self,addr,newaddr))
#define amsn_CUI_RewriteHeaderLineInternal(self,addr,newaddr,maxdealiases,numfound,externalcount,format,strip,trust) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[49]))) (self,addr,newaddr,maxdealiases,numfound,externalcount,format,strip,trust))
#define amsn_CUI_Rock(self) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[50]))) (self))
#define amsn_CUI_SetClientVersion(self,vers) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[51]))) (self,vers))
#define amsn_CUI_SetPrinter(self,printername) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[52]))) (self,printername))
#define amsn_CUI_SnapIsRunning(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[53]))) (self))
#define amsn_CUI_StoreFileToVice(self,localfile,vicefile) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[54]))) (self,localfile,vicefile))
#define amsn_CUI_SubmitMessage(self,infile,DeliveryOpts) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[55]))) (self,infile,DeliveryOpts))
#define amsn_CUI_UndeleteMessage(self,cuid) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[56]))) (self,cuid))
#define amsn_CUI_UseAmsDelivery(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[57]))) (self))
#define amsn_CUI_UseNameSep(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[58]))) (self))
#define amsn_CUI_VersionString(self) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[59]))) (self))
#define amsn_CUI_WhoIAm(self) \
    ((* ((char* (*)())((self)->header.amsn_methods->routines[60]))) (self))
#define amsn_CUI_GetCuid(self,id,fullname,isdup) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[61]))) (self,id,fullname,isdup))
#define amsn_CUI_GetAMSID(self,cuid,id,dir) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[62]))) (self,cuid,id,dir))
#define amsn_MS_AppendFileToFolder(self,filename,foldername) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[63]))) (self,filename,foldername))
#define amsn_MS_CheckAuthentication(self,auth) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[64]))) (self,auth))
#define amsn_MS_DebugMode(self,mslevel,snaplevel,malloclevel) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[65]))) (self,mslevel,snaplevel,malloclevel))
#define amsn_MS_DisambiguateFile(self,source,target,MustBeDir) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[66]))) (self,source,target,MustBeDir))
#define amsn_MS_FastUpdateState(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[67]))) (self))
#define amsn_MS_GetDirInfo(self,dirname,protcode,msgcount) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[68]))) (self,dirname,protcode,msgcount))
#define amsn_MS_GetNewMessageCount(self,dirname,numnew,numtotal,lastolddate,InsistOnFetch) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[69]))) (self,dirname,numnew,numtotal,lastolddate,InsistOnFetch))
#define amsn_MS_GetNthSnapshot(self,dirname,which,snapshotbuf) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[70]))) (self,dirname,which,snapshotbuf))
#define amsn_MS_GetSearchPathEntry(self,which,buf,buflim) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[71]))) (self,which,buf,buflim))
#define amsn_MS_GetSubscriptionEntry(self,fullname,nickname,status) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[72]))) (self,fullname,nickname,status))
#define amsn_MS_NameChangedMapFile(self,mapfile,mailonly,listall,numchanged,numunavailable,nummissing,numslowpokes,numfastfellas) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[73]))) (self,mapfile,mailonly,listall,numchanged,numunavailable,nummissing,numslowpokes,numfastfellas))
#define amsn_MS_NameSubscriptionMapFile(self,root,mapfile) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[74]))) (self,root,mapfile))
#define amsn_MS_ParseDate(self,indate,year,month,day,hour,min,sec,wday,gtm) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[75]))) (self,indate,year,month,day,hour,min,sec,wday,gtm))
#define amsn_MS_PrefetchMessage(self,dirname,id,getnext) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[76]))) (self,dirname,id,getnext))
#define amsn_MS_SetAssociatedTime(self,fullname,newvalue) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[77]))) (self,fullname,newvalue))
#define amsn_MS_SetCleanupZombies(self,doclean) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[78]))) (self,doclean))
#define amsn_MS_SetSubscriptionEntry(self,fullname,nickname,status) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[79]))) (self,fullname,nickname,status))
#define amsn_MS_UnlinkFile(self,filename) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[80]))) (self,filename))
#define amsn_MS_UpdateState(self) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[81]))) (self))
#define amsn_MS_MatchFolderName(self,pattern,filename) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[82]))) (self,pattern,filename))
#define amsn_MS_DomainHandlesFormatting(self,domname,retval) \
    ((* ((long (*)())((self)->header.amsn_methods->routines[83]))) (self,domname,retval))
#define amsn_AMS_ERRNO(self) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[84]))) (self))
#define amsn_SubtleDialogs(self,besubtle) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[85]))) (self,besubtle))
#define amsn_DescribeProt(self,code) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[86]))) (self,code))
#define amsn_MessagesAutoBugAddress(self) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[87]))) (self))
#define amsn_UnScribe(self,ucode,ss,LineBuf,ct,fout) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[88]))) (self,ucode,ss,LineBuf,ct,fout))
#define amsn_UnScribeFlush(self,ucode,ss,fout) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[89]))) (self,ucode,ss,fout))
#define amsn_UnScribeInit(self,vers,ss) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[90]))) (self,vers,ss))
#define amsn_WriteOutUserEnvironment(self,fp,IsAboutMessages) \
    ((* ((void (*)())((self)->header.amsn_methods->routines[91]))) (self,fp,IsAboutMessages))
#define amsn_ams_genid(self,isfilename) \
    ((* ((char * (*)())((self)->header.amsn_methods->routines[92]))) (self,isfilename))
#define amsn_CheckAMSUseridPlusWorks(self,dom) \
    ((* ((int (*)())((self)->header.amsn_methods->routines[93]))) (self,dom))

#define amsn_NewFromObject(self) \
    ((* ((struct amsn * (*)())((self)->header.amsn_methods->info->procs->routines[0]))) (&amsn_classheader, (self)->header.amsn_methods->info->versionnumber))
#define amsn_New() \
    (*((struct amsn * (*)()) (amsn_CLASSPROCEDURES->routines[0])))(&amsn_classheader,amsn_VERSION)
#define amsn_Initialize(self) \
    (*((void (*)()) (amsn_CLASSPROCEDURES->routines[2])))(&amsn_classheader,self, amsn_VERSION)

#define amsn_Destroy(self) \
    ((* ((void (*)()) ((self)->header.amsn_methods->info->procs->routines[1]))) (&amsn_classheader, self))
#define amsn_Finalize(self) \
    (*((void (*)()) (amsn_CLASSPROCEDURES->routines[3])))(&amsn_classheader,self)

#define amsn_InitializeClass() \
    (*((boolean (*)()) (amsn_CLASSPROCEDURES->routines[5])))(&amsn_classheader)


#endif /* !defined(amsn_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_amsn ) && !defined(class_StaticEntriesOnly)*/

